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

Issue 203493005: Add more checks to prevent crashes when accessing name/opener properties (Closed)

Created:
6 years, 9 months ago by dcheng
Modified:
6 years, 9 months ago
Reviewers:
abarth-chromium
CC:
blink-reviews, Nate Chapin, gavinp+loader_chromium.org
Visibility:
Public.

Description

Add more checks to prevent crashes when accessing name/opener properties Getting/setting these properties can depend on FrameLoaderClient, which will be null if the frame containing the DOMWindow has already been detached. BUG=349956, 352048 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169602

Patch Set 1 #

Patch Set 2 : Remove pointless if #

Patch Set 3 : Add missing expectations. #

Patch Set 4 : Rebase results #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -9 lines) Patch
M LayoutTests/fast/dom/Window/dom-access-from-closure-iframe-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/dom/Window/dom-access-from-closure-window-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/dom/Window/dom-access-from-closure-window-with-gc-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A LayoutTests/fast/dom/Window/name-and-opener-on-detached-window.html View 1 chunk +26 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/Window/name-and-opener-on-detached-window-expected.txt View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M Source/core/frame/DOMWindow.cpp View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M Source/core/loader/FrameLoader.cpp View 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
dcheng
This change appears to bring us in line with Firefox's behavior for getting/setting a detached ...
6 years, 9 months ago (2014-03-18 23:13:04 UTC) #1
abarth-chromium
lgtm
6 years, 9 months ago (2014-03-19 17:00:36 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcheng@chromium.org/203493005/20001
6 years, 9 months ago (2014-03-19 17:00:40 UTC) #3
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-19 17:03:34 UTC) #4
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on win_blink_rel
6 years, 9 months ago (2014-03-19 17:03:36 UTC) #5
dcheng
The CQ bit was checked by dcheng@chromium.org
6 years, 9 months ago (2014-03-19 18:06:38 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcheng@chromium.org/203493005/40001
6 years, 9 months ago (2014-03-19 18:06:45 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-19 18:33:04 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_rel
6 years, 9 months ago (2014-03-19 18:33:04 UTC) #9
dcheng
So it turns out that: 1) Several layout tests in Blink assume you can set ...
6 years, 9 months ago (2014-03-19 20:10:17 UTC) #10
abarth-chromium
On 2014/03/19 20:10:17, dcheng wrote: > So it turns out that: > 1) Several layout ...
6 years, 9 months ago (2014-03-19 20:11:22 UTC) #11
dcheng
Updated the results. I'm unable to verify the results match Firefox, since Firefox errors out ...
6 years, 9 months ago (2014-03-20 00:39:17 UTC) #12
dcheng
The CQ bit was checked by dcheng@chromium.org
6 years, 9 months ago (2014-03-20 00:39:26 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcheng@chromium.org/203493005/60001
6 years, 9 months ago (2014-03-20 00:39:32 UTC) #14
commit-bot: I haz the power
6 years, 9 months ago (2014-03-20 03:47:02 UTC) #15
Message was sent while issue was closed.
Change committed as 169602

Powered by Google App Engine
This is Rietveld 408576698