Bug 1199678 - recognize MS Edge in MigrationUtils.jsm for default browser detection, r?dolske draft
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Wed, 29 Jun 2016 19:37:48 +0100
changeset 382489 fae77ee90a10553b0695f1f49f451a0ca6decc6d
parent 382081 e774866bf8a12537e451ccc4b38ffbf0610b5d49
child 524205 c6545545dff4e03c1103acb2809b83adf7d6793f
push id21735
push usergijskruitbosch@gmail.com
push dateWed, 29 Jun 2016 18:38:14 +0000
reviewersdolske
bugs1199678
milestone50.0a1
Bug 1199678 - recognize MS Edge in MigrationUtils.jsm for default browser detection, r?dolske MozReview-Commit-ID: Bmuyv59fRAv
browser/components/migration/MigrationUtils.jsm
--- a/browser/components/migration/MigrationUtils.jsm
+++ b/browser/components/migration/MigrationUtils.jsm
@@ -510,16 +510,17 @@ this.MigrationUtils = Object.freeze({
    * For the time being, the "internal name" of a migrator is its contract-id
    * trailer (e.g. ie for @mozilla.org/profile/migrator;1?app=browser&type=ie),
    * but it will soon be exposed properly.
    */
   getMigratorKeyForDefaultBrowser() {
     // Canary uses the same description as Chrome so we can't distinguish them.
     const APP_DESC_TO_KEY = {
       "Internet Explorer":                 "ie",
+      "Microsoft Edge":                    "edge",
       "Safari":                            "safari",
       "Firefox":                           "firefox",
       "Google Chrome":                     "chrome",  // Windows, Linux
       "Chrome":                            "chrome",  // OS X
       "Chromium":                          "chromium", // Windows, OS X
       "Chromium Web Browser":              "chromium", // Linux
       "360\u5b89\u5168\u6d4f\u89c8\u5668": "360se",
     };