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

Issue 1410093006: Exempt about: URLs from self-reference check for nested frames (Closed)

Created:
5 years, 1 month ago by Xiaocheng
Modified:
5 years ago
Reviewers:
dcheng
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Exempt about: URLs from self-reference check for nested frames When there are nested frames, to avoid infinite recursion, the self-reference check prevents the loading/rendering of a frame if it has the same URL as any of its ancestor frames. However, about: URLs should be exempted since they are reserved for other purposes and cannot be the source of infinite recursion. BUG=341858 Committed: https://crrev.com/c3fe8d78d15de7f5729a0ad6ef08f2e7bd3a1775 Cr-Commit-Position: refs/heads/master@{#362360}

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 9

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -0 lines) Patch
A third_party/WebKit/LayoutTests/fast/frames/deep-nested-about-blank.html View 1 2 3 4 1 chunk +18 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/frames/srcdoc/srcdoc-deep-nested-frames.html View 1 2 3 4 1 chunk +23 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalFrame.cpp View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (8 generated)
Xiaocheng
PTAL.
5 years, 1 month ago (2015-10-29 07:39:00 UTC) #3
dcheng
https://codereview.chromium.org/1410093006/diff/1/third_party/WebKit/Source/core/frame/LocalFrame.cpp File third_party/WebKit/Source/core/frame/LocalFrame.cpp (right): https://codereview.chromium.org/1410093006/diff/1/third_party/WebKit/Source/core/frame/LocalFrame.cpp#newcode758 third_party/WebKit/Source/core/frame/LocalFrame.cpp:758: if (equalIgnoringFragmentIdentifier(document()->completeURL(AtomicString("about:srcdoc")), url)) How about using Document::isSrcdocDocument() instead? Also, ...
5 years, 1 month ago (2015-10-29 14:47:08 UTC) #4
Xiaocheng
Thanks for your comments. - "How about using Document::isSrcdocDocument() instead?" Hard-coding should indeed be avoided. ...
5 years, 1 month ago (2015-10-30 05:48:30 UTC) #5
dcheng
So it appears about:blank iframes have the same problem: var win = window; var i ...
5 years, 1 month ago (2015-11-05 01:38:19 UTC) #6
Xiaocheng
Running your script in FF's console generated a bunch of nested frames as expected. In ...
5 years, 1 month ago (2015-11-06 02:26:09 UTC) #7
dcheng
On 2015/11/06 at 02:26:09, xiaochengh wrote: > Running your script in FF's console generated a ...
5 years, 1 month ago (2015-11-10 23:41:20 UTC) #8
Xiaocheng
This patch set is functionally the same as before but is simpler. Now it contains ...
5 years, 1 month ago (2015-11-12 06:04:57 UTC) #9
dcheng
https://codereview.chromium.org/1410093006/diff/60001/third_party/WebKit/LayoutTests/fast/frames/deep-nested-about-blank.html File third_party/WebKit/LayoutTests/fast/frames/deep-nested-about-blank.html (right): https://codereview.chromium.org/1410093006/diff/60001/third_party/WebKit/LayoutTests/fast/frames/deep-nested-about-blank.html#newcode14 third_party/WebKit/LayoutTests/fast/frames/deep-nested-about-blank.html:14: frames.forEach( function(value) { assert_not_equals(value.clientHeight, 0) } ) How come ...
5 years, 1 month ago (2015-11-18 03:23:19 UTC) #10
Xiaocheng
Thanks for your comments. I rewrote the two tests to better fit the coding style. ...
5 years, 1 month ago (2015-11-18 10:26:00 UTC) #11
dcheng
https://codereview.chromium.org/1410093006/diff/60001/third_party/WebKit/LayoutTests/fast/frames/deep-nested-about-blank.html File third_party/WebKit/LayoutTests/fast/frames/deep-nested-about-blank.html (right): https://codereview.chromium.org/1410093006/diff/60001/third_party/WebKit/LayoutTests/fast/frames/deep-nested-about-blank.html#newcode14 third_party/WebKit/LayoutTests/fast/frames/deep-nested-about-blank.html:14: frames.forEach( function(value) { assert_not_equals(value.clientHeight, 0) } ) On 2015/11/18 ...
5 years, 1 month ago (2015-11-18 21:32:51 UTC) #12
Xiaocheng
On 2015/11/18 21:32:51, dcheng wrote: > https://codereview.chromium.org/1410093006/diff/60001/third_party/WebKit/LayoutTests/fast/frames/deep-nested-about-blank.html > File third_party/WebKit/LayoutTests/fast/frames/deep-nested-about-blank.html > (right): > > https://codereview.chromium.org/1410093006/diff/60001/third_party/WebKit/LayoutTests/fast/frames/deep-nested-about-blank.html#newcode14 ...
5 years, 1 month ago (2015-11-19 01:14:32 UTC) #13
Xiaocheng
On 2015/11/19 01:14:32, Xiaocheng wrote: > On 2015/11/18 21:32:51, dcheng wrote: > > > https://codereview.chromium.org/1410093006/diff/60001/third_party/WebKit/LayoutTests/fast/frames/deep-nested-about-blank.html ...
5 years, 1 month ago (2015-11-19 07:59:12 UTC) #14
dcheng
LGTM, but update the CL description since this handles it for all about: pages now. ...
5 years ago (2015-12-01 04:21:02 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1410093006/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1410093006/80001
5 years ago (2015-12-01 04:52:31 UTC) #20
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years ago (2015-12-01 06:18:11 UTC) #22
commit-bot: I haz the power
5 years ago (2015-12-01 06:18:50 UTC) #24
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/c3fe8d78d15de7f5729a0ad6ef08f2e7bd3a1775
Cr-Commit-Position: refs/heads/master@{#362360}

Powered by Google App Engine
This is Rietveld 408576698