[Pkg-mozext-commits] [tabmixplus] 10/147: Follow up bug 1312901 - Use nsIArray for URL window argument

David Prévot taffit at moszumanska.debian.org
Sat Aug 5 15:27:31 UTC 2017


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

taffit pushed a commit to branch master
in repository tabmixplus.

commit 2cd7b8d4e64d7d9b5af5d30c3a36f3d67e168696
Author: onemen <tabmix.onemen at gmail.com>
Date:   Wed Oct 26 17:58:38 2016 +0300

    Follow up bug 1312901 - Use nsIArray for URL window argument
---
 modules/SingleWindowModeUtils.jsm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/modules/SingleWindowModeUtils.jsm b/modules/SingleWindowModeUtils.jsm
index 5eded9f..469cb92 100644
--- a/modules/SingleWindowModeUtils.jsm
+++ b/modules/SingleWindowModeUtils.jsm
@@ -139,6 +139,12 @@ this.SingleWindowModeUtils = {
         let uriString = uriToLoad.GetElementAt(i).QueryInterface(Ci.nsISupportsString);
         urls.push(uriString.data);
       }
+    } else if (uriToLoad instanceof Ci.nsIArray) {
+      let count = uriToLoad.length;
+      for (let i = 0; i < count; i++) {
+        let uriString = uriToLoad.queryElementAt(i, Ci.nsISupportsString);
+        urls.push(uriString.data);
+      }
     } else if (uriToLoad instanceof newWindow.XULElement || uriToLoad instanceof Ci.nsIDOMXULElement) {
       // some extension try to swap a tab to new window
       // we don't do anything in this case.

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