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

Unified Diff: Source/WebCore/bindings/v8/ScheduledAction.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
Index: Source/WebCore/bindings/v8/ScheduledAction.cpp
===================================================================
--- Source/WebCore/bindings/v8/ScheduledAction.cpp (revision 106847)
+++ Source/WebCore/bindings/v8/ScheduledAction.cpp (working copy)
@@ -96,6 +96,8 @@
{
if (context->isDocument()) {
Frame* frame = static_cast<Document*>(context)->frame();
+ if (!frame)
+ return;
ScriptController* scriptController = frame->script();
if (!scriptController->canExecuteScripts(NotAboutToExecuteScript))
return;
« no previous file with comments | « Source/WebCore/bindings/v8/PageScriptDebugServer.cpp ('k') | Source/WebCore/bindings/v8/ScriptCachedFrameData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698