[Pkg-mozext-commits] [tabmixplus] 02/34: Follow up bug 1271792 - Set correct usercontextid before swapping tabs
David Prévot
taffit at moszumanska.debian.org
Mon Jun 27 13:57:55 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository tabmixplus.
commit f3369199e0f8fd17b8e3cb14004d63e6f58bc1a7
Author: onemen <tabmix.onemen at gmail.com>
Date: Thu Jun 23 10:42:03 2016 +0300
Follow up bug 1271792 - Set correct usercontextid before swapping tabs
---
chrome/content/minit/minit.js | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/chrome/content/minit/minit.js b/chrome/content/minit/minit.js
index 2e7ed2a..b21d76d 100644
--- a/chrome/content/minit/minit.js
+++ b/chrome/content/minit/minit.js
@@ -415,9 +415,15 @@ var TMP_tabDNDObserver = {
// swap the dropped tab with a new one we create and then close
// it in the other window (making it seem to have moved between
// windows)
- let newTab = Tabmix.isVersion(470) ?
- gBrowser.addTab("about:blank", {eventDetail: {adoptedTab: draggedTab}}) :
- gBrowser.addTab("about:blank");
+ let params = {};
+ if (Tabmix.isVersion(470)) {
+ params = {eventDetail: {adoptedTab: draggedTab}};
+ if (draggedTab.hasAttribute("usercontextid")) {
+ // new tab must have the same usercontextid as the old one
+ params.userContextId = draggedTab.getAttribute("usercontextid");
+ }
+ }
+ let newTab = gBrowser.addTab("about:blank", params);
var newBrowser = gBrowser.getBrowserForTab(newTab);
if (Tabmix.isVersion(330)) {
let draggedBrowserURL = draggedTab.linkedBrowser.currentURI.spec;
--
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