Bug 290876

Summary: New Test(292363@main): [ iOS ] imported/w3c/web-platform-tests/trusted-types/DedicatedWorker-constructor-from-SharedWorker.html is a flaky failure.
Product: WebKit Reporter: Yasmin Karimi <y_karimi>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: annevk, lwarlow, webkit-bot-watchers-bugzilla, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Yasmin Karimi
Reported 2025-04-01 15:46:30 PDT
imported/w3c/web-platform-tests/trusted-types/DedicatedWorker-constructor-from-SharedWorker.html This test is a flaky failure on iOS. HISTORY: https://results.webkit.org/?suite=layout-tests&test=imported%2Fw3c%2Fweb-platform-tests%2Ftrusted-types%2FDedicatedWorker-constructor-from-SharedWorker.html TEXT DIFF: @@ -1,7 +1,4 @@ -FAIL Creating a Worker from a string should throw (shared worker scope) assert_throws_js: Creating a Worker threw function "() => { new Worker("w"); }" threw object "ReferenceError: Can't find variable: Worker" ("ReferenceError") expected instance of function "function TypeError() { - [native code] -}" ("TypeError") -FAIL Creating a Worker from a TrustedScriptURL should not throw (shared worker scope) Can't find variable: Worker -FAIL Creating a Worker from a string with a default policy should not throw (shared worker scope) Can't find variable: Worker +Harness Error (TIMEOUT), message = null + DIFF URL: https://build.webkit.org/results/Apple-iOS-18-Simulator-Release-WK2-Tests/293017@main%20(1244)/imported/w3c/web-platform-tests/trusted-types/DedicatedWorker-constructor-from-SharedWorker-pretty-diff.html REPRODUCIBILITY: I was unable to reproduce on the iOS 18.2 simulator. REGRESSION: This test appears to be failing since it was imported at 292363@main.
Attachments
Radar WebKit Bug Importer
Comment 1 2025-04-01 15:46:43 PDT
EWS
Comment 2 2025-04-01 15:54:58 PDT
Test gardening commit 293049@main (b19a20d52837): <https://commits.webkit.org/293049@main> Reviewed commits have been landed. Closing PR #43419 and removing active labels.
Anne van Kesteren
Comment 3 2025-04-03 23:03:25 PDT
Luke, could you take a look at this?
Luke Warlow
Comment 4 2025-04-10 04:54:46 PDT
I'm also unable to reproduce this using the iOS 18.4 simulator and minibrowser. This test isn't expected to actually pass because only Gecko seems to actually expose Workers inside of SharedWorkers, but I would expect a consistent set of errors as is marked in the expected file. Given we don't expect this to actually pass I'd be inclined to Skip it if it's a flaky timeout. Running it doesn't really provide much?
Anne van Kesteren
Comment 5 2025-04-11 01:13:55 PDT
I see, reportedly there is a problem with fetch_tests_from_worker at the harness-level so Skip seems acceptable.
Luke Warlow
Comment 6 2025-04-29 05:11:59 PDT
*** This bug has been marked as a duplicate of bug 291345 ***
Note You need to log in before you can comment on or make changes to this bug.