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

Issue 657263002: Disallow script execution after unload event dispatch in frame detach. (Closed)

Created:
6 years, 2 months ago by dcheng
Modified:
6 years, 2 months ago
Reviewers:
haraken
CC:
blink-reviews, esprehn, Nate Chapin, site-isolation-reviews_chromium.org
Project:
blink
Visibility:
Public.

Description

Disallow script execution in Document::detach(). There's no reason to run scripts here, since unload events have already run. Allowing scripts here can lead to re-entrant frame detach, which results in lots of weird edge cases that Blink wouldn't have to handle otherwise. BUG=363099, 371084 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=184035

Patch Set 1 #

Total comments: 3

Patch Set 2 : Add assert #

Patch Set 3 : Only block scripting in Document::detach #

Patch Set 4 : Remove superfluous newline #

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -6 lines) Patch
M Source/core/dom/Document.cpp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/frame/Frame.cpp View 1 2 3 4 1 chunk +1 line, -6 lines 0 comments Download
M Source/core/frame/RemoteFrame.cpp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (10 generated)
dcheng
6 years, 2 months ago (2014-10-16 00:56:30 UTC) #2
haraken
LGTM https://codereview.chromium.org/657263002/diff/1/Source/core/frame/Frame.cpp File Source/core/frame/Frame.cpp (left): https://codereview.chromium.org/657263002/diff/1/Source/core/frame/Frame.cpp#oldcode111 Source/core/frame/Frame.cpp:111: return; Shall we add ASSERT(client())?
6 years, 2 months ago (2014-10-16 00:59:27 UTC) #3
dcheng
https://codereview.chromium.org/657263002/diff/1/Source/core/frame/Frame.cpp File Source/core/frame/Frame.cpp (left): https://codereview.chromium.org/657263002/diff/1/Source/core/frame/Frame.cpp#oldcode111 Source/core/frame/Frame.cpp:111: return; On 2014/10/16 00:59:27, haraken wrote: > > Shall ...
6 years, 2 months ago (2014-10-16 01:21:33 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/657263002/20001
6 years, 2 months ago (2014-10-16 01:22:33 UTC) #6
dcheng
I forgot that extensions can run script at this point. Ugh. I'm going to see ...
6 years, 2 months ago (2014-10-16 01:41:26 UTC) #8
dcheng
PTAL. I've changed this to only suppress scripts in Document::detach, which was the problematic stack ...
6 years, 2 months ago (2014-10-16 03:33:14 UTC) #9
haraken
Still LGTM
6 years, 2 months ago (2014-10-16 03:52:50 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/657263002/60001
6 years, 2 months ago (2014-10-16 03:54:18 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/27220)
6 years, 2 months ago (2014-10-16 05:28:27 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/657263002/60001
6 years, 2 months ago (2014-10-20 17:26:33 UTC) #16
commit-bot: I haz the power
Failed to apply patch for Source/core/frame/Frame.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 2 months ago (2014-10-20 17:26:49 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/657263002/80001
6 years, 2 months ago (2014-10-21 00:04:26 UTC) #20
commit-bot: I haz the power
Exceeded time limit waiting for builds to trigger.
6 years, 2 months ago (2014-10-21 02:05:19 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/657263002/80001
6 years, 2 months ago (2014-10-21 02:34:39 UTC) #24
commit-bot: I haz the power
6 years, 2 months ago (2014-10-21 03:10:37 UTC) #25
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as 184035

Powered by Google App Engine
This is Rietveld 408576698