Bug 1246327 - Remove dom.always_allow_move_resize_window preference. r=jst
authorMarco Castelluccio <mcastelluccio@mozilla.com>
Fri, 01 Apr 2016 19:58:22 +0100
changeset 291244 d82bdcd0b640dc5aefb0c10ea108a2c04c81d98c
parent 291243 288b6ba19e644cec4aa6a3c2cf609cf8c7e975f8
child 291245 5620c5785d8e80ce0f50fa557d14a134741e1c02
push id74534
push usermcastelluccio@mozilla.com
push dateFri, 01 Apr 2016 18:59:08 +0000
treeherdermozilla-inbound@d82bdcd0b640 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjst
bugs1246327
milestone48.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1246327 - Remove dom.always_allow_move_resize_window preference. r=jst
dom/base/nsGlobalWindow.cpp
--- a/dom/base/nsGlobalWindow.cpp
+++ b/dom/base/nsGlobalWindow.cpp
@@ -6445,20 +6445,17 @@ nsGlobalWindow::CanMoveResizeWindows(boo
       uint32_t itemCount;
       if (NS_SUCCEEDED(treeOwner->GetTargetableShellCount(&itemCount)) &&
           itemCount > 1) {
         return false;
       }
     }
   }
 
-  // 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)) {
+  if (mDocShell) {
     bool allow;
     nsresult rv = mDocShell->GetAllowWindowControl(&allow);
     if (NS_SUCCEEDED(rv) && !allow)
       return false;
   }
 
   if (gMouseDown && !gDragServiceDisabled) {
     nsCOMPtr<nsIDragService> ds =