browser.tabs.insertRelatedAfterCurrentをfalseに固定
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6654 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
d68e52d277
commit
53090d18b3
@ -122,6 +122,7 @@ pref("extensions.treestyletab.undoCloseTabSet.behavior", 3);
|
|||||||
pref("browser.link.open_newwindow.restriction.override", 0);
|
pref("browser.link.open_newwindow.restriction.override", 0);
|
||||||
pref("browser.tabs.loadFolderAndReplace.override", false);
|
pref("browser.tabs.loadFolderAndReplace.override", false);
|
||||||
pref("browser.tabs.insertRelatedAfterCurrent.override", false);
|
pref("browser.tabs.insertRelatedAfterCurrent.override", false);
|
||||||
|
pref("browser.tabs.insertRelatedAfterCurrent.override.force", true);
|
||||||
|
|
||||||
pref("extensions.multipletab.show.multipletab-selection-item-removeTabSubtree", true);
|
pref("extensions.multipletab.show.multipletab-selection-item-removeTabSubtree", true);
|
||||||
pref("extensions.multipletab.show.multipletab-selection-item-createSubtree", true);
|
pref("extensions.multipletab.show.multipletab-selection-item-createSubtree", true);
|
||||||
|
@ -1740,7 +1740,6 @@ var TreeStyleTabUtils = {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'browser.tabs.insertRelatedAfterCurrent':
|
case 'browser.tabs.insertRelatedAfterCurrent':
|
||||||
value = false; // 常にfalseで固定
|
|
||||||
case 'browser.link.open_newwindow.restriction':
|
case 'browser.link.open_newwindow.restriction':
|
||||||
case 'browser.tabs.loadFolderAndReplace':
|
case 'browser.tabs.loadFolderAndReplace':
|
||||||
case 'extensions.stm.tabBarMultiRows': // Super Tab Mode
|
case 'extensions.stm.tabBarMultiRows': // Super Tab Mode
|
||||||
@ -1751,15 +1750,20 @@ var TreeStyleTabUtils = {
|
|||||||
case 'browser.link.open_newwindow.restriction.override':
|
case 'browser.link.open_newwindow.restriction.override':
|
||||||
case 'browser.tabs.loadFolderAndReplace.override':
|
case 'browser.tabs.loadFolderAndReplace.override':
|
||||||
case 'extensions.stm.tabBarMultiRows.override': // Super Tab Mode
|
case 'extensions.stm.tabBarMultiRows.override': // Super Tab Mode
|
||||||
if (aPrefName == 'browser.tabs.insertRelatedAfterCurrent.override') {
|
if (this.getPref(aPrefName+'.force')) {
|
||||||
value = false; // 常にfalseで固定
|
let defaultValue = this.getDefaultPref(aPrefName);
|
||||||
|
if (value != defaultValue) {
|
||||||
|
this.setPref(aPrefName, defaultValue);
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.prefOverriding = true;
|
this.prefOverriding = true;
|
||||||
var target = aPrefName.replace('.override', '');
|
let (target = aPrefName.replace('.override', '')) {
|
||||||
var originalValue = this.getPref(target);
|
let originalValue = this.getPref(target);
|
||||||
if (originalValue !== null && originalValue != value)
|
if (originalValue !== null && originalValue != value)
|
||||||
this.setPref(target+'.backup', originalValue);
|
this.setPref(target+'.backup', originalValue);
|
||||||
this.setPref(target, this.getPref(aPrefName));
|
this.setPref(target, this.getPref(aPrefName));
|
||||||
|
}
|
||||||
this.prefOverriding = false;
|
this.prefOverriding = false;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user