Skip to content

Commit

Permalink
Bug 1804093 - Part 4: Allow ReadKnownPrincipalType off-main-thread, r…
Browse files Browse the repository at this point in the history
…=asuth

Differential Revision: https://phabricator.services.mozilla.com/D163855
  • Loading branch information
mystor committed Dec 12, 2022
1 parent e1c464a commit 3069400
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions caps/nsJSPrincipals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 3069400

Please sign in to comment.