[Pkg-mozext-commits] [tabmixplus] 06/44: When replacing last tab make sure the new tab is not private (PrivateTab extension)
David Prévot
taffit at moszumanska.debian.org
Wed Oct 15 02:09:58 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 f23d566fe6e711e61f3455b80a142f92cc58fd3a
Author: onemen <tabmix.onemen at gmail.com>
Date: Mon Sep 29 17:15:32 2014 +0300
When replacing last tab make sure the new tab is not private (PrivateTab extension)
---
chrome/content/links/userInterface.js | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/chrome/content/links/userInterface.js b/chrome/content/links/userInterface.js
index e0b2f92..23f28ea 100644
--- a/chrome/content/links/userInterface.js
+++ b/chrome/content/links/userInterface.js
@@ -150,6 +150,11 @@ function TMP_BrowserOpenTab(aTab, replaceLastTab) {
var loadInBackground = replaceLastTab ? false :
Tabmix.prefs.getBoolPref("loadNewInBackground");
var loadBlank = isBlankPageURL(url);
+ if (!TabmixSessionManager.isPrivateWindow && replaceLastTab && !loadBlank &&
+ typeof privateTab == "object" && privateTab.isTabPrivate(selectedTab) &&
+ TabmixSvc.prefs.get("extensions.privateTab.makeNewEmptyTabsPrivate", 0) == 0) {
+ privateTab.readyToOpenTab(false);
+ }
var newTab = gBrowser.addTab(url, {
charset: loadBlank ? null : gBrowser.selectedBrowser.characterSet,
ownerTab: loadInBackground ? null : selectedTab,
--
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