From b109b14de63500ab07c478723d4851b345139bdd Mon Sep 17 00:00:00 2001 From: Ascrod <32915892+Ascrod@users.noreply.github.com> Date: Fri, 25 May 2018 06:53:37 -0400 Subject: Remove UITour and customize tips. --- .../components/customizableui/CustomizeMode.jsm | 44 - .../customizableui/content/panelUI.inc.xul | 19 - browser/components/moz.build | 1 - browser/components/nsBrowserGlue.js | 10 - browser/components/uitour/UITour-lib.js | 331 --- browser/components/uitour/UITour.jsm | 2111 -------------------- browser/components/uitour/content-UITour.js | 103 - browser/components/uitour/jar.mn | 6 - browser/components/uitour/moz.build | 9 - 9 files changed, 2634 deletions(-) delete mode 100644 browser/components/uitour/UITour-lib.js delete mode 100644 browser/components/uitour/UITour.jsm delete mode 100644 browser/components/uitour/content-UITour.js delete mode 100644 browser/components/uitour/jar.mn delete mode 100644 browser/components/uitour/moz.build (limited to 'browser/components') diff --git a/browser/components/customizableui/CustomizeMode.jsm b/browser/components/customizableui/CustomizeMode.jsm index 49868cdbd..e63e25b0a 100644 --- a/browser/components/customizableui/CustomizeMode.jsm +++ b/browser/components/customizableui/CustomizeMode.jsm @@ -90,7 +90,6 @@ function CustomizeMode(aWindow) { // to the user when in customizing mode. this.visiblePalette = this.document.getElementById(kPaletteId); this.paletteEmptyNotice = this.document.getElementById("customization-empty"); - this.tipPanel = this.document.getElementById("customization-tipPanel"); if (Services.prefs.getCharPref("general.skins.selectedSkin") != "classic/1.0") { let lwthemeButton = this.document.getElementById("customization-lwtheme-button"); lwthemeButton.setAttribute("hidden", "true"); @@ -355,7 +354,6 @@ CustomizeMode.prototype = { this._updateEmptyPaletteNotice(); this._updateLWThemeButtonIcon(); - this.maybeShowTip(panelHolder); this._handler.isEnteringCustomizeMode = false; panelContents.removeAttribute("customize-transitioning"); @@ -400,8 +398,6 @@ CustomizeMode.prototype = { return; } - this.hideTip(); - this._handler.isExitingCustomizeMode = true; if (this._enableOutlinesTimeout) { @@ -675,46 +671,6 @@ CustomizeMode.prototype = { return "url(\"" + aData.headerURL.replace(/"/g, '\\"') + "\")"; }, - maybeShowTip: function(aAnchor) { - let shown = false; - const kShownPref = "browser.customizemode.tip0.shown"; - try { - shown = Services.prefs.getBoolPref(kShownPref); - } catch (ex) {} - if (shown) - return; - - let anchorNode = aAnchor || this.document.getElementById("customization-panelHolder"); - let messageNode = this.tipPanel.querySelector(".customization-tipPanel-contentMessage"); - if (!messageNode.childElementCount) { - // Put the tip contents in the popup. - let bundle = this.document.getElementById("bundle_browser"); - const kLabelClass = "customization-tipPanel-link"; - messageNode.innerHTML = bundle.getFormattedString("customizeTips.tip0", [ - "