Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(220)

Unified Diff: Source/bindings/v8/ScriptController.cpp

Issue 146693005: Clarify when what notifications are send when a window object is cleared (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: updates Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/inspector/InspectorController.h » ('j') | Source/core/loader/FrameLoader.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/ScriptController.cpp
diff --git a/Source/bindings/v8/ScriptController.cpp b/Source/bindings/v8/ScriptController.cpp
index f685c9f48d4effa74569b2f56a446ea77a3b6922..231bcd1516c5fbf110fb599c5b0989556ec0b4cf 100644
--- a/Source/bindings/v8/ScriptController.cpp
+++ b/Source/bindings/v8/ScriptController.cpp
@@ -238,8 +238,8 @@ V8WindowShell* ScriptController::windowShell(DOMWrapperWorld& world)
m_isolatedWorlds.set(world.worldId(), isolatedWorldShell.release());
}
}
- if (!shell->isContextInitialized() && shell->initializeIfNeeded())
- m_frame->loader().dispatchDidClearWindowObjectInWorld(world);
+ if (!shell->isContextInitialized() && shell->initializeIfNeeded() && world.isMainWorld())
+ m_frame->loader().dispatchDidClearWindowObjectInMainWorld();
return shell;
}
« no previous file with comments | « no previous file | Source/core/inspector/InspectorController.h » ('j') | Source/core/loader/FrameLoader.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698