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

Issue 339513002: Fix use-after-free when creating and detaching iframe during load. (Closed)

Created:
6 years, 6 months ago by dcheng
Modified:
6 years, 6 months ago
Reviewers:
abarth-chromium
CC:
blink-reviews, site-isolation-reviews_chromium.org
Project:
blink
Visibility:
Public.

Description

Fix use-after-free when creating and detaching iframe during load. WebLocalFrameImpl::createChildFrame needs to keep a reference to the WebCore::LocalFrame in case LocalFrame::init() detaches the frame. BUG=384890 TEST=fast/loader/create-frame-in-DOMContentLoaded.html R=abarth@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176232

Patch Set 1 #

Patch Set 2 : Layout test #

Patch Set 3 : Remove test since this is already covered by multiple, similar tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -17 lines) Patch
M Source/web/WebLocalFrameImpl.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebLocalFrameImpl.cpp View 2 chunks +19 lines, -16 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
dcheng
During the investigation of this bug, I noticed something really weird--we can fire the top-level ...
6 years, 6 months ago (2014-06-16 08:50:35 UTC) #1
abarth-chromium
Test?
6 years, 6 months ago (2014-06-16 16:46:01 UTC) #2
dcheng
On 2014/06/16 at 16:46:01, abarth wrote: > Test? You caught me in the middle of ...
6 years, 6 months ago (2014-06-16 16:48:02 UTC) #3
abarth-chromium
Ok. LGTM!
6 years, 6 months ago (2014-06-16 17:50:55 UTC) #4
dcheng
6 years, 6 months ago (2014-06-16 18:39:08 UTC) #5
Message was sent while issue was closed.
Committed patchset #3 manually as r176232 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698