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

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

Issue 117493002: Invert the owning relationship between WebFrame and Frame. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years 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
Index: Source/bindings/v8/ScriptController.cpp
diff --git a/Source/bindings/v8/ScriptController.cpp b/Source/bindings/v8/ScriptController.cpp
index b60a5c74ccaeca50ca508d188760278a3762e7fb..dfc452a69a944874f96354cae3bd3c4e3e3c1883 100644
--- a/Source/bindings/v8/ScriptController.cpp
+++ b/Source/bindings/v8/ScriptController.cpp
@@ -97,7 +97,8 @@ ScriptController::ScriptController(Frame* frame)
ScriptController::~ScriptController()
{
- clearForClose(true);
+ // V8WindowShell::clearForClose() must be invoked before destruction starts.
+ ASSERT(!m_windowShell->isContextInitialized());
}
void ScriptController::clearScriptObjects()
« no previous file with comments | « no previous file | Source/core/inspector/InspectorOverlay.cpp » ('j') | Source/core/inspector/InspectorOverlay.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698