haikuwebkit/LayoutTests/fast/dom/Window
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
..
Location Align JSGlobalObject::defineOwnProperty() with the spec and other runtimes 2021-03-12 00:08:05 +00:00
resources Disable WebSQL in WebKitTestRunner 2021-04-06 09:51:51 +00:00
watchos Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
666869-expected.txt
666869.html
BarInfo-after-frame-removed-expected.txt
BarInfo-after-frame-removed.html
HTMLBodyElement-window-eventListener-attributes-expected.txt
HTMLBodyElement-window-eventListener-attributes.html
HTMLFrameSetElement-window-eventListener-attributes-expected.txt
HTMLFrameSetElement-window-eventListener-attributes.html
Plug-ins-expected.txt
Plug-ins.html
a-rel-noopener-expected.txt Changes to shared testing JS files should not cause test failures due to console message line numbers changing 2020-04-10 21:10:11 +00:00
a-rel-noopener.html
addEventListener-implicit-this-expected.txt
addEventListener-implicit-this.html
alert-undefined-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
alert-undefined.html
alert-with-unmatched-utf16-surrogate-should-not-crash-expected.txt Unreviewed, fix test failure in Windows 2020-06-18 23:34:48 +00:00
alert-with-unmatched-utf16-surrogate-should-not-crash.html Unreviewed, fix test failure in Windows 2020-06-18 23:34:48 +00:00
anonymous-slot-with-changes-expected.txt
anonymous-slot-with-changes.html
area-rel-noopener-expected.txt Changes to shared testing JS files should not cause test failures due to console message line numbers changing 2020-04-10 21:10:11 +00:00
area-rel-noopener.html
atob-btoa-expected.txt
atob-btoa.html
attr-constructor-expected.txt
attr-constructor.html
btoa-pnglet.html
child-window-focus-expected.txt
child-window-focus.html
clear-timeout-expected.txt
clear-timeout.html
closure-access-after-navigation-iframe-expected.txt
closure-access-after-navigation-iframe.html
closure-access-after-navigation-window-expected.txt
closure-access-after-navigation-window.html
console-functions-expected.txt Changes to shared testing JS files should not cause test failures due to console message line numbers changing 2020-04-10 21:10:11 +00:00
console-functions.html
console-trace-expected.txt
console-trace.html
custom-constructors-expected.txt
custom-constructors.html
customized-property-survives-gc-expected.txt
customized-property-survives-gc.html
delete-operations-expected.txt
delete-operations.html
dispatchEvent-expected.txt
dispatchEvent.html
dom-access-from-closure-iframe-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
dom-access-from-closure-iframe.html
dom-access-from-closure-window-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
dom-access-from-closure-window-with-gc-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
dom-access-from-closure-window-with-gc.html
dom-access-from-closure-window.html
element-constructors-on-window-expected.txt Unexpose obsolete HTMLAppletElement interface 2020-11-10 00:29:04 +00:00
element-constructors-on-window.html
es52-globals-expected.txt
es52-globals.html
forbid-showModalDialog-expected.txt
forbid-showModalDialog.html
get-set-properties-expected.txt Unexpose obsolete HTMLAppletElement interface 2020-11-10 00:29:04 +00:00
get-set-properties.html Unexpose obsolete HTMLAppletElement interface 2020-11-10 00:29:04 +00:00
getComputedStyle-missing-parameter-expected.txt
getComputedStyle-missing-parameter.html
getMatchedCSSRules-null-crash-expected.txt
getMatchedCSSRules-null-crash.html
getMatchedCSSRules-with-invalid-pseudo-elements-expected.txt
getMatchedCSSRules-with-invalid-pseudo-elements.html
getMatchedCSSRules-with-pseudo-elements-complex-expected.txt
getMatchedCSSRules-with-pseudo-elements-complex.html
getMatchedCSSRules-with-pseudo-elements-expected.txt
getMatchedCSSRules-with-pseudo-elements.html
getOwnPropertyDescriptor-other-window-expected.txt [JSC] PropertySlot should allow passing custom setters 2021-02-15 23:08:52 +00:00
getOwnPropertyDescriptor-other-window.html [JSC] PropertySlot should allow passing custom setters 2021-02-15 23:08:52 +00:00
global-opener-function-expected.txt
global-opener-function.html
invalid-protocol-expected.txt
invalid-protocol.html
messageevent-source-postmessage-expected.txt
messageevent-source-postmessage-reified-expected.txt
messageevent-source-postmessage-reified.html
messageevent-source-postmessage.html
messageevent-source-postmessage2-expected.txt
messageevent-source-postmessage2.html
mozilla-focus-blur-expected.txt
mozilla-focus-blur.html
named-getter-frame-id-expected.txt
named-getter-frame-id.html
navigated-window-properties-expected.txt
navigated-window-properties.html
new-window-opener-expected.txt
new-window-opener.html
no-window-resize-on-document-size-change-expected.txt
no-window-resize-on-document-size-change.html
open-existing-pop-up-blocking.html
open-invalid-url-expected.txt
open-invalid-url.html Document's fallback base URL should be deduced from its creator when URL is about:blank 2021-07-30 20:25:46 +00:00
open-window-min-size-expected.txt
open-window-min-size.html
open-zero-size-as-default-expected.txt
open-zero-size-as-default.html
orphaned-frame-access-expected.txt
orphaned-frame-access.html Window should behave like a legacy platform object without indexed setter 2021-06-08 01:10:23 +00:00
post-message-crash-expected.txt
post-message-crash.html [ Mac ] fast/dom/Window/post-message-crash.html is flaky failing 2020-01-30 16:56:12 +00:00
post-message-crash2-expected.txt
post-message-crash2.html
post-message-large-array-buffer-should-not-crash-expected.txt CloneDeserializer should use ArrayBuffer::tryCreate 2021-04-06 13:18:10 +00:00
post-message-large-array-buffer-should-not-crash.html CloneDeserializer should use ArrayBuffer::tryCreate 2021-04-06 13:18:10 +00:00
post-message-regexp-expected.txt Our structured cloning implementation does not encode all of RegExp's flags 2021-07-08 02:19:19 +00:00
post-message-regexp.html Our structured cloning implementation does not encode all of RegExp's flags 2021-07-08 02:19:19 +00:00
post-message-user-action-expected.txt
post-message-user-action.html
postMessage-Object-prototype-expected.txt Regression(r268700) postMessage changes prototype of basic types 2021-02-24 22:03:41 +00:00
postMessage-Object-prototype.html Regression(r268700) postMessage changes prototype of basic types 2021-02-24 22:03:41 +00:00
postMessage-clone-port-error-expected.txt
postMessage-clone-port-error.html
property-access-on-cached-window-after-frame-removed-expected.txt
property-access-on-cached-window-after-frame-removed.html
querySelectorAll-with-pseudo-elements-expected.txt
querySelectorAll-with-pseudo-elements.html
redirect-with-timer-expected.txt
redirect-with-timer.html
remove-frame-in-message-event-handler-expected.txt
remove-frame-in-message-event-handler.html
remove-timeout-crash-expected.txt
remove-timeout-crash.html
replaceable-expected.txt
replaceable.html
setTimeout-no-arguments-expected.txt
setTimeout-no-arguments.html
setTimeout-setInterval-unique-expected.txt
setTimeout-setInterval-unique.html
setTimeout-string-argument-expected.txt
setTimeout-string-argument.html
setting-properties-on-closed-window-expected.txt
setting-properties-on-closed-window.html
showModalDialog-mandatory-parameter-expected.txt
showModalDialog-mandatory-parameter.html
slow-unload-handler-expected.txt Changes to shared testing JS files should not cause test failures due to console message line numbers changing 2020-04-10 21:10:11 +00:00
slow-unload-handler-only-frame-is-stopped-expected.txt Changes to shared testing JS files should not cause test failures due to console message line numbers changing 2020-04-10 21:10:11 +00:00
slow-unload-handler-only-frame-is-stopped.html
slow-unload-handler-overwritten-date-expected.txt
slow-unload-handler-overwritten-date.html
slow-unload-handler.html
timeout-callback-scope-expected.txt
timeout-callback-scope.html
timeout-released-on-close-expected.txt
timeout-released-on-close.html
timer-null-script-execution-context-expected.txt
timer-null-script-execution-context.html
timer-resume-on-navigation-back-expected.txt
timer-resume-on-navigation-back.html [Testing] Rename test header commands to match names in WebPreferences*.yaml 2020-10-13 17:16:15 +00:00
web-timing-minimal-performance-now-expected.txt
web-timing-minimal-performance-now.html
webkitConvertPoint-expected.txt
webkitConvertPoint.html
webkitConvertPointUpdateLayout-expected.txt
webkitConvertPointUpdateLayout.html
window-access-after-navigation-expected.txt
window-access-after-navigation.html
window-appendages-cleared-expected.txt
window-appendages-cleared.html
window-closed-crash-expected.txt
window-closed-crash.html
window-collection-length-no-crash-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
window-collection-length-no-crash.html
window-constructor-expected.txt
window-constructor-presence-expected.txt
window-constructor-presence.html
window-constructor-settable-expected.txt
window-constructor-settable.html
window-constructor.html
window-custom-prototype-crash-expected.txt Changes to shared testing JS files should not cause test failures due to console message line numbers changing 2020-04-10 21:10:11 +00:00
window-custom-prototype-crash.html
window-early-properties-expected.txt
window-early-properties-xhr-expected.txt
window-early-properties-xhr.html
window-early-properties.html
window-event-override-no-crash-expected.txt
window-event-override-no-crash.html
window-focus-self-expected.txt
window-focus-self.html
window-frames-self-referential-expected.txt
window-frames-self-referential.html
window-function-frame-getter-precedence-expected.txt Disable WebSQL in WebKitTestRunner 2021-04-06 09:51:51 +00:00
window-function-frame-getter-precedence.html
window-function-name-getter-precedence-expected.txt Disable WebSQL in WebKitTestRunner 2021-04-06 09:51:51 +00:00
window-function-name-getter-precedence.html
window-location-replace-functions-expected.txt
window-location-replace-functions.html
window-lookup-precedence-expected.txt Unexpose obsolete HTMLAppletElement interface 2020-11-10 00:29:04 +00:00
window-lookup-precedence.html
window-object-cross-frame-calls-expected.txt
window-object-cross-frame-calls.html
window-onFocus-expected.txt
window-onFocus.html
window-open-activeWindow-null-frame-expected.txt
window-open-activeWindow-null-frame.html
window-open-opener-cycle-expected.txt
window-open-opener-cycle.html
window-open-parent-expected.txt
window-open-parent-no-parent-expected.txt
window-open-parent-no-parent.html
window-open-parent.html
window-open-pending-url-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
window-open-pending-url.html
window-open-self-as-opener-expected.txt
window-open-self-as-opener.html
window-open-self-disallow-close-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
window-open-self-disallow-close.html
window-open-self-expected.txt
window-open-self-from-other-frame-expected.txt
window-open-self-from-other-frame.html
window-open-self.html
window-open-top-expected.txt
window-open-top.html
window-opener-set-to-null-expected.txt
window-opener-set-to-null.html
window-opener-shadowing-expected.txt
window-opener-shadowing.html
window-postmessage-args-expected.txt
window-postmessage-args.html
window-postmessage-arrays-expected.txt
window-postmessage-arrays.html
window-postmessage-clone-deep-array-expected.txt
window-postmessage-clone-deep-array.html
window-postmessage-clone-expected.txt Canonicalize JSBigInt generated by structured-cloning by calling rightTrim 2020-04-22 02:35:57 +00:00
window-postmessage-clone-frames-expected.txt
window-postmessage-clone-frames.html
window-postmessage-clone-really-deep-array-expected.txt
window-postmessage-clone-really-deep-array.html
window-postmessage-clone.html Canonicalize JSBigInt generated by structured-cloning by calling rightTrim 2020-04-22 02:35:57 +00:00
window-properties-configurable-expected.txt
window-properties-configurable.html
window-properties-device-orientation-expected.txt
window-properties-device-orientation.html
window-properties-geolocation-expected.txt
window-properties-geolocation.html
window-properties-performance-expected.txt
window-properties-performance-resource-timing-expected.txt
window-properties-performance-resource-timing.html
window-properties-performance.html
window-property-clearing-expected.txt
window-property-clearing.html
window-property-invalid-characters-ignored-expected.txt
window-property-invalid-characters-ignored.html
window-property-shadowing-expected.txt
window-property-shadowing-name-expected.txt
window-property-shadowing-name.html
window-property-shadowing-onclick-expected.txt
window-property-shadowing-onclick.html
window-property-shadowing.html
window-remove-event-listener-expected.txt
window-remove-event-listener.html
window-resize-and-move-arguments-expected.txt
window-resize-and-move-arguments.html
window-resize-and-move-sub-frame-expected.txt
window-resize-and-move-sub-frame.html
window-resize-contents-expected.txt Changes to shared testing JS files should not cause test failures due to console message line numbers changing 2020-04-10 21:10:11 +00:00
window-resize-contents.html
window-resize-expected.txt
window-resize-nan-expected.txt
window-resize-nan.html
window-resize-update-scrollbars-expected.txt
window-resize-update-scrollbars.html
window-resize.html
window-screen-properties-expected.txt
window-screen-properties.html
window-scroll-arguments-expected.txt
window-scroll-arguments.html
window-scroll-ignore-null-frame-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
window-scroll-ignore-null-frame.html
window-special-properties-expected.txt Unexpose obsolete HTMLAppletElement interface 2020-11-10 00:29:04 +00:00
window-special-properties.html
window-xy-properties-expected.txt
window-xy-properties.html