icecat: update upstream v128.13.0-1gnu1

This commit is contained in:
Ark74 2025-08-07 14:40:00 -06:00
parent a8d305c270
commit 0cdda4f34e
51 changed files with 5487 additions and 4614 deletions

View file

@ -5005,9 +5005,8 @@ void nsGlobalWindowOuter::PrintOuter(ErrorResult& aError) {
}
});
const bool forPreview =
!StaticPrefs::print_always_print_silent() &&
!Preferences::GetBool("print.prefer_system_dialog", false);
const bool forPreview = !StaticPrefs::print_always_print_silent() &&
!StaticPrefs::print_prefer_system_dialog();
Print(nullptr, nullptr, nullptr, nullptr, IsPreview(forPreview),
IsForWindowDotPrint::Yes, nullptr, nullptr, aError);
#endif
@ -5205,8 +5204,11 @@ Nullable<WindowProxyHolder> nsGlobalWindowOuter::Print(
// The exception is if we're using the passed-in aCachedBrowsingContext, in
// which case this is the second print with this static document clone that
// we created the first time through, and we are responsible for cleaning it
// up.
closeWindowAfterPrint = usingCachedBrowsingContext;
// up. There's also an exception if we're directly using the system print
// dialog rather than our preview panel, because in this case the preview
// will not take care of cleaning up the cloned doc.
closeWindowAfterPrint =
usingCachedBrowsingContext || StaticPrefs::print_prefer_system_dialog();
} else {
// In this case the document was not a static clone, so we made a static
// clone for printing purposes and must clean it up after the print is done.
@ -5248,6 +5250,9 @@ Nullable<WindowProxyHolder> nsGlobalWindowOuter::Print(
if (aIsPreview == IsPreview::Yes) {
return !hasPrintCallbacks;
}
if (StaticPrefs::print_prefer_system_dialog()) {
return true;
}
return StaticPrefs::dom_window_print_fuzzing_block_while_printing();
}();