Bug 739038 - Disable window.print on Fennec [r=jst]

This commit is contained in:
Matt Brubeck 2012-04-13 12:45:06 -07:00
parent 6cc1d6d44a
commit ff4859867a
2 changed files with 4 additions and 0 deletions

View File

@ -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;

View File

@ -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=");