diff --git a/dom/base/nsGlobalWindow.cpp b/dom/base/nsGlobalWindow.cpp index 44d99e82e8e..e621b641cb4 100644 --- a/dom/base/nsGlobalWindow.cpp +++ b/dom/base/nsGlobalWindow.cpp @@ -5242,6 +5242,9 @@ nsGlobalWindow::Print() #ifdef NS_PRINTING FORWARD_TO_OUTER(Print, (), NS_ERROR_NOT_INITIALIZED); + if (Preferences::GetBool("dom.disable_window_print", false)) + return NS_ERROR_NOT_AVAILABLE; + if (AreDialogsBlocked() || !ConfirmDialogAllowed()) return NS_ERROR_NOT_AVAILABLE; diff --git a/mobile/android/app/mobile.js b/mobile/android/app/mobile.js index 57837a0e639..d665089f04c 100644 --- a/mobile/android/app/mobile.js +++ b/mobile/android/app/mobile.js @@ -251,6 +251,7 @@ pref("privacy.popups.showBrowserMessage", true); /* disable opening windows with the dialog feature */ pref("dom.disable_window_open_dialog_feature", true); pref("dom.disable_window_showModalDialog", true); +pref("dom.disable_window_print", true); pref("keyword.enabled", true); pref("keyword.URL", "https://www.google.com/m?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q=");