зеркало из https://github.com/mozilla/gecko-dev.git
Bug 635051 - revert experienced_first_use to experienced_first_run [r=ian, a=beltzner]
This commit is contained in:
Родитель
153b74e59b
Коммит
f7814c5a1b
|
@ -60,15 +60,15 @@ let TabView = {
|
|||
// ----------
|
||||
set firstUseExperienced(val) {
|
||||
if (val != this._firstUseExperienced)
|
||||
Services.prefs.setBoolPref("browser.panorama.experienced_first_use", val);
|
||||
Services.prefs.setBoolPref("browser.panorama.experienced_first_run", val);
|
||||
},
|
||||
|
||||
// ----------
|
||||
init: function TabView_init() {
|
||||
if (!Services.prefs.prefHasUserValue("browser.panorama.experienced_first_use") ||
|
||||
!Services.prefs.getBoolPref("browser.panorama.experienced_first_use")) {
|
||||
if (!Services.prefs.prefHasUserValue("browser.panorama.experienced_first_run") ||
|
||||
!Services.prefs.getBoolPref("browser.panorama.experienced_first_run")) {
|
||||
Services.prefs.addObserver(
|
||||
"browser.panorama.experienced_first_use", this, false);
|
||||
"browser.panorama.experienced_first_run", this, false);
|
||||
} else {
|
||||
this._firstUseExperienced = true;
|
||||
|
||||
|
@ -104,7 +104,7 @@ let TabView = {
|
|||
observe: function TabView_observe(subject, topic, data) {
|
||||
if (topic == "nsPref:changed") {
|
||||
Services.prefs.removeObserver(
|
||||
"browser.panorama.experienced_first_use", this);
|
||||
"browser.panorama.experienced_first_run", this);
|
||||
this._firstUseExperienced = true;
|
||||
this._addToolbarButton();
|
||||
}
|
||||
|
@ -115,7 +115,7 @@ let TabView = {
|
|||
uninit: function TabView_uninit() {
|
||||
if (!this._firstUseExperienced) {
|
||||
Services.prefs.removeObserver(
|
||||
"browser.panorama.experienced_first_use", this);
|
||||
"browser.panorama.experienced_first_run", this);
|
||||
}
|
||||
if (this._tabShowEventListener) {
|
||||
gBrowser.tabContainer.removeEventListener(
|
||||
|
|
|
@ -9,7 +9,7 @@ function test() {
|
|||
|
||||
// disable the first run pref
|
||||
prefsBranch = Services.prefs.getBranch("browser.panorama.");
|
||||
prefsBranch.setBoolPref("experienced_first_use", false);
|
||||
prefsBranch.setBoolPref("experienced_first_run", false);
|
||||
|
||||
let win =
|
||||
window.openDialog(getBrowserURL(), "_blank", "all,dialog=no", "about:blank");
|
||||
|
@ -67,7 +67,7 @@ function test2(win) {
|
|||
// move a tab to another group including iframe initialization. Then,
|
||||
// use the key combination to change to the next group.
|
||||
function test3(win) {
|
||||
prefsBranch.setBoolPref("experienced_first_use", true);
|
||||
prefsBranch.setBoolPref("experienced_first_run", true);
|
||||
|
||||
let newTab = win.gBrowser.addTab("about:blank");
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче