1515#include " mozilla/ipc/PBackgroundChild.h"
1616#include " mozilla/ipc/PBackgroundSharedTypes.h"
1717#include " mozilla/ipc/IPCStreamUtils.h"
18+ #include " nsIClassifiedChannel.h"
1819#include " nsIGlobalObject.h"
1920
2021#include " nsDOMString.h"
@@ -450,7 +451,8 @@ class MainThreadFetchRunnable : public Runnable {
450451 fetch = new FetchDriver (mRequest .clonePtr (), principal, loadGroup,
451452 workerPrivate->MainThreadEventTarget (),
452453 workerPrivate->CookieJarSettings (),
453- workerPrivate->GetPerformanceStorage (), false );
454+ workerPrivate->GetPerformanceStorage (),
455+ net::ClassificationFlags ({0 , 0 }));
454456 nsAutoCString spec;
455457 if (proxy->GetWorkerPrivate ()->GetBaseURI ()) {
456458 proxy->GetWorkerPrivate ()->GetBaseURI ()->GetAsciiSpec (spec);
@@ -560,7 +562,7 @@ already_AddRefed<Promise> FetchRequest(nsIGlobalObject* aGlobal,
560562 nsCOMPtr<nsILoadGroup> loadGroup;
561563 nsCOMPtr<nsICookieJarSettings> cookieJarSettings;
562564 nsIPrincipal* principal;
563- bool isTrackingFetch = false ;
565+ net::ClassificationFlags trackingFlags = { 0 , 0 } ;
564566 if (window) {
565567 doc = window->GetExtantDoc ();
566568 if (!doc) {
@@ -571,7 +573,7 @@ already_AddRefed<Promise> FetchRequest(nsIGlobalObject* aGlobal,
571573 loadGroup = doc->GetDocumentLoadGroup ();
572574 cookieJarSettings = doc->CookieJarSettings ();
573575
574- isTrackingFetch = doc->IsScriptTracking (cx );
576+ trackingFlags = doc->GetScriptTrackingFlags ( );
575577 } else {
576578 principal = aGlobal->PrincipalOrNull ();
577579 if (NS_WARN_IF(!principal)) {
@@ -596,7 +598,7 @@ already_AddRefed<Promise> FetchRequest(nsIGlobalObject* aGlobal,
596598 new FetchDriver (std::move (internalRequest), principal, loadGroup,
597599 aGlobal->SerialEventTarget (), cookieJarSettings,
598600 nullptr , // PerformanceStorage
599- isTrackingFetch );
601+ trackingFlags );
600602 fetch->SetDocument (doc);
601603 resolver->SetLoadGroup (loadGroup);
602604 aRv = fetch->Fetch (signalImpl, resolver);
@@ -1694,7 +1696,7 @@ void FetchBody<Derived>::MaybeTeeReadableStreamBody(
16941696 return ;
16951697 }
16961698
1697- nsTArray<RefPtr<ReadableStream> > branches;
1699+ nsTArray<RefPtr<ReadableStream>> branches;
16981700 MOZ_KnownLive (mReadableStreamBody )->Tee (aCx, branches, aRv);
16991701 if (aRv.Failed ()) {
17001702 return ;
0 commit comments