diff --git a/browser/base/content/browser-tabview.js b/browser/base/content/browser-tabview.js index ca9e1f766ff8..660fa02a6b30 100644 --- a/browser/base/content/browser-tabview.js +++ b/browser/base/content/browser-tabview.js @@ -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( diff --git a/browser/base/content/test/tabview/browser_tabview_bug626525.js b/browser/base/content/test/tabview/browser_tabview_bug626525.js index 55fcb4deb453..b76425a7d4d2 100644 --- a/browser/base/content/test/tabview/browser_tabview_bug626525.js +++ b/browser/base/content/test/tabview/browser_tabview_bug626525.js @@ -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");