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