Repository navigation
Move the rest of the shared worker code into its plugin - #4264
Merged
Merged
Conversation
jcbrand
marked this pull request as ready for review
November 25, 2026 19:23
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.
Step 4 of the login credential sources work, following #4261 (review finding 3 there).
Core no longer knows about the shared worker. The
converse-shared-workerplugin now owns:attach()with its own callback, which resolves the attach result and passes each status on toonConnectStatusChanged.Connection.restoreWorkerSession()andworker_attach_promiseare gone. The method was undocumented and onlyapi.user.login()called it.initSessionasks a newshouldShareSessionhook, which the plugin answers fromconnection_options.worker.hasResumed()no longer checks for the worker: an attached connection counts as resumed for any transport, otherwise Strophe answers (for the worker, itsStreamManagementMirror).The "a different tab must have attached" check in
onConnectStatusChangedis dropped rather than moved. Strophe 6's worker sendsATTACHEDto a tab only when that tab joins, once per attach or connect, so the check could not fire.Leaving the plugin out still makes login fail when
connection_options.workeris set (from #4261). The configuration docs now say that the plugin also decides where the session data is kept.Testing
connect(),hasResumed()in both cases, and the session's storage with and without the worker.