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

Issue 187103002: id of iframe incorrectly sets window name (Closed)

Created:
6 years, 9 months ago by Inactive
Modified:
6 years, 2 months ago
CC:
blink-reviews, dglazkov+blink, adamk+blink_chromium.org, mkwst+watchlist_chromium.org, Noel Gordon
Visibility:
Public.

Description

id of iframe incorrectly sets window name As per the specification, the iframe's name should be an empty string if unset: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-iframe-element.html#attr-iframe-name Instead, Chromium was using the iframe's id as window name if the name was unset. This change makes us behave like Firefox 27 and IE 11, verified using: http://jsfiddle.net/xf5H7/9/ This CL sets the name attribute iframe in a lot of layout tests so that testRunner.dumpChildFramesAsText() keeps printing the same result. R=arv@chromium.org, tkent@chromium.org BUG=347169 TEST=fast/frames/iframe-no-name.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168553 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168801 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169304 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169683 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169803

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Reupload #

Patch Set 4 : Rebase #

Patch Set 5 : Fix remaining failures #

Patch Set 6 : Rebase #

Patch Set 7 : Patch for landing #

Patch Set 8 : Patch for landing #

Patch Set 9 : Rebase #

Patch Set 10 : Rebase #

Patch Set 11 : Without iframe-no-name.html #

Patch Set 12 : Fix additional layout test #

Patch Set 13 : Add back no-referrer-subframe.html #

Patch Set 14 : without iframe-no-name.html because of rietveld bug #

Patch Set 15 : without no-referrer-subframe.html because of rietveld bug #

Patch Set 16 : Add back no-referrer-subframe.html #

Unified diffs Side-by-side diffs Delta from patch set Stats (+177 lines, -163 lines) Patch
M LayoutTests/fast/autoresize/autoresize-with-iframe.html View 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/css-generated-content/positioned-div-with-floating-after-content-crash.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/dom/Window/timeout-callback-scope.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/dom/Window/window-access-after-navigation.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/dom/Window/window-collection-length-no-crash.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/dom/Window/window-special-properties-expected.txt View 2 chunks +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/dom/wrapper-context.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/dom/xss-DENIED-javascript-variations.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/events/onbeforeunload-focused-iframe.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/events/open-window-from-another-frame.html View 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/events/popup-blocked-to-post-blank.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/events/popup-blocking-click-in-iframe.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/events/popup-when-select-change.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/forms/form-submission-cancelable.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/frames/detach-frame-during-focus.html View 1 chunk +4 lines, -3 lines 0 comments Download
M LayoutTests/fast/frames/frame-inherit-noresize-from-frameset.html View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/frames/frame-programmatic-noresize.html View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/frames/frame-set-location-badstring.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/frames/frame-with-noresize-can-be-resized-after-removal-of-noresize.html View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/frames/frame-with-noresize-can-be-resized-after-setting-noResize-to-false.html View 1 chunk +2 lines, -2 lines 0 comments Download
A LayoutTests/fast/frames/iframe-no-name.html View 14 1 chunk +14 lines, -0 lines 0 comments Download
A + LayoutTests/fast/frames/iframe-no-name-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/frames/sandboxed-iframe-plugins.html View 1 2 3 4 3 chunks +6 lines, -6 lines 0 comments Download
M LayoutTests/fast/frames/unload-reparent-sibling-frame.html View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/history/form-submit-in-frame.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/history/form-submit-in-frame-via-onclick.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/history/same-document-iframes-changing-fragment.html View 2 chunks +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/history/same-document-iframes-changing-pushstate.html View 2 chunks +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/history/saves-state-after-frame-nav.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/images/exif-orientation-image-document.html View 2 chunks +11 lines, -11 lines 0 comments Download
M LayoutTests/fast/loader/resources/subframe-navigate-during-main-frame-load2.html View 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/overflow/scrollRevealButton.html View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/parser/xml-colon-entity.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/parser/xml-declaration-missing-ending-mark.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fullscreen/full-screen-frameset.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/loading/redirect-methods.html View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/http/tests/loading/text-content-type-with-binary-extension.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/misc/form-target-iframe-location-change.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/misc/location-replace-crossdomain.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/navigation/image-load-in-subframe-unload-handler.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/navigation/location-change-repeated-from-blank.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/navigation/no-referrer-subframe.html View 4 6 11 12 15 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/navigation/resources/forward-and-cancel-frames.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/contentSecurityPolicy/1.1/reflected-xss-block.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/cross-frame-access-child-explicit-domain.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/cross-frame-access-document-direct.html View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/http/tests/security/cross-frame-access-parent-explicit-domain.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/cross-frame-access-port.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/cross-frame-access-port-explicit-domain.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/cross-frame-access-protocol.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/cross-frame-access-protocol-explicit-domain.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/dataURL/resources/foreign-domain-data-url-accessee-iframe.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/dataURL/resources/foreign-domain-data-url-accessor-iframe.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/dataURL/xss-DENIED-from-data-url-in-foreign-domain-subframe.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/dataURL/xss-DENIED-from-data-url-sub-frame.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/dataURL/xss-DENIED-from-data-url-sub-frame-2-level.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/dataURL/xss-DENIED-from-data-url-to-data-url.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/dataURL/xss-DENIED-to-data-url-from-data-url.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/dataURL/xss-DENIED-to-data-url-sub-frame.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/dataURL/xss-DENIED-to-data-url-sub-frame-2-level.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/dataURL/xss-DENIED-to-data-url-sub-frame-uppercase.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/host-compare-case-insensitive.html View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/http/tests/security/javascriptURL/javascriptURL-execution-context-frame-location-htmldom.html View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/http/tests/security/javascriptURL/javascriptURL-execution-context-frame-location-htmldom-uncaught.html View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/http/tests/security/javascriptURL/javascriptURL-execution-context-frame-src-getAttribute-value.html View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/http/tests/security/javascriptURL/javascriptURL-execution-context-frame-src-htmldom.html View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/http/tests/security/javascriptURL/javascriptURL-execution-context-frame-src-setAttribute.html View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/http/tests/security/javascriptURL/javascriptURL-execution-context-frame-src-setAttributeNS.html View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/http/tests/security/javascriptURL/javascriptURL-execution-context-frame-src-setAttributeNode.html View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/http/tests/security/javascriptURL/javascriptURL-execution-context-iframe-src-getAttribute-value.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/javascriptURL/javascriptURL-execution-context-iframe-src-htmldom.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/javascriptURL/javascriptURL-execution-context-iframe-src-setAttribute.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/javascriptURL/javascriptURL-execution-context-iframe-src-setAttributeNS.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/javascriptURL/javascriptURL-execution-context-iframe-src-setAttributeNode.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/javascriptURL/resources/foreign-domain-javascript-url-accessee-iframe.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/javascriptURL/resources/foreign-domain-javascript-url-accessor-iframe.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/javascriptURL/xss-ALLOWED-from-javascript-url-sub-frame.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/javascriptURL/xss-ALLOWED-from-javascript-url-sub-frame-2-level.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/javascriptURL/xss-ALLOWED-to-javascript-url-from-javscript-url.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/javascriptURL/xss-ALLOWED-to-javascript-url-sub-frame.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/javascriptURL/xss-ALLOWED-to-javascript-url-sub-frame-2-level.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/protocol-compare-case-insensitive.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/referrer-policy-redirect-link.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/sandboxed-iframe-blocks-access-from-parent.html View 2 chunks +3 lines, -3 lines 0 comments Download
M LayoutTests/http/tests/security/srcdoc-inherits-referrer-for-forms.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/xssAuditor/full-block-base-href.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/xssAuditor/full-block-iframe-javascript-url.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/xssAuditor/full-block-iframe-no-inherit.php View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/xssAuditor/full-block-javascript-link.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/xssAuditor/full-block-link-onclick.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/xssAuditor/full-block-object-tag.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/xssAuditor/full-block-script-tag.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/xssAuditor/full-block-script-tag-cross-domain.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/xssAuditor/full-block-script-tag-with-source.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/xssAuditor/malformed-xss-protection-header-1.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/xssAuditor/malformed-xss-protection-header-2.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/xssAuditor/malformed-xss-protection-header-3.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/xssAuditor/malformed-xss-protection-header-4.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/xssAuditor/malformed-xss-protection-header-5.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/xssAuditor/malformed-xss-protection-header-6.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/xssAuditor/malformed-xss-protection-header-7.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/xssAuditor/malformed-xss-protection-header-8.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/xssAuditor/malformed-xss-protection-header-9.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/xssAuditor/report-script-tag.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/xssAuditor/report-script-tag-replace-state.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/xssAuditor/resources/utilities.js View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/xssAuditor/xss-protection-parsing-02.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/xssAuditor/xss-protection-parsing-03.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/xssAuditor/xss-protection-parsing-04.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/w3c/webperf/approved/navigation-timing/html/test_navigation_type_backforward-expected.txt View 1 chunk +4 lines, -4 lines 0 comments Download
M LayoutTests/http/tests/w3c/webperf/approved/navigation-timing/html/test_timing_attributes_order-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-unload-sync.html View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/plugins/get-url-with-iframe-target.html View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/plugins/plugin-remove-subframe.html View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLFrameElementBase.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -2 lines 0 comments Download
M Source/web/tests/data/iframe_redirect.html View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 21 (0 generated)
arv (Not doing code reviews)
LGTM
6 years, 9 months ago (2014-03-05 14:57:15 UTC) #1
Inactive
6 years, 9 months ago (2014-03-05 14:58:51 UTC) #2
tkent
lgtm
6 years, 9 months ago (2014-03-05 23:34:53 UTC) #3
Inactive
Committed patchset #8 manually as r168553 (presubmit successful).
6 years, 9 months ago (2014-03-06 01:49:36 UTC) #4
Inactive
Reopening as this patch was rolled out for breaking browser_tests on Chrome side. I will ...
6 years, 9 months ago (2014-03-06 17:44:06 UTC) #5
Inactive
Committed patchset #9 manually as r168801 (presubmit successful).
6 years, 9 months ago (2014-03-09 04:51:24 UTC) #6
haraken
On 2014/03/09 04:51:24, Chris Dumez wrote: > Committed patchset #9 manually as r168801 (presubmit successful). ...
6 years, 9 months ago (2014-03-10 11:05:41 UTC) #7
Inactive
Committed patchset #13 manually as r169304 (presubmit successful).
6 years, 9 months ago (2014-03-15 14:21:08 UTC) #8
Inactive
I landed a fix for the ChromeOS issue (https://codereview.chromium.org/203693004/), I should be able to reland ...
6 years, 9 months ago (2014-03-20 17:11:58 UTC) #9
Inactive
Committed patchset #16 manually as r169683 (presubmit successful).
6 years, 9 months ago (2014-03-20 19:46:03 UTC) #10
eseidel
A revert of this CL has been created in https://codereview.chromium.org/196523007/ by eseidel@chromium.org. The reason for ...
6 years, 9 months ago (2014-03-21 07:19:37 UTC) #11
vsevik
A revert of this CL has been created in https://codereview.chromium.org/198183003/ by vsevik@chromium.org. The reason for ...
6 years, 9 months ago (2014-03-21 07:51:22 UTC) #12
Avi (use Gerrit)
Which browser tests were broken? I'm working on moving browser tests to use frame names, ...
6 years, 9 months ago (2014-03-21 15:02:57 UTC) #13
Inactive
On 2014/03/21 15:02:57, Avi wrote: > Which browser tests were broken? I'm working on moving ...
6 years, 9 months ago (2014-03-21 15:07:34 UTC) #14
Avi (use Gerrit)
On 2014/03/21 15:07:34, Chris Dumez wrote: > On 2014/03/21 15:02:57, Avi wrote: > > Which ...
6 years, 9 months ago (2014-03-21 15:11:36 UTC) #15
Inactive
On 2014/03/21 15:07:34, Chris Dumez wrote: > On 2014/03/21 15:02:57, Avi wrote: > > Which ...
6 years, 9 months ago (2014-03-21 15:13:05 UTC) #16
Avi (use Gerrit)
On 2014/03/21 15:13:05, Chris Dumez wrote: > On 2014/03/21 15:07:34, Chris Dumez wrote: > > ...
6 years, 9 months ago (2014-03-21 15:15:58 UTC) #17
Inactive
On 2014/03/21 15:15:58, Avi wrote: > On 2014/03/21 15:13:05, Chris Dumez wrote: > > On ...
6 years, 9 months ago (2014-03-21 15:18:39 UTC) #18
Inactive
Uploaded fix for geolocation browser_tests at: https://codereview.chromium.org/208413002/ FYI, the build bot URLs posted here don't ...
6 years, 9 months ago (2014-03-21 15:44:35 UTC) #19
Inactive
Committed patchset #16 manually as r169803 (presubmit successful).
6 years, 9 months ago (2014-03-22 21:07:19 UTC) #20
Noel Gordon
6 years, 2 months ago (2014-10-09 12:07:20 UTC) #21
Message was sent while issue was closed.
I believe this patch caused https://crbug.com/387539 in the field.  Assigning to
arv since Inactive seems gone?

Powered by Google App Engine
This is Rietveld 408576698