gecko-dev/toolkit/content
Dave Townsend 9127e8bbdc Bug 1322797: Replace selectedProfile with currentProfile and fix defaultProfile. r=froydnj, r=flod
The current properties selectedProfile and defaultProfile are somewhat confusing
selectedProfile actually returns the default profile for the build and
defaultProfile returns the default profile for non-dev-edition builds. This
confusion leads to callers doing the wrong thing in some places.

What most code actually cares about is being able to set/get the default profile
for this build and getting the current profile in use. So this patch replaces
the previous properties with currentProfile and defaultProfile which do what
makes more sense.

This patch also switches from using the preprocessor to change behaviour for
dev-edition builds to using a boolean flag since some code was incorrectly
ignoring the setting to make dev-edition use the same profile as normal builds.

In order to make currentProfile correct when resetting a profile I had to move
CreateResetProfile into nsToolkitProfileService.

Differential Revision: https://phabricator.services.mozilla.com/D16118

--HG--
extra : rebase_source : cefe252618cd3a1b0e0cd5a71b056dd2b557f1a3
extra : intermediate-source : 35af79575f54f75d22e213fdac7ddd704b40807a
extra : source : 732d1ce192408d4f595f2fce16f45c7354ce3097
2018-12-28 09:44:47 -08:00
..
aboutwebrtc Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
gmp-sources Bug 1507389 - Update GMP fallback downloader for Widevine 4.10.1196.0 r=rhelmer 2018-11-21 21:44:18 +00:00
tests Bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks) r=mossop,Standard8 2019-01-30 17:26:25 +00:00
widgets Bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks) r=mossop,Standard8 2019-01-30 17:26:25 +00:00
.eslintrc.js
TopLevelVideoDocument.js Bug 1484544 - Allow focusable element to function on top level video element r=Gijs 2018-08-24 17:37:15 +00:00
about.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
aboutAbout.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
aboutAbout.xhtml Bug 1486934 - Modify about:about to use fluent for localization r=Gijs,flod,jaws,Pike 2018-10-10 17:41:47 +00:00
aboutMozilla.css
aboutNetworking.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
aboutNetworking.xhtml Bug 1504751 Migrate about:networking to Fluent r=jaws,flod 2018-11-20 00:53:23 +00:00
aboutProfiles.js Bug 1322797: Replace selectedProfile with currentProfile and fix defaultProfile. r=froydnj, r=flod 2018-12-28 09:44:47 -08:00
aboutProfiles.xhtml Bug 1322797: Replace selectedProfile with currentProfile and fix defaultProfile. r=froydnj, r=flod 2018-12-28 09:44:47 -08:00
aboutRights-unbranded.xhtml
aboutRights.js
aboutRights.xhtml
aboutServiceWorkers.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
aboutServiceWorkers.xhtml Bug 1508131 - Migrate about:serviceworkers to use Fluent for localization r=Gijs,flod,zbraniecki 2018-12-04 23:27:45 +00:00
aboutSupport.js Bug 1519487 - fix display of `false` and other falsy values in about:support when passed to $.new, r=jaws 2019-01-24 16:05:39 +00:00
aboutSupport.xhtml Bug 1517410 - Don't show the unknown multiprocess status string while the page is loading. r=Gijs 2019-01-29 19:49:45 +00:00
aboutTelemetry.css Bug 1498169 - Render histogram data from multiple stores r=chutten 2018-12-17 16:59:13 +00:00
aboutTelemetry.js Bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks) r=mossop,Standard8 2019-01-30 17:26:25 +00:00
aboutTelemetry.xhtml Bug 1503671 - Add to about:telemetry a link to the Probe Dictionary r=chutten 2018-11-01 09:06:00 +02:00
aboutUrlClassifier.css
aboutUrlClassifier.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
aboutUrlClassifier.xhtml Bug 1517308 - Add a search field in about:url-classifier - part 2 - about page, r=dimi, r=flod 2019-01-08 23:05:41 +01:00
autocomplete.css Bug 1473832 - Load "autocomplete.css" and "autocomplete-item.css" as document stylesheets. r=bgrins 2018-07-06 10:11:25 +01:00
browser-child.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
browser-content.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
buildconfig.css
buildconfig.html Bug 1521463 - Show rustc info in about:buildconfig r=firefox-build-system-reviewers,mshal 2019-01-23 20:15:14 +00:00
contentAreaUtils.js Bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks) r=mossop,Standard8 2019-01-30 17:26:25 +00:00
customElements.js Bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks) r=mossop,Standard8 2019-01-30 17:26:25 +00:00
datepicker.xhtml Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
directionDetector.html
editMenuCommands.inc.xul Bug 1482256 - Support switching to browser.xul to browser.xhtml. r=mossop 2018-08-14 13:13:38 -07:00
editMenuKeys.inc.xul
editMenuOverlay.js
filepicker.properties
globalOverlay.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
jar.mn Bug 1507895 - Part II, Remove the datetimebox binding r=smaug 2019-01-28 18:32:39 +00:00
license.html Bug 1521538 - Update license for Reselect in Activity Stream r=mhoye 2019-01-24 22:12:23 +00:00
macWindowMenu.js Bug 1484496: Part 5b - Convert toolkit/ nsISimpleEnumerator users to use JS iteration. r=Gijs 2018-08-18 19:27:50 -07:00
minimal-xul.css Bug 1514498 - Hide rather than collapse scrollbar thumb when scrollbar is disabled. r=NeilDeakin 2019-01-10 14:15:30 +00:00
moz.build Bug 1521463 - Show rustc info in about:buildconfig r=firefox-build-system-reviewers,mshal 2019-01-23 20:15:14 +00:00
mozilla.xhtml
plugins.css
plugins.html Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
preferencesBindings.js Merge mozilla-inbound to mozilla-central. a=merge 2019-01-29 12:01:56 +02:00
process-content.js Bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks) r=mossop,Standard8 2019-01-30 17:26:25 +00:00
resetProfile.css
resetProfile.js
resetProfile.xul
resetProfileProgress.xul Bug 1428869 - Use html:progress in front-end code. r=bgrins,Gijs 2018-10-18 15:41:21 +01:00
timepicker.xhtml Bug 1476145 part 6. Stop using getInterface(nsIDOMWindowUtils) in toolkit. r=mossop 2018-07-24 19:47:42 -04:00
treeUtils.js Backed out 3 changesets (bug 1482389) for build bustages in nsDOMAttributeMap.h CLOSED TREE 2019-01-09 16:00:19 +02:00
viewZoomOverlay.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
widgets.css Bug 1437641 - Remove numberbox binding and convert usages to input[type=number]. r=bgrins,dao 2019-01-09 08:51:32 +00:00
xul.css Bug 1518932 - Convert menulist to custom element r=paolo 2019-01-28 18:24:08 +00:00