Bug 1809922 - Enable window.print for Release in GeckoView r=geckoview-reviewers,webidl,smaug,saschanaz,m_kato

This bug changes the preference for window.print (dom.enable_window_print)
in GeckoView and Android to on by default. It also adjusts WPT expectations.

Differential Revision: https://phabricator.services.mozilla.com/D174535
This commit is contained in:
Olivia Hall 2023-04-05 21:30:19 +00:00
parent 9f18205385
commit 5028881191
12 changed files with 2 additions and 64 deletions

View file

@ -1884,12 +1884,7 @@ let interfaceNamesInGlobalScope = [
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "postMessage", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
{
name: "print",
insecureContext: true,
android: false,
nightlyAndroid: true,
},
{ name: "print", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "prompt", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!

View file

@ -90,11 +90,6 @@ pref("extensions.formautofill.addresses.capture.enabled", true);
pref("browser.formfill.debug", false);
pref("extensions.formautofill.loglevel", "Warn");
// Bug 1809922 to enable window.print in StaticPrefList.yaml for release
#ifdef NIGHTLY_BUILD
pref("dom.enable_window_print", true);
#endif
// PDF.js (enabled in StaticPrefList.yaml)
// Try to convert PDFs sent as octet-stream
pref("pdfjs.handleOctetStream", true);

View file

@ -2418,7 +2418,7 @@
- name: dom.enable_window_print
type: bool
value: @IS_NOT_ANDROID@
value: true
mirror: always
# Only intended for fuzzing purposes, this will break mozPrintCallback, etc.

View file

@ -6,7 +6,3 @@
[A SecurityError exception must be thrown when window.onmousewheel is accessed from a different origin.]
expected: FAIL
[A SecurityError exception must be thrown when window.print is accessed from a different origin.]
expected:
if os == "android" and not nightly_build: FAIL

View file

@ -8,6 +8,3 @@
[Window attribute: onmousewheel]
expected: FAIL
[Window method: print]
expected:
if os == "android" and not nightly_build: FAIL

View file

@ -431,14 +431,6 @@ prefs: [dom.security.featurePolicy.experimental.enabled:true, dom.security.featu
[Window interface: attribute oncancel]
expected: FAIL
[Window interface: operation print()]
expected:
if os == "android" and not nightly_build: FAIL
[Window interface: window must inherit property "print()" with the proper type]
expected:
if os == "android" and not nightly_build: FAIL
[Window interface: window must inherit property "originAgentCluster" with the proper type]
expected: FAIL

View file

@ -1,7 +0,0 @@
[iframe_sandbox_block_modals-4.html]
expected:
if os == "android" and not nightly_build: TIMEOUT
[Frames without `allow-modals` should not be able to open modal dialogs]
expected:
if os == "android" and not nightly_build: TIMEOUT

View file

@ -1,14 +0,0 @@
[compile-event-handler-lexical-scopes.html]
expected:
if (os == "android") and fission: [OK, TIMEOUT]
[The EventHandler is an element's event handler and has no form owner.]
expected:
if os == "android" and not nightly_build: FAIL
[The EventHandler is an element's event handler and has a form owner.]
expected:
if os == "android" and not nightly_build: FAIL
[The EventHandler is not an element's event handler (i.e. Window's event handler) and has no form owner.]
expected:
if os == "android" and not nightly_build: FAIL

View file

@ -1,5 +0,0 @@
[print-during-beforeunload.html]
[print() during beforeunload]
expected:
if os == "android" and not nightly_build: FAIL

View file

@ -1,5 +0,0 @@
[print-during-unload.html]
[print() during unload]
expected:
if os == "android" and not nightly_build: FAIL

View file

@ -1,6 +1,3 @@
[print-in-detached-frame.html]
max-asserts: 2
[print() in a detached iframe]
expected:
if os == "android" and not nightly_build: FAIL

View file

@ -4,6 +4,3 @@ bug: https://bugzilla.mozilla.org/show_bug.cgi?id=739038
prefs: [print.always_print_silent:true, "print_printer:Mozilla Save to PDF"]
disabled:
if (asan or debug): https://bugzilla.mozilla.org/show_bug.cgi?id=1661162
[Delayed print before load]
expected:
if os == "android" and not nightly_build: FAIL