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

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 6 years, 12 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
Index: Source/bindings/v8/ScriptController.cpp
diff --git a/Source/bindings/v8/ScriptController.cpp b/Source/bindings/v8/ScriptController.cpp
index 31969499e5e15cff32cb16ea979785a9e43c7f96..42b625aa916c712fffa36fa760f5bbab5d0f814f 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()

Powered by Google App Engine
This is Rietveld 408576698