Bug 1199678 - recognize MS Edge in MigrationUtils.jsm for default browser detection, r=Dolske FUNNELCAKE86_BRANCH
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Wed, 29 Jun 2016 19:37:48 +0100
branchFUNNELCAKE86_BRANCH
changeset 326425 050ce0723341fb2972bcb6ef119eee5aa4289034
parent 326424 22b54748738957f9db2ca8d8b8e02bb7e495dc9b
child 326426 7e9d07aa236143ecbb4aae49917e20cf5d68fadb
push id1143
push usernthomas@mozilla.com
push dateTue, 05 Jul 2016 23:40:05 +0000
treeherdermozilla-release@0cc1138c8b72 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersDolske
bugs1199678
milestone47.0.1
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",
     };