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

Unified Diff: Source/WebCore/bindings/v8/ScriptCachedFrameData.cpp

Issue 9340005: Merge 106846 - Before accessing a frame's script controller in V8 bindings, first check that the ... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1025/
Patch Set: Created 8 years, 10 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 | « Source/WebCore/bindings/v8/ScheduledAction.cpp ('k') | Source/WebCore/page/DOMTimer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/bindings/v8/ScriptCachedFrameData.cpp
===================================================================
--- Source/WebCore/bindings/v8/ScriptCachedFrameData.cpp (revision 106847)
+++ Source/WebCore/bindings/v8/ScriptCachedFrameData.cpp (working copy)
@@ -59,7 +59,7 @@
if (m_context.get().IsEmpty())
return;
- if (!frame->script()->canExecuteScripts(NotAboutToExecuteScript))
+ if (!frame || !frame->script()->canExecuteScripts(NotAboutToExecuteScript))
return;
v8::HandleScope handleScope;
« no previous file with comments | « Source/WebCore/bindings/v8/ScheduledAction.cpp ('k') | Source/WebCore/page/DOMTimer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698