зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1778510: Cut ConnectionWorker over to GlobalScope()->ShouldRFP() r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D157565
This commit is contained in:
Родитель
39b2fec75c
Коммит
ec8f176a59
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче