mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 16:58:38 +09:00
Issue #2736 - Follow-up: Stop using worker thread-only functions for checking if CSP is enabled
Should stop the barrage of worker thread assertions on debug builds.
This commit is contained in:
parent
07cf2e643f
commit
c8608ad5cf
2 changed files with 6 additions and 5 deletions
|
|
@ -37,6 +37,7 @@
|
|||
#include "mozilla/dom/EventTargetBinding.h"
|
||||
#include "mozilla/dom/MessageChannel.h"
|
||||
#include "mozilla/dom/MessageEventBinding.h"
|
||||
#include "mozilla/dom/nsCSPService.h"
|
||||
#include "mozilla/dom/WorkerBinding.h"
|
||||
#include "mozilla/dom/ScriptSettings.h"
|
||||
#include "mozilla/dom/IndexedDatabaseManager.h"
|
||||
|
|
@ -2715,7 +2716,7 @@ LogViolationDetailsRunnable::MainThreadRun()
|
|||
{
|
||||
AssertIsOnMainThread();
|
||||
|
||||
if (mWorkerPrivate->CSPEnabled()) {
|
||||
if (CSPService::sCSPEnabled) {
|
||||
nsIContentSecurityPolicy* csp = mWorkerPrivate->GetCSP();
|
||||
if (csp) {
|
||||
if (mWorkerPrivate->GetReportCSPViolations()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue