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

Issue 12211130: Merge 142565 (Closed)

Created:
7 years, 10 months ago by karen
Modified:
7 years, 10 months ago
Reviewers:
haraken
CC:
chromium-reviews
Base URL:
http://svn.webkit.org/repository/webkit/branches/chromium/1410/
Visibility:
Public.

Description

Merge 142565 > [V8] ScheduledAction::m_context can be empty, so we shouldn't > retrieve an Isolate by using m_context->GetIsolate() > https://bugs.webkit.org/show_bug.cgi?id=109523 > > Reviewed by Adam Barth. > > Chromium bug: https://code.google.com/p/chromium/issues/detail?id=175307#makechanges > > Currently ScheduledAction is retrieving an Isolate by using m_context->GetIsolate(). > This can crash because ScheduledAction::m_context can be empty. Specifically, > ScheduledAction::m_context is set to ScriptController::currentWorldContext(), > which can return an empty handle when a frame does not exist. In addition, > 'if(context.IsEmpty())' in ScheduledAction.cpp implies that it can be empty. > > Alternately, we should pass an Isolate explicitly when a ScheduledAction is instantiated. > > No tests. The Chromium crash report doesn't provide enough information > to reproduce the bug. > > * bindings/v8/ScheduledAction.cpp: > (WebCore::ScheduledAction::ScheduledAction): > (WebCore): > (WebCore::ScheduledAction::~ScheduledAction): > * bindings/v8/ScheduledAction.h: > (ScheduledAction): > * bindings/v8/custom/V8DOMWindowCustom.cpp: > (WebCore::WindowSetTimeoutImpl): > * bindings/v8/custom/V8WorkerContextCustom.cpp: > (WebCore::SetTimeoutOrInterval): > TBR=haraken@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=142624

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -16 lines) Patch
M Source/WebCore/bindings/v8/ScheduledAction.h View 2 chunks +4 lines, -8 lines 0 comments Download
M Source/WebCore/bindings/v8/ScheduledAction.cpp View 1 chunk +11 lines, -4 lines 0 comments Download
M Source/WebCore/bindings/v8/custom/V8DOMWindowCustom.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/WebCore/bindings/v8/custom/V8WorkerContextCustom.cpp View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 1 (0 generated)
karen
7 years, 10 months ago (2013-02-12 15:30:53 UTC) #1

          

Powered by Google App Engine
This is Rietveld 408576698