Skip to content

Commit

Permalink
Bug 1834737: apply code formatting via Lando
Browse files Browse the repository at this point in the history
# ignore-this-changeset
  • Loading branch information
Otto Länd committed May 31, 2023
1 parent df42b5c commit 167c9b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dom/base/Navigator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
3 changes: 2 additions & 1 deletion dom/base/nsGlobalWindowOuter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 167c9b2

Please sign in to comment.