haikuwebkit/LayoutTests/fast/workers
Chris Dumez 046d5f4b5f Worker.constructor throws an exception when the url param is an empty string
https://bugs.webkit.org/show_bug.cgi?id=226637

Reviewed by Darin Adler.

LayoutTests/imported/w3c:

Rebaseline WPT test now that it is passing.

* web-platform-tests/workers/constructors/Worker/Worker-constructor-expected.txt:

Source/WebCore:

Stop throwing an exception if the Worker constructor gets called with an empty string.
Instead treat it as a relative URL, like Chrome and Firefox do.

No new tests, updated existing ones.

* workers/AbstractWorker.cpp:
(WebCore::AbstractWorker::resolveURL):

LayoutTests:

Update existing tests to reflect behavior change.

* fast/workers/worker-constructor-expected.txt:
* fast/workers/worker-constructor.html:
* http/tests/workers/worker-invalid-url-expected.txt:
* http/tests/workers/worker-invalid-url.html:


Canonical link: https://commits.webkit.org/238519@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@278520 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-06-05 04:39:39 +00:00
..
resources [LayoutTess] Delete unused LayoutTests/fast resources 2021-05-25 19:32:08 +00:00
DedicatedWorkerGlobalScope-immutable-prototype-expected.txt
DedicatedWorkerGlobalScope-immutable-prototype.html
DedicatedWorkerGlobalScope-prototype-chain-expected.txt [WebIDL] Interface prototype objects should define @@toStringTag 2020-05-01 09:48:33 +00:00
DedicatedWorkerGlobalScope-prototype-chain.html [WebIDL] Interface prototype objects should define @@toStringTag 2020-05-01 09:48:33 +00:00
WorkerGlobalScope-properties-prototype-expected.txt
WorkerGlobalScope-properties-prototype.html close() operation should not be exposed inside a ServiceWorkerGlobalScope 2018-01-24 23:00:56 +00:00
atob-btoa-expected.txt
atob-btoa.html
const-location-variable-expected.txt
const-location-variable.html
constructor-proto-expected.txt
constructor-proto.html
dedicated-worker-lifecycle-expected.txt
dedicated-worker-lifecycle.html
empty-worker-nocrash-expected.txt
empty-worker-nocrash.html
postMessage-missing-parameter-expected.txt
postMessage-missing-parameter.html
self-hasOwnProperty-expected.txt
self-hasOwnProperty.html
self-toString-expected.txt
self-toString.html
stress-js-execution-expected.txt Reviewed by Geoff Garen. 2008-11-22 07:46:23 +00:00
stress-js-execution.html Use testRunner instead of layoutTestController in fast/scrolling through fast/xsl tests 2012-08-04 01:13:22 +00:00
termination-early-expected.txt
termination-early.html
termination-with-port-messages-expected.txt [v8] Avoid reentry into v8 after TerminateExecution() on a worker thread. 2010-03-17 22:38:36 +00:00
termination-with-port-messages.html
use-machine-stack-expected.txt
use-machine-stack.html
worker-call-expected.txt
worker-call.html
worker-cloneport-expected.txt
worker-cloneport.html
worker-close-expected.txt
worker-close-more-expected.txt
worker-close-more.html
worker-close.html
worker-constructor-expected.txt Worker.constructor throws an exception when the url param is an empty string 2021-06-05 04:39:39 +00:00
worker-constructor.html Worker.constructor throws an exception when the url param is an empty string 2021-06-05 04:39:39 +00:00
worker-context-gc-expected.txt
worker-context-gc.html
worker-context-multi-port-expected.txt
worker-context-multi-port.html
worker-copy-shared-blob-url-expected.txt
worker-copy-shared-blob-url.html
worker-crash-with-invalid-location-expected.txt
worker-crash-with-invalid-location.html
worker-document-leak-expected.txt
worker-document-leak.html
worker-domurl-expected.txt
worker-domurl.html
worker-event-listener-expected.txt
worker-event-listener.html
worker-exception-during-navigation-expected.txt
worker-exception-during-navigation.html
worker-finish-crash-expected.txt
worker-finish-crash.html
worker-floating-point-expected.txt
worker-floating-point.html
worker-gc-expected.txt
worker-gc.html
worker-gc2-expected.txt
worker-gc2.html
worker-init-expected.txt
worker-init.html
worker-lifecycle-expected.txt
worker-lifecycle.html
worker-location-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
worker-location.html
worker-messageport-expected.txt
worker-messageport-gc-expected.txt
worker-messageport-gc.html
worker-messageport.html
worker-multi-port-expected.txt
worker-multi-port.html
worker-multi-startup-expected.txt
worker-multi-startup.html
worker-navigator-expected.txt
worker-navigator.html
worker-page-cache-expected.txt
worker-page-cache.html [Testing] Rename test header commands to match names in WebPreferences*.yaml 2020-10-13 17:16:15 +00:00
worker-replace-global-constructor-expected.txt
worker-replace-global-constructor.html
worker-script-error-expected.txt
worker-script-error.html
worker-storagequota-query-usage-expected.txt Support Quota API in Workers 2013-03-25 13:42:20 +00:00
worker-storagequota-query-usage.html
worker-strict-expected.txt
worker-strict.html
worker-structure-message-expected.txt
worker-structure-message.html
worker-terminate-expected.txt
worker-terminate-forever-expected.txt
worker-terminate-forever.html
worker-terminate.html
worker-timeout-expected.txt
worker-timeout.html
worker-user-gesture-expected.txt
worker-user-gesture.html
worker-user-gesture.js
worker-xhr-setRequestHeader-expected.txt
worker-xhr-setRequestHeader.html
wrapper-map-gc-expected.txt
wrapper-map-gc.html