haikuwebkit/LayoutTests/fast/frames/resources
Chris Dumez c748a6c748 Document's fallback base URL should be deduced from its creator when URL is about:blank
https://bugs.webkit.org/show_bug.cgi?id=228624

Reviewed by Geoffrey Garen.

LayoutTests/imported/w3c:

Rebaseline WPT test now that one more check is passing.

* web-platform-tests/html/infrastructure/urls/terminology-0/document-base-url-expected.txt:

Source/WebCore:

Document's fallback base URL should be deduced from its creator when URL is about:blank:
- https://html.spec.whatwg.org/multipage/urls-and-fetching.html#fallback-base-url

Chrome and Firefox match the specification here.

Tests: http/tests/dom/iframe-no-src-local-origin-allow.html
       http/tests/dom/iframe-no-src-set-location.html

* dom/Document.cpp:
(WebCore::Document::updateBaseURL):

LayoutTests:

Update existing tests to reflect behavior change. I have verified that those tests were failing in Firefox & Chrome and
are now passing in those browsers.

* http/tests/dom/iframe-no-src-local-origin-allow-expected.txt: Renamed from LayoutTests/fast/frames/iframe-no-src-local-origin-allow-expected.txt.
* http/tests/dom/iframe-no-src-local-origin-allow.html: Renamed from LayoutTests/fast/frames/iframe-no-src-local-origin-allow.html.
* http/tests/dom/iframe-no-src-set-location-expected.txt: Renamed from LayoutTests/fast/frames/iframe-no-src-set-location-expected.txt.
* http/tests/dom/iframe-no-src-set-location.html: Renamed from LayoutTests/fast/frames/iframe-no-src-set-location.html.
* http/tests/dom/resources/iframe-no-src-set-location-pass.html: Renamed from LayoutTests/fast/frames/resources/iframe-no-src-set-location-pass.html.
* http/tests/security/aboutBlank/security-context-expected.txt:
* http/tests/security/aboutBlank/security-context-grandchildren-expected.txt:
* http/tests/security/aboutBlank/security-context-grandchildren-lexical-expected.txt:
* http/tests/security/aboutBlank/security-context-grandchildren-write-lexical-expected.txt:
* http/tests/security/aboutBlank/security-context-grandchildren-writeln-lexical-expected.txt:
* http/tests/security/aboutBlank/security-context-window-open-expected.txt:
* http/tests/security/aboutBlank/security-context-with-base-tag-expected.txt:
* http/tests/security/aboutBlank/security-context-write-expected.txt:
* http/tests/security/aboutBlank/security-context-writeln-expected.txt:


Canonical link: https://commits.webkit.org/240123@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@280491 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-07-30 20:25:46 +00:00
..
big-page.html
cached-page-1.html
cached-page-2.html
cached-page-3.html
cached-page-iframe.html
child-iframe-forces-parent-layout-on-unload.html
close-top.html
comment.html
commentX.xhtml
crash-during-iframe-load-stop-inner.html
crash-during-iframe-load-stop.html
cross-site-this-helper.html
displaynone-this-during-object-beforeload.html
empty-body.html
fail-and-notify-done.html
finish-test.html
frame-dead-region-left.html
frame-element-name.html
frame-navigation-child.html
frame-programmatic-resize.js
frame-src-attribute-subframe.html
frame-unload-crash-1.html
frame-unload-crash-2.html
frame-unload-crash-3.html
frameElement-contents.html
frame_top.html
iframe-content-scaling-bug-iframe.html
iframe-display-none-child.html
iframe-focus-crash.html
iframe-focus.html
iframe-onload-remove-self-no-crash-child.html
iframe-onload-remove-self-no-crash.js
iframe-scroll-page-up-down-1.html
iframe-scroll-page-up-down-2.html
layout-after-destruction-subframe.html
location-change-frame-1.html
location-change-frame-2.html
location-put-after-removal-frame.html
meta-refresh-target.html
navigate-top-by-constant-name-to-pass.html
navigate-top-by-constant-name2-to-pass.html
navigate-top-by-name-to-fail.html
navigate-top-by-name-to-pass.html
navigate-top-to-fail.html
navigate-top-to-pass.html
no-file-access-frame-1.html
no-file-access-frame-2.html
non-sandboxed-iframe-navigation.html
page-beforeunload-document-open-frame.html
page-hide-document-open-frame.html
page-hide-document-open-win.html
page-unload-document-open-frame.html
page-unload-document-open-win.html
paint-iframe-background-iframe.html
pass-and-notify-done.html
purple.html
red.html
remove-this-during-object-beforeload.html
sandboxed-iframe-about-blank.html
sandboxed-iframe-attribute-parsing-allowed.html
sandboxed-iframe-attribute-parsing-disallowed.html
sandboxed-iframe-attribute-test.js
sandboxed-iframe-close-top-does-close.html
sandboxed-iframe-close-top-does-not-close.html
sandboxed-iframe-form-allowed.html
sandboxed-iframe-form-disallowed.html
sandboxed-iframe-form-dynamic-allowed.html
sandboxed-iframe-form-dynamic-disallowed.html
sandboxed-iframe-navigated.html
sandboxed-iframe-navigation-child.html
sandboxed-iframe-navigation-navigated.html
sandboxed-iframe-navigation-parent.html
sandboxed-iframe-navigation-source.html
sandboxed-iframe-navigation-targetlink.html
sandboxed-iframe-navigation-windowopen.html
sandboxed-iframe-plugins-frame-applet.html
sandboxed-iframe-plugins-frame-embed.html
sandboxed-iframe-plugins-frame-object.html
sandboxed-iframe-script-dynamic.html
sandboxed-iframe-set-domain.html
sandboxed-iframe-storage-allowed.html Disable WebSQL in WebKitTestRunner 2021-04-06 09:51:51 +00:00
sandboxed-iframe-storage-disallowed.html Disable WebSQL in WebKitTestRunner 2021-04-06 09:51:51 +00:00
set-src-to-javascript-url.html
set-src-to-javascript-url.xhtml
set-unloaded-frame-location-1.html
set-unloaded-frame-location-2.html
static-xss-vector.html
subframe-base-url.html
subframe-load-crash.svg
subframe-load-js-url-crash-iframe.html
wrong-global-object.html