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

Issue 1161983005: FrameLoader: Prevent reentrancy on dispatchDidClearWindowObjectInMainWorld. (Closed)

Created:
5 years, 6 months ago by tommycli
Modified:
5 years, 6 months ago
Reviewers:
chrishtr, Nate Chapin
CC:
blink-reviews, gavinp+loader_chromium.org, tyoshino+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

FrameLoader: Prevent reentrancy on dispatchDidClearWindowObjectInMainWorld. Sometimes, the event triggered by dispatchDidClearWindowObjectInMainWorld can trigger yet another dispatch of this event. This leads to unexpected reentrant behavior. See https://codereview.chromium.org/1148223004/ comment #6. Also this has bitten someone else in the past. See https://code.google.com/p/chromium/issues/detail?id=422244. BUG=493889 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196182

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Patch Set 4 : fix broken patchset #

Patch Set 5 : fix broken patchset #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -0 lines) Patch
M Source/core/loader/FrameLoader.h View 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/loader/FrameLoader.cpp View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (8 generated)
tommycli
chrishtr: PTAL. Thanks for the suggestion.
5 years, 6 months ago (2015-05-28 22:06:07 UTC) #2
chrishtr
https://codereview.chromium.org/1161983005/diff/1/Source/core/loader/FrameLoader.cpp File Source/core/loader/FrameLoader.cpp (right): https://codereview.chromium.org/1161983005/diff/1/Source/core/loader/FrameLoader.cpp#newcode1375 Source/core/loader/FrameLoader.cpp:1375: if (m_dispatchingDidClearWindowObjectInMainWorld) I think you should do this instead: ...
5 years, 6 months ago (2015-05-28 22:09:25 UTC) #3
Nate Chapin
On 2015/05/28 22:06:07, tommycli wrote: > chrishtr: PTAL. Thanks for the suggestion. Do we know ...
5 years, 6 months ago (2015-05-28 22:11:01 UTC) #4
tommycli
https://codereview.chromium.org/1161983005/diff/1/Source/core/loader/FrameLoader.cpp File Source/core/loader/FrameLoader.cpp (right): https://codereview.chromium.org/1161983005/diff/1/Source/core/loader/FrameLoader.cpp#newcode1375 Source/core/loader/FrameLoader.cpp:1375: if (m_dispatchingDidClearWindowObjectInMainWorld) On 2015/05/28 22:09:25, chrishtr wrote: > I ...
5 years, 6 months ago (2015-05-28 22:19:37 UTC) #5
tommycli
On 2015/05/28 22:11:01, Nate Chapin wrote: > On 2015/05/28 22:06:07, tommycli wrote: > > chrishtr: ...
5 years, 6 months ago (2015-05-28 22:22:00 UTC) #6
chrishtr
Nate, do you have feedback on possible root causes or other issues with the CL? ...
5 years, 6 months ago (2015-05-29 21:11:21 UTC) #7
chrishtr
5 years, 6 months ago (2015-05-29 21:11:39 UTC) #9
Nate Chapin
On 2015/05/29 21:11:21, chrishtr wrote: > Nate, do you have feedback on possible root causes ...
5 years, 6 months ago (2015-05-29 21:16:10 UTC) #10
tommycli
On 2015/05/29 21:16:10, Nate Chapin wrote: > On 2015/05/29 21:11:21, chrishtr wrote: > > Nate, ...
5 years, 6 months ago (2015-05-29 21:18:30 UTC) #11
Nate Chapin
Ok. I tend to get grouchy when state gets added to FrameLoader, but I guess ...
5 years, 6 months ago (2015-05-29 21:28:01 UTC) #12
tommycli
Nate: Thanks. I guess the more ideal fix would be to somehow make ScriptController::windowProxy no ...
5 years, 6 months ago (2015-05-29 21:36:45 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1161983005/80001
5 years, 6 months ago (2015-05-29 22:01:15 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1161983005/80001
5 years, 6 months ago (2015-05-29 22:21:47 UTC) #21
commit-bot: I haz the power
5 years, 6 months ago (2015-05-30 00:46:42 UTC) #22
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=196182

Powered by Google App Engine
This is Rietveld 408576698