зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1804093 - Part 4: Allow ReadKnownPrincipalType off-main-thread, r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D163855
This commit is contained in:
Родитель
a61cde7275
Коммит
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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче