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

Issue 1408073006: Gracefully handle a self-referential opener in frame swap. (Closed)

Created:
5 years, 2 months ago by dcheng
Modified:
5 years, 1 month ago
Reviewers:
alexmos
CC:
dcheng, blink-reviews, chromium-reviews, mlamouri+watch-blink_chromium.org, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Gracefully handle a self-referential opener in frame swap. BUG=543949 Committed: https://crrev.com/f498eb4d024e1af5efcce40c5f6116684febf55a Cr-Commit-Position: refs/heads/master@{#356443}

Patch Set 1 #

Patch Set 2 : With a test. Maybe more general but less efficient? #

Patch Set 3 : Remove friend declaration. #

Total comments: 2

Patch Set 4 : Add comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -16 lines) Patch
M third_party/WebKit/Source/web/OpenedFrameTracker.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/OpenedFrameTracker.cpp View 1 2 3 2 chunks +6 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/web/WebFrame.cpp View 1 1 chunk +3 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 1 chunk +22 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebFrame.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
dcheng
initializeToReplaceRemoteFrame gives the provisional local frame the same opener as the remote frame it might ...
5 years, 1 month ago (2015-10-27 01:33:12 UTC) #3
alexmos
LGTM. This was tricky, thanks for fixing! I added that setOpener call in initializeToReplaceRemoteFrame so ...
5 years, 1 month ago (2015-10-27 19:09:51 UTC) #4
dcheng
https://codereview.chromium.org/1408073006/diff/40001/third_party/WebKit/Source/web/OpenedFrameTracker.cpp File third_party/WebKit/Source/web/OpenedFrameTracker.cpp (right): https://codereview.chromium.org/1408073006/diff/40001/third_party/WebKit/Source/web/OpenedFrameTracker.cpp#newcode42 third_party/WebKit/Source/web/OpenedFrameTracker.cpp:42: HashSet<WebFrame*> frames(m_openedFrames); On 2015/10/27 at 19:09:51, alexmos wrote: > ...
5 years, 1 month ago (2015-10-27 19:11:16 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1408073006/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1408073006/60001
5 years, 1 month ago (2015-10-27 20:29:15 UTC) #8
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 1 month ago (2015-10-27 23:57:01 UTC) #9
commit-bot: I haz the power
5 years, 1 month ago (2015-10-27 23:58:06 UTC) #10
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/f498eb4d024e1af5efcce40c5f6116684febf55a
Cr-Commit-Position: refs/heads/master@{#356443}

Powered by Google App Engine
This is Rietveld 408576698