summaryrefslogtreecommitdiffstats
path: root/WebCore/bindings/js/ScriptCachedFrameData.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/bindings/js/ScriptCachedFrameData.cpp')
-rw-r--r--WebCore/bindings/js/ScriptCachedFrameData.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/WebCore/bindings/js/ScriptCachedFrameData.cpp b/WebCore/bindings/js/ScriptCachedFrameData.cpp
index f2b64de..16f18d3 100644
--- a/WebCore/bindings/js/ScriptCachedFrameData.cpp
+++ b/WebCore/bindings/js/ScriptCachedFrameData.cpp
@@ -73,8 +73,6 @@ ScriptCachedFrameData::~ScriptCachedFrameData()
void ScriptCachedFrameData::restore(Frame* frame)
{
- Page* page = frame->page();
-
JSLock lock(SilenceAssertionsOnly);
ScriptController* scriptController = frame->script();
@@ -89,8 +87,9 @@ void ScriptCachedFrameData::restore(Frame* frame)
windowShell->setWindow(window);
else {
windowShell->setWindow(frame->domWindow());
- if (world == debuggerWorld()) {
- scriptController->attachDebugger(page->debugger());
+
+ if (Page* page = frame->page()) {
+ scriptController->attachDebugger(windowShell, page->debugger());
windowShell->window()->setProfileGroup(page->group().identifier());
}
}