mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 21:01:08 +00:00
Bug 1804093 - Part 4: Allow ReadKnownPrincipalType off-main-thread, r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D163855
This commit is contained in:
parent
a61cde7275
commit
6bde10f55f
@ -300,11 +300,6 @@ bool nsJSPrincipals::ReadKnownPrincipalType(JSContext* aCx,
|
||||
aTag == SCTAG_DOM_EXPANDED_PRINCIPAL ||
|
||||
aTag == SCTAG_DOM_WORKER_PRINCIPAL);
|
||||
|
||||
if (NS_WARN_IF(!NS_IsMainThread())) {
|
||||
xpc::Throw(aCx, NS_ERROR_UNCATCHABLE_EXCEPTION);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (aTag == SCTAG_DOM_WORKER_PRINCIPAL) {
|
||||
// When reading principals which were written on a worker thread, we need to
|
||||
// know the principal of the worker which did the write.
|
||||
|
Loading…
Reference in New Issue
Block a user