Repository navigation
Dismiss the service worker toast on Firefox and WebKit - #35936
Merged
Merged
Conversation
Those projects block service workers, so Element shows a "Failed to load service worker" toast that can cover the element a test clicks next.
Member
|
@t3chguy does this look plausible? |
t3chguy
enabled auto-merge
November 19, 2026 10:53
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 19, 2026
Merged
via the queue into
element-hq:develop
with commit Nov 19, 2026
53a2e6b
60 of 63 checks passed
This branch was successfully deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #35391
Fixes #29876
Fixes #27853
Fixes #28584
What was wrong
Firefox and WebKit block service workers in Playwright tests. Because of this, Element shows a "Failed to load service worker" toast that sits on top of the page.
Some test helpers, like
viewRoomByName, close other toasts but don't handle this one. As a result, clicks fail because the toast intercepts pointer events.How I found it
CI failure log for #35391 shows the same "intercepts pointer events" error
The fix
Added a
pagefixture with a PlaywrightaddLocatorHandlerthat automatically clicks OK whenever this toast blocks an action.This is only enabled for projects that block service workers, so Chrome tests remain unchanged.
Before and after
How to test
Tests only,
T-Taskplease.Checklist
public/exportedsymbols have accurate TSDoc documentation.AI assistance