mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 739038 - Disable window.print on Fennec [r=jst]
This commit is contained in:
parent
6cc1d6d44a
commit
ff4859867a
@ -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;
|
||||
|
||||
|
@ -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=");
|
||||
|
Loading…
Reference in New Issue
Block a user