Skip to content

Commit

Permalink
Issue #1124: [Basilisk] Remove Dev Edition front-end tie-ins.
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfbeast committed Aug 14, 2019
1 parent 9f7b943 commit cdd54fb
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 211 deletions.
142 changes: 0 additions & 142 deletions application/basilisk/base/content/browser-devedition.js

This file was deleted.

3 changes: 0 additions & 3 deletions application/basilisk/base/content/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,6 @@ var gBrowserInit = {
gPageStyleMenu.init();
BrowserOnClick.init();
FeedHandler.init();
DevEdition.init();
AboutPrivateBrowsingListener.init();
TrackingProtection.init();
RefreshBlocker.init();
Expand Down Expand Up @@ -1479,8 +1478,6 @@ var gBrowserInit = {

FeedHandler.uninit();

DevEdition.uninit();

TrackingProtection.uninit();

RefreshBlocker.uninit();
Expand Down
1 change: 0 additions & 1 deletion application/basilisk/base/content/global-scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
<script type="application/javascript" src="chrome://browser/content/browser-captivePortal.js"/>
<script type="application/javascript" src="chrome://browser/content/browser-ctrlTab.js"/>
<script type="application/javascript" src="chrome://browser/content/browser-customization.js"/>
<script type="application/javascript" src="chrome://browser/content/browser-devedition.js"/>
<script type="application/javascript" src="chrome://browser/content/browser-feeds.js"/>
<script type="application/javascript" src="chrome://browser/content/browser-fullScreenAndPointerLock.js"/>
<script type="application/javascript" src="chrome://browser/content/browser-fullZoom.js"/>
Expand Down
1 change: 0 additions & 1 deletion application/basilisk/base/jar.mn
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ browser.jar:
content/browser/browser-ctrlTab.js (content/browser-ctrlTab.js)
content/browser/browser-customization.js (content/browser-customization.js)
content/browser/browser-data-submission-info-bar.js (content/browser-data-submission-info-bar.js)
content/browser/browser-devedition.js (content/browser-devedition.js)
content/browser/browser-feeds.js (content/browser-feeds.js)
content/browser/browser-fullScreenAndPointerLock.js (content/browser-fullScreenAndPointerLock.js)
content/browser/browser-fullZoom.js (content/browser-fullZoom.js)
Expand Down
23 changes: 2 additions & 21 deletions application/basilisk/components/nsBrowserGlue.js
Original file line number Diff line number Diff line change
Expand Up @@ -676,19 +676,6 @@ BrowserGlue.prototype = {
// Ensure we keep track of places/pw-mananager undo by init'ing this early.
Cu.import("resource:///modules/AutoMigrate.jsm");

if (!AppConstants.RELEASE_OR_BETA) {
let themeName = gBrowserBundle.GetStringFromName("deveditionTheme.name");
let vendorShortName = gBrandBundle.GetStringFromName("vendorShortName");

LightweightThemeManager.addBuiltInTheme({
id: "[email protected]",
name: themeName,
headerURL: "resource:///chrome/browser/content/browser/defaultthemes/devedition.header.png",
iconURL: "resource:///chrome/browser/content/browser/defaultthemes/devedition.icon.png",
author: vendorShortName,
});
}

TabCrashHandler.init();

Services.obs.notifyObservers(null, "browser-ui-startup-complete", "");
Expand Down Expand Up @@ -1943,14 +1930,8 @@ BrowserGlue.prototype = {
defaultThemeSelected = Services.prefs.getCharPref("general.skins.selectedSkin") == "classic/1.0";
} catch (e) {}

// If we are on the devedition channel, the devedition theme is on by
// default. But we need to handle the case where they didn't want it
// applied, and unapply the theme.
let userChoseToNotUseDeveditionTheme =
!defaultThemeSelected ||
(lightweightThemeSelected && selectedThemeID != "[email protected]");

if (userChoseToNotUseDeveditionTheme && selectedThemeID == "[email protected]") {
// If we have the dev edition theme selected, reset it.
if (selectedThemeID == "[email protected]") {
Services.prefs.setCharPref("lightweightThemes.selectedThemeID", "");
}

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ const SCRIPTS = [
"browser/base/content/browser-addons.js",
"browser/base/content/browser-ctrlTab.js",
"browser/base/content/browser-customization.js",
"browser/base/content/browser-devedition.js",
"browser/base/content/browser-feeds.js",
"browser/base/content/browser-fullScreenAndPointerLock.js",
"browser/base/content/browser-fullZoom.js",
Expand Down

0 comments on commit cdd54fb

Please sign in to comment.