Skip to content

Commit

Permalink
Add "rememberOwnerTab" preference (disabled by default)
Browse files Browse the repository at this point in the history
(part 3 for #87)
  • Loading branch information
Infocatcher committed Aug 2, 2013
1 parent f6f7702 commit d37853e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -1455,7 +1455,7 @@ var windowsObserver = {
// TabKit 2nd Edition https://addons.mozilla.org/firefox/addon/tabkit-2nd-edition/
if("tabkit" in window)
window.tabkit.addingTab("related");
if(sourceDocument) {
if(sourceDocument && prefs.get("rememberOwnerTab")) {
var sourceWindow = sourceDocument.defaultView.top;
if("_getTabForContentWindow" in gBrowser)
ownerTab = gBrowser._getTabForContentWindow(sourceWindow);
Expand Down
1 change: 1 addition & 0 deletions defaults/preferences/prefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ pref("extensions.privateTab.sendRefererHeader", 2);
pref("extensions.privateTab.toggleTabPrivateAutoReload", true);
pref("extensions.privateTab.workaroundForPendingTabs", true);
pref("extensions.privateTab.dontUseTabsInPopupWindows", true);
pref("extensions.privateTab.rememberOwnerTab", false);
pref("extensions.privateTab.fixAppButtonWidth", true);
pref("extensions.privateTab.patchDownloads", true);

Expand Down

0 comments on commit d37853e

Please sign in to comment.