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

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

Issue 117493002: Invert the owning relationship between WebFrame and Frame. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Comment clarity? 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
« no previous file with comments | « no previous file | Source/core/loader/EmptyClients.h » ('j') | Source/web/WebFrameImpl.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/V8WindowShell.cpp
diff --git a/Source/bindings/v8/V8WindowShell.cpp b/Source/bindings/v8/V8WindowShell.cpp
index 3474312da865a31882e26d8d307b99c7698758a0..dd4a89e0de2c0b278055223d85d546245094179c 100644
--- a/Source/bindings/v8/V8WindowShell.cpp
+++ b/Source/bindings/v8/V8WindowShell.cpp
@@ -98,7 +98,9 @@ void V8WindowShell::disposeContext(GlobalDetachmentBehavior behavior)
v8::HandleScope handleScope(m_isolate);
v8::Handle<v8::Context> context = m_contextHolder->context();
- m_frame->loader().client()->willReleaseScriptContext(context, m_world->worldId());
+ // FIXME: This is probably wrong.
eseidel 2013/12/21 01:17:34 A bit more context?
dcheng 2013/12/28 01:04:29 I've found a better way to fix this. Normally, thi
+ if (m_frame->loader().client())
+ m_frame->loader().client()->willReleaseScriptContext(context, m_world->worldId());
if (behavior == DetachGlobal)
context->DetachGlobal();
« no previous file with comments | « no previous file | Source/core/loader/EmptyClients.h » ('j') | Source/web/WebFrameImpl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698