[Pkg-mozext-commits] [tabmixplus] 26/61: Follow up bug 1094328 - [e10s] Detaching XUL tabs leaves a ghost tab in the old window, and opens a blank tab in the new window
David Prévot
taffit at moszumanska.debian.org
Fri Aug 28 19:09:19 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository tabmixplus.
commit 485e928260453a08dd57c1085a8e5a845ffa6541
Author: onemen <tabmix.onemen at gmail.com>
Date: Mon Jul 27 21:27:17 2015 +0300
Follow up bug 1094328 - [e10s] Detaching XUL tabs leaves a ghost tab in the old window, and opens a blank tab in the new window
---
chrome/content/minit/minit.js | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/chrome/content/minit/minit.js b/chrome/content/minit/minit.js
index 14e97b9..05e8a70 100644
--- a/chrome/content/minit/minit.js
+++ b/chrome/content/minit/minit.js
@@ -385,6 +385,15 @@ var TMP_tabDNDObserver = {
// windows)
let newTab = gBrowser.addTab("about:blank");
var newBrowser = gBrowser.getBrowserForTab(newTab);
+ let draggedBrowserURL = draggedTab.linkedBrowser.currentURI.spec;
+
+ // If we're an e10s browser window, an exception will be thrown
+ // if we attempt to drag a non-remote browser in, so we need to
+ // ensure that the remoteness of the newly created browser is
+ // appropriate for the URL of the tab being dragged in.
+ gBrowser.updateBrowserRemotenessByURL(newBrowser,
+ draggedBrowserURL);
+
// Stop the about:blank load
newBrowser.stop();
// make sure it has a docshell
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/tabmixplus.git
More information about the Pkg-mozext-commits
mailing list