Bug 1778510: Cut ConnectionWorker over to GlobalScope()->ShouldRFP() r=asuth

Differential Revision: https://phabricator.services.mozilla.com/D157565
This commit is contained in:
Tom Ritter 2022-11-29 13:34:15 +00:00
Родитель 39b2fec75c
Коммит ec8f176a59
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -10,6 +10,7 @@
#include "mozilla/dom/WorkerPrivate.h"
#include "mozilla/dom/WorkerRef.h"
#include "mozilla/dom/WorkerRunnable.h"
#include "mozilla/dom/WorkerScope.h"
namespace mozilla::dom::network {
@ -141,7 +142,7 @@ class NotifyRunnable : public WorkerRunnable {
already_AddRefed<ConnectionWorker> ConnectionWorker::Create(
WorkerPrivate* aWorkerPrivate, ErrorResult& aRv) {
bool shouldResistFingerprinting =
aWorkerPrivate->ShouldResistFingerprinting();
aWorkerPrivate->GlobalScope()->ShouldResistFingerprinting();
RefPtr<ConnectionWorker> c = new ConnectionWorker(shouldResistFingerprinting);
c->mProxy = ConnectionProxy::Create(aWorkerPrivate, c);
if (!c->mProxy) {