Bug 1205398 - e10s drag-n-drop panel should be mousethrough=always. r=jimm
authorFelipe Gomes <felipc@gmail.com>
Wed, 16 Sep 2015 22:40:24 -0300
changeset 295457 005290f8c1d58b27c500b9c31a04f220078d1ea7
parent 295456 fb266acf3160a8786db737048285c6b38d9e51c3
child 295458 ef5b842c975a28a77abd0a3ecd942de81cede633
push id5245
push userraliiev@mozilla.com
push dateThu, 29 Oct 2015 11:30:51 +0000
treeherdermozilla-beta@dac831dc1bd0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjimm
bugs1205398
milestone43.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 1205398 - e10s drag-n-drop panel should be mousethrough=always. r=jimm
browser/base/content/tabbrowser.xml
--- a/browser/base/content/tabbrowser.xml
+++ b/browser/base/content/tabbrowser.xml
@@ -5481,16 +5481,17 @@
           context.fillRect(0, 0, canvas.width, canvas.height);
           // Create a panel to use it in setDragImage
           // which will tell xul to render a panel that follows
           // the pointer while a dnd session is on.
           if (!this._dndPanel) {
             this._dndCanvas = canvas;
             this._dndPanel = document.createElement("panel");
             this._dndPanel.setAttribute("type", "drag");
+            this._dndPanel.setAttribute("mousethrough", "always");
             this._dndPanel.appendChild(canvas);
             document.documentElement.appendChild(this._dndPanel);
           }
           // PageThumb is async with e10s but that's fine
           // since we can update the panel during the dnd.
           PageThumbs.captureToCanvas(browser, canvas);
           toDrag = this._dndPanel;
         } else {