No description provided.
Bug 1901492 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Perhaps relevant: https://phabricator.services.mozilla.com/D210435.
The Worker's method to obtain the connected CSP currently has to be called from the main thread: https://searchfox.org/mozilla-central/rev/cc01f11adfacca9cd44a75fd140d2fdd8f9a48d4/dom/workers/WorkerPrivate.h#908-909. Hence Trusted types code running in a Worker thread can't directly call that method. There's a thread-safe alternative (https://searchfox.org/mozilla-central/rev/cc01f11adfacca9cd44a75fd140d2fdd8f9a48d4/dom/workers/WorkerPrivate.h#9210) which might be usable with some extensions. Perhaps relevant: https://phabricator.services.mozilla.com/D210435.
The Worker's method to obtain the connected CSP currently has to be called from the main thread: https://searchfox.org/mozilla-central/rev/cc01f11adfacca9cd44a75fd140d2fdd8f9a48d4/dom/workers/WorkerPrivate.h#908-909. Hence Trusted types code running in a Worker thread can't directly call that method. There's a thread-safe alternative (https://searchfox.org/mozilla-central/rev/cc01f11adfacca9cd44a75fd140d2fdd8f9a48d4/dom/workers/WorkerPrivate.h#9210) which might be usable with some extensions. A sketch for some of the work: https://phabricator.services.mozilla.com/D210435 and a summary of a discussion around it (https://phabricator.services.mozilla.com/D210435#7223565).