-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
https://bugs.webkit.org/show_bug.cgi?id=260868 rdar://114647890 Reviewed by Cameron McCormack. Upstream commit: web-platform-tests/wpt@d9e648d Some changes landed from Mozilla that improve our Interop 2023 workers score. * LayoutTests/http/wpt/workers/modules/dedicated-worker-import-csp-expected.txt: * LayoutTests/http/wpt/workers/modules/dedicated-worker-import-csp.html: * LayoutTests/imported/w3c/web-platform-tests/workers/WorkerNavigator_userAgentData.https.html: * LayoutTests/imported/w3c/web-platform-tests/workers/Worker_cross_origin_security_err-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/workers/Worker_cross_origin_security_err.htm: * LayoutTests/imported/w3c/web-platform-tests/workers/Worker_dispatchEvent_ErrorEvent-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/workers/Worker_dispatchEvent_ErrorEvent.htm: * LayoutTests/imported/w3c/web-platform-tests/workers/Worker_script_mimetype-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/workers/Worker_script_mimetype.htm: * LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/SharedWorker-constructor-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/SharedWorker-constructor.html: Added. * LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/same-origin-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/same-origin.html: * LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/w3c-import.log: * LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/AbstractWorker.onerror-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/AbstractWorker.onerror.js: * LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/same-origin-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/same-origin.html: * LayoutTests/imported/w3c/web-platform-tests/workers/dedicated-worker-in-data-url-context.window.js: (promise_test.async t): * LayoutTests/imported/w3c/web-platform-tests/workers/importscripts_mime.any.js: * LayoutTests/imported/w3c/web-platform-tests/workers/importscripts_mime_local.any.js: Copied from LayoutTests/imported/w3c/web-platform-tests/workers/importscripts_mime.any.js. * LayoutTests/imported/w3c/web-platform-tests/workers/importscripts_mime_local.any.sharedworker-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/workers/importscripts_mime_local.any.sharedworker.html: Added. * LayoutTests/imported/w3c/web-platform-tests/workers/importscripts_mime_local.any.worker-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/workers/importscripts_mime_local.any.worker.html: Added. * LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/navigator/007.js: * LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/navigator/008.worker-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/navigator/008.worker.html: Added. * LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/navigator/008.worker.js: Added. (test): * LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/navigator/w3c-import.log: * LayoutTests/imported/w3c/web-platform-tests/workers/modules/dedicated-worker-import-csp.html: * LayoutTests/imported/w3c/web-platform-tests/workers/modules/dedicated-worker-import-data-url-cross-origin.html: * LayoutTests/imported/w3c/web-platform-tests/workers/modules/dedicated-worker-import-data-url.any.js: (import_data_url_test): * LayoutTests/imported/w3c/web-platform-tests/workers/modules/dedicated-worker-import-failure-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/workers/modules/dedicated-worker-import-failure.html: * LayoutTests/imported/w3c/web-platform-tests/workers/modules/dedicated-worker-import-meta-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/workers/modules/dedicated-worker-import-meta.html: * LayoutTests/imported/w3c/web-platform-tests/workers/modules/shared-worker-import-data-url-cross-origin.html: * LayoutTests/imported/w3c/web-platform-tests/workers/modules/shared-worker-import-data-url.window.js: (import_data_url_test): * LayoutTests/imported/w3c/web-platform-tests/workers/modules/shared-worker-import-failure-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/workers/modules/shared-worker-import-failure.html: * LayoutTests/imported/w3c/web-platform-tests/workers/modules/shared-worker-parse-error-failure.html: * LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/001.worker-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/001.worker.js: * LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/002.worker-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/002.worker.js: * LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/003.any.js: * LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/003.any.sharedworker-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/004.any.js: * LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/004.any.sharedworker-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/workers/semantics/multiple-workers/004.html: * LayoutTests/imported/w3c/web-platform-tests/workers/semantics/structured-clone/dedicated.html: * LayoutTests/imported/w3c/web-platform-tests/workers/semantics/structured-clone/shared.html: * LayoutTests/imported/w3c/web-platform-tests/workers/shared-worker-in-data-url-context.window.js: (promise_test.async t): * LayoutTests/imported/w3c/web-platform-tests/workers/support/WorkerNavigator.js: (async const): * LayoutTests/imported/w3c/web-platform-tests/workers/support/w3c-import.log: * LayoutTests/imported/w3c/web-platform-tests/workers/support/worker-request-animation-frame.js: Added. (self.onmessage): * LayoutTests/imported/w3c/web-platform-tests/workers/w3c-import.log: * LayoutTests/imported/w3c/web-platform-tests/workers/worker-request-animation-frame-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/workers/worker-request-animation-frame.html: Added. * LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/workers/Worker_script_mimetype-expected.txt: Copied from LayoutTests/imported/w3c/web-platform-tests/workers/Worker_script_mimetype-expected.txt. * LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/workers/importscripts_mime_local.any.sharedworker-expected.txt: Renamed from LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/onerror/exception-in-onerror-expected.txt. * LayoutTests/tests-options.json: Canonical link: https://commits.webkit.org/267435@main
- Loading branch information
Showing
63 changed files
with
469 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...sts/imported/w3c/web-platform-tests/workers/Worker_cross_origin_security_err-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
|
||
PASS Cross-origin classic workers should fail to fetch | ||
PASS Cross-origin module workers should fail to fetch | ||
FAIL Cross-origin classic workers should fail to fetch The operation is insecure. | ||
FAIL Cross-origin module workers should fail to fetch The operation is insecure. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...ests/imported/w3c/web-platform-tests/workers/Worker_dispatchEvent_ErrorEvent-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
|
||
PASS ErrorEvent and Worker.dispatchEvent() | ||
PASS initErrorEvent | ||
PASS ErrorEvent constructor called as normal function | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
LayoutTests/imported/w3c/web-platform-tests/workers/Worker_script_mimetype-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 8 additions & 1 deletion
9
LayoutTests/imported/w3c/web-platform-tests/workers/Worker_script_mimetype.htm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
...eb-platform-tests/workers/constructors/SharedWorker/SharedWorker-constructor-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
PASS Test toString propagation exception. | ||
PASS Test Sharedworker creation with no arguments | ||
PASS Test invalid script URL. | ||
|
28 changes: 28 additions & 0 deletions
28
...ed/w3c/web-platform-tests/workers/constructors/SharedWorker/SharedWorker-constructor.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<!DOCTYPE html> | ||
<title>Test SharedWorker constructor functionality.</title> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script> | ||
test(() => { | ||
assert_throws_js(Error, | ||
function() { | ||
new SharedWorker({toString:function(){throw new Error()}})}, | ||
'toString exception should be propagated'); | ||
}, 'Test toString propagation exception.'); | ||
|
||
test(() => { | ||
assert_throws_js(TypeError, | ||
function() { new SharedWorker(); }, | ||
'invoking SharedWorker constructor without arguments should result ' + | ||
'in an exception.') | ||
}, 'Test Sharedworker creation with no arguments'); | ||
|
||
|
||
test(() => { | ||
assert_throws_dom("SyntaxError", | ||
function() { var Sharedworker = new SharedWorker('http://invalid:123$'); }, | ||
'Invoking SharedWorker constructor with invalid script URL should ' + | ||
'result in an exception.'); | ||
}, 'Test invalid script URL.'); | ||
|
||
</script> |
14 changes: 7 additions & 7 deletions
14
...mported/w3c/web-platform-tests/workers/constructors/SharedWorker/same-origin-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
|
||
PASS unsupported_scheme | ||
PASS data_url | ||
PASS javascript_url | ||
PASS about_blank | ||
PASS opera_com | ||
PASS port_81 | ||
PASS https_port_80 | ||
PASS https_port_8000 | ||
PASS http_port_8012 | ||
FAIL javascript_url URL of the shared worker is cross-origin | ||
FAIL about_blank URL of the shared worker is cross-origin | ||
FAIL opera_com URL of the shared worker is cross-origin | ||
FAIL port_81 URL of the shared worker is cross-origin | ||
FAIL https_port_80 URL of the shared worker is cross-origin | ||
FAIL https_port_8000 URL of the shared worker is cross-origin | ||
FAIL http_port_8012 URL of the shared worker is cross-origin | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ed/w3c/web-platform-tests/workers/constructors/Worker/AbstractWorker.onerror-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
CONSOLE MESSAGE: SyntaxError: Unexpected token ')' | ||
CONSOLE MESSAGE: Error: error from onerror.js | ||
|
||
PASS AbstractWorker.onerror | ||
|
10 changes: 5 additions & 5 deletions
10
...sts/imported/w3c/web-platform-tests/workers/constructors/Worker/AbstractWorker.onerror.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
for (;) // should cause onerror to be invoked, but onerror is null, so | ||
// the error is "not handled". should fire an ErrorEvent on the | ||
// worker. | ||
break; | ||
postMessage(1); // shouldn't do anything since the script doesn't compile | ||
// Throw a runtime error, the UA must report the error for that script. | ||
// https://html.spec.whatwg.org/#runtime-script-errors-2 | ||
for (;;) | ||
throw new Error("error from onerror.js"); | ||
postMessage(1); // shouldn't do anything since the script doesn't compile |
14 changes: 7 additions & 7 deletions
14
...ests/imported/w3c/web-platform-tests/workers/constructors/Worker/same-origin-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
|
||
PASS unsupported_scheme | ||
PASS data_url | ||
PASS about_blank | ||
PASS example_invalid | ||
PASS port_81 | ||
PASS https_port_80 | ||
PASS https_port_8000 | ||
PASS http_post_8012 | ||
PASS javascript_url | ||
FAIL about_blank The operation is insecure. | ||
FAIL example_invalid The operation is insecure. | ||
FAIL port_81 The operation is insecure. | ||
FAIL https_port_80 The operation is insecure. | ||
FAIL https_port_8000 The operation is insecure. | ||
FAIL http_post_8012 The operation is insecure. | ||
FAIL javascript_url The operation is insecure. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.