[Pkg-mozext-commits] [tabmixplus] 23/44: Allow to load about:blank address on about:sessionRestore and aboutTabGroupsMigration

David Prévot taffit at moszumanska.debian.org
Fri Mar 18 20:57:16 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 c457611f837ca7d1f4a70e02d9defa310cb89935
Author: onemen <tabmix.onemen at gmail.com>
Date:   Sun Feb 28 21:20:00 2016 +0200

    Allow to load about:blank address on about:sessionRestore and aboutTabGroupsMigration
---
 chrome/content/minit/tablib.js | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/chrome/content/minit/tablib.js b/chrome/content/minit/tablib.js
index dc0a570..4c1c1ea 100644
--- a/chrome/content/minit/tablib.js
+++ b/chrome/content/minit/tablib.js
@@ -72,7 +72,14 @@ var tablib = { // eslint-disable-line
     var allowLoad = tablib.isException(browser.tabmix_allowLoad !== false ||
                                        uri.match(/^javascript:/));
 
-    if (!allowLoad) {
+    let allowedUrls = [
+      "chrome://browser/content/aboutTabGroupsMigration.xhtml",
+      "about:sessionRestore"
+    ];
+    if (!allowLoad && uri == "about:blank" &&
+        allowedUrls.indexOf(browser.currentURI.spec) > -1) {
+      allowLoad = true;
+    } else if (!allowLoad) {
       // we allow Google Redirects Fixer & Tracking Remover to load fixed url
       // to the same tab
       if (TabmixSvc.isFixedGoogleUrl(uri)) {

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