diff --git a/dom/base/Navigator.cpp b/dom/base/Navigator.cpp index 6d5e15bf26b55..151d992d6fdca 100644 --- a/dom/base/Navigator.cpp +++ b/dom/base/Navigator.cpp @@ -497,8 +497,8 @@ bool Navigator::PdfViewerEnabled() { // We ignore pdfjs.disabled when resisting fingerprinting. // See bug 1756280 for an explanation. return !StaticPrefs::pdfjs_disabled() || - nsContentUtils::ShouldResistFingerprinting( - GetDocShell(), RFPTarget::Unknown); + nsContentUtils::ShouldResistFingerprinting(GetDocShell(), + RFPTarget::Unknown); } Permissions* Navigator::GetPermissions(ErrorResult& aRv) { diff --git a/dom/base/nsGlobalWindowOuter.cpp b/dom/base/nsGlobalWindowOuter.cpp index 83c1e716fc624..6fbfe015177c9 100644 --- a/dom/base/nsGlobalWindowOuter.cpp +++ b/dom/base/nsGlobalWindowOuter.cpp @@ -2037,7 +2037,8 @@ static nsresult CreateNativeGlobalForInner( creationOptions.setDefineSharedArrayBufferConstructor( aDefineSharedArrayBufferConstructor); - // TODO(bug 1834744) we will need some way of passing different targets to the JS engine + // TODO(bug 1834744) we will need some way of passing different targets to the + // JS engine xpc::InitGlobalObjectOptions(options, principal->IsSystemPrincipal(), aDocument->ShouldResistFingerprinting( RFPTarget::IsAlwaysEnabledForPrecompute));