Bug 769848 - window.resizeTo fails is blocked in apps. r=jst

This commit is contained in:
Marco Castelluccio 2013-08-07 20:17:34 -04:00
parent 9f7b825989
commit 7a53f37405
2 changed files with 7 additions and 1 deletions

View File

@ -5356,7 +5356,10 @@ nsGlobalWindow::CanMoveResizeWindows()
}
}
if (mDocShell) {
// The preference is useful for the webapp runtime. Webapps should be able
// to resize or move their window.
if (mDocShell && !Preferences::GetBool("dom.always_allow_move_resize_window",
false)) {
bool allow;
nsresult rv = mDocShell->GetAllowWindowControl(&allow);
if (NS_SUCCEEDED(rv) && !allow)

View File

@ -47,6 +47,9 @@ pref("dom.mozTCPSocket.enabled", true);
// Enable smooth scrolling
pref("general.smoothScroll", true);
// Enable window resize and move
pref("dom.always_allow_move_resize_window", true);
pref("plugin.allowed_types", "application/x-shockwave-flash,application/futuresplash");
// The default for this pref reflects whether the build is capable of IPC.