Bug 1804093 - Part 4: Allow ReadKnownPrincipalType off-main-thread, r=asuth

Differential Revision: https://phabricator.services.mozilla.com/D163855
This commit is contained in:
Nika Layzell 2022-12-12 22:08:35 +00:00
Родитель a61cde7275
Коммит 6bde10f55f
1 изменённых файлов: 0 добавлений и 5 удалений

Просмотреть файл

@ -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.