From 0b2ab77a19b70eb6df5332a032986899159140f8 Mon Sep 17 00:00:00 2001 From: Tetsuharu OHZEKI Date: Tue, 6 May 2014 05:17:20 +0900 Subject: [PATCH] Bug 1005868 - Remove the needless migration code for 'browser.tabs.onTop'. r=dao --- browser/components/nsBrowserGlue.js | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/browser/components/nsBrowserGlue.js b/browser/components/nsBrowserGlue.js index 4c73a533911f..d421dab8b055 100644 --- a/browser/components/nsBrowserGlue.js +++ b/browser/components/nsBrowserGlue.js @@ -1407,19 +1407,6 @@ BrowserGlue.prototype = { } } - if (currentUIVersion < 6) { - // convert tabsontop attribute to pref - let toolboxResource = this._rdf.GetResource(BROWSER_DOCURL + "navigator-toolbox"); - let tabsOnTopResource = this._rdf.GetResource("tabsontop"); - let tabsOnTopAttribute = this._getPersist(toolboxResource, tabsOnTopResource); - if (tabsOnTopAttribute) - Services.prefs.setBoolPref("browser.tabs.onTop", tabsOnTopAttribute == "true"); - } - - // Migration at version 7 only occurred for users who wanted to try the new - // Downloads Panel feature before its release. Since migration at version - // 9 adds the button by default, this step has been removed. - if (currentUIVersion < 8) { // Reset homepage pref for users who have it set to google.com/firefox let uri = Services.prefs.getComplexValue("browser.startup.homepage", @@ -1512,8 +1499,6 @@ BrowserGlue.prototype = { OS.File.remove(path); } - // Version 15 was obsoleted in favour of 18. - if (currentUIVersion < 16) { let toolbarResource = this._rdf.GetResource(BROWSER_DOCURL + "nav-bar"); let collapsedResource = this._rdf.GetResource("collapsed");