That pref does not exist anymore in 6.5a2. Not sure what Tor Browser you are using. Maybe it is somehow a left-over? In any case that pref does not do anything anymore.
That said, I can see a similar log output on the command line.
Trac: Keywords: tbb-pref deleted, N/Aadded Cc: N/Ato arthuredelstein Priority: Medium to High Severity: Normal to Major
It's not funny at all. What is able to change prefs? Do Workers have more permissions than needed?
TBB is 6.5a2 from 6.5a1 from 6.0a5 (testing in a clean environment = no pref, so some website added it).
For the record, this problem occurs because SharedWorkers are supposed to be able to outlive their originating top-level document. So https://bugzilla.mozilla.org/show_bug.cgi?id=1118845 correctly stops retaining a pointer to that document in the load request. Unfortunately, that also means we can't rely on having the top-level document to obtain the first-party domain. So we use the backup option (also used in Tor Browser patches for first-party isolation of OCSP, Favicons, and link rel=preconnect) of GetDocumentURI/SetDocumentURI.
Trac: Status: new to needs_review Keywords: N/Adeleted, TorBrowserTeam201609R added
Could you check the rv of NS_NewURI()? That would fit better in the code context. Not sure what we want to do if that call failed, though. Could/should we emit an error message visible in the console or in the terminal?
Could you check the rv of NS_NewURI()? That would fit better in the code context. Not sure what we want to do if that call failed, though. Could/should we emit an error message visible in the console or in the terminal?
Kathy and I are okay with these changes. It would be clearer to us to use a comparison like aWorkerType == WorkerTypeShared instead of the less obvious aLoadGroupBehavior == OverrideLoadGroup (if it would work).
Kathy and I are okay with these changes. It would be clearer to us to use a comparison like aWorkerType == WorkerTypeShared instead of the less obvious aLoadGroupBehavior == OverrideLoadGroup (if it would work).
Good point. I added a test for WorkerTypeService for completeness, although we have WorkerTypeService disabled, and this patch will likely be excluded from the TBB/ESR52 release.
If something in content could change a pref, that's would obviously be a very serious bug. If you can find an reproducible example, by all means open a ticket.
It sounds much more likely to me that the "dom.workers.sharedWorkers.enabled" pref had a user value set in your profile (probably by torbutton), carried over from a previous version of TBB.
Would it be addressed or buried in the closed tickets as many other issues?
If you find an issue that is lost, please open a ticket! It's much easier to deal with if there is a single issue per ticket. But please also understand we have to prioritize. And that everyone here is trying to do the right thing.