is a flaky text failure on macOS, and is affecting EWS as well.
LINK TO EWS FAILURE:
-PASS shared worker with multiple documents
+Harness Error (TIMEOUT), message = null
+NOTRUN shared worker with multiple documents
Added [ Pass Failure ] expectation here to speed up EWS:
I did attempt to reproduce this failure at Monterey Production ToT. However, I was unsuccessful. I even took it all the way up to 1000 iterations.
I added some logging in <https://commits.webkit.org/r290439> to help investigate via the bots since I wasn't able to reproduce locally yet.
Added logging shows the following:
CONSOLE MESSAGE: Error: assert_equals: Worker Message Count expected 3 but got 0
Iframes are being loaded but one of the following hypothesis is probably true:
- shared worker might not being executed
- shared worker might not be receiving the connect event
- MessagePort postMessage sometimes does not work
One possibility is that we delay the connect event until we have a process to run the shared worker.
We then fire the connect event for all SharedWorker but we do not respect the order so the first port is related to the iframe SharedWorker instead of the main frame SharedWorker.
Pull request: https://github.com/WebKit/WebKit/pull/1684
Committed r295776 (251781@main): <https://commits.webkit.org/251781@main>
Reviewed commits have been landed. Closing PR #1684 and removing active labels.
This test is crashing in EWS:
Added test is also flaky (fix available at https://bugs.webkit.org/show_bug.cgi?id=241957).
Given I will not be able to fix it very soon, let's revert this change for now in https://bugs.webkit.org/show_bug.cgi?id=241958.
Reopening to fix the debug assertion and flaky test
*** Bug 241957 has been marked as a duplicate of this bug. ***
Pull request: https://github.com/WebKit/WebKit/pull/2054
Committed 252267@main (82a9cba78565): <https://commits.webkit.org/252267@main>
Reviewed commits have been landed. Closing PR #2054 and removing active labels.