mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 769848 - window.resizeTo fails is blocked in apps. r=jst
This commit is contained in:
parent
9f7b825989
commit
7a53f37405
@ -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)
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user