[Pkg-mozext-commits] [tabmixplus] 21/44: get poup opener from tab.linkedBrowser.contentWindowAsCPOW.opener

David Prévot taffit at moszumanska.debian.org
Wed Oct 15 02:10:03 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository tabmixplus.

commit 91061e4245ce8c7e5cce27cc62fe2fcec9f4b022
Author: onemen <tabmix.onemen at gmail.com>
Date:   Fri Oct 10 16:46:46 2014 +0300

    get poup opener from tab.linkedBrowser.contentWindowAsCPOW.opener
---
 modules/MergeWindows.jsm | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/MergeWindows.jsm b/modules/MergeWindows.jsm
index 24e97c5..6046085 100644
--- a/modules/MergeWindows.jsm
+++ b/modules/MergeWindows.jsm
@@ -140,8 +140,7 @@ let MergeWindows = {
       if (placePopupNextToOpener) {
         // since we merge popup after all other tabs was merged,
         // we only look for opener in the target window
-        let popupWindow = aTab.ownerDocument.defaultView;
-        let openerWindow = popupWindow.gBrowser.selectedBrowser[TabmixSvc.contentWindowAsCPOW].opener;
+        let openerWindow = aTab.linkedBrowser[TabmixSvc.contentWindowAsCPOW].opener;
         let openerTab = openerWindow &&
             tabbrowser._getTabForContentWindow(openerWindow.top);
         if (openerTab)

-- 
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