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

Issue 2395423002: Check if an iframe doesn't get detached twice

Created:
4 years, 2 months ago by haraken
Modified:
4 years, 2 months ago
Reviewers:
dcheng
CC:
chromium-reviews, blink-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Check if an iframe doesn't get detached twice BUG=

Patch Set 1 #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -1 line) Patch
M third_party/WebKit/Source/core/frame/LocalFrame.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalFrame.cpp View 2 chunks +5 lines, -1 line 10 comments Download

Messages

Total messages: 12 (5 generated)
haraken
See PS1. It looks like there are cases where Frame::detach() is called multiple times. Is ...
4 years, 2 months ago (2016-10-07 11:47:09 UTC) #6
haraken
On 2016/10/07 11:47:09, haraken wrote: > See PS1. It looks like there are cases where ...
4 years, 2 months ago (2016-10-07 11:47:38 UTC) #7
dcheng
Yes, unfortunately this is possible. LocalFrame::detach() detaches child frames first, which can run script and ...
4 years, 2 months ago (2016-10-07 16:03:42 UTC) #8
haraken
On 2016/10/07 16:03:42, dcheng wrote: > Yes, unfortunately this is possible. LocalFrame::detach() detaches child frames ...
4 years, 2 months ago (2016-10-08 02:18:59 UTC) #9
dcheng
On 2016/10/08 02:18:59, haraken wrote: > On 2016/10/07 16:03:42, dcheng wrote: > > Yes, unfortunately ...
4 years, 2 months ago (2016-10-08 04:59:50 UTC) #10
haraken
T
4 years, 2 months ago (2016-10-11 05:20:35 UTC) #11
haraken
4 years, 2 months ago (2016-10-11 05:23:26 UTC) #12
Thanks a lot for the detailed clarification! I now understand the complexity.

I'm hitting the complexity (for some complicated reasons) while I'm removing
DOMWindowProperty. In any case, I now understand that we need to assume that
Frame::detach may be reentered. Let me investigate a bit more :)

Powered by Google App Engine
This is Rietveld 408576698