Bug 1146193 - Part 1: Fix tab drag and drop. r=gavin
authorTooru Fujisawa <arai_a@mac.com>
Tue, 24 Mar 2015 04:38:30 +0900
changeset 235133 840cfd5bc9712a9dbccb829b71abc5fdcfd00020
parent 235132 235a9cb26548a76b85a67af8845746ac27ca2e7a
child 235264 08f09b24606efcb5afcc69dc612dcc426f7f20ec
child 235276 61da841bfb68af3b5d1f47afa6ae0cfb688af4cc
child 235311 791e6d72c6e4735feec6bfe0babac4f8a95702c8
push id28466
push userkwierso@gmail.com
push dateTue, 24 Mar 2015 01:00:42 +0000
treeherdermozilla-central@840cfd5bc971 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgavin
bugs1146193
milestone39.0a1
first release with
nightly linux32
840cfd5bc971 / 39.0a1 / 20150324030207 / files
nightly linux64
840cfd5bc971 / 39.0a1 / 20150324030207 / files
nightly mac
840cfd5bc971 / 39.0a1 / 20150324030207 / files
nightly win32
840cfd5bc971 / 39.0a1 / 20150324030207 / files
nightly win64
840cfd5bc971 / 39.0a1 / 20150324030207 / files
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1146193 - Part 1: Fix tab drag and drop. r=gavin
browser/base/content/tabbrowser.xml
--- a/browser/base/content/tabbrowser.xml
+++ b/browser/base/content/tabbrowser.xml
@@ -4393,17 +4393,17 @@
               if (PrivateBrowsingUtils.isWindowPrivate(window) !=
                   PrivateBrowsingUtils.isWindowPrivate(sourceNode.ownerDocument.defaultView))
                 return dt.effectAllowed = "none";
 
               if (window.gMultiProcessBrowser !=
                   sourceNode.ownerDocument.defaultView.gMultiProcessBrowser)
                 return dt.effectAllowed = "none";
 
-              let copyModifier = this.AppConstants.platform == "macosx" ? event.altKey : event.ctrlKey;
+              let copyModifier = this.tabbrowser.AppConstants.platform == "macosx" ? event.altKey : event.ctrlKey;
               return dt.effectAllowed = copyModifier ? "copy" : "move";
             }
           }
 
           if (browserDragAndDrop.canDropLink(event)) {
             // Here we need to do this manually
             return dt.effectAllowed = dt.dropEffect = "link";
           }