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 291414 d82bdcd0b640dc5aefb0c10ea108a2c04c81d98c
parent 291413 288b6ba19e644cec4aa6a3c2cf609cf8c7e975f8
child 291415 5620c5785d8e80ce0f50fa557d14a134741e1c02
push id19656
push usergwagner@mozilla.com
push dateMon, 04 Apr 2016 13:43:23 +0000
treeherderb2g-inbound@e99061fde28a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjst
bugs1246327
milestone48.0a1
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 =