Commit Graph

18 Commits

Author SHA1 Message Date
Gijs Kruitbosch
1b441533b6 Bug 1319816 - fix default browser determination on Windows 7 and below in the automigration case, r=jaws
As noted on the bug, because we call getMigratorKeyForDefaultBrowser() multiple times,
its value no longer reflects the (deleted) registry key for subsequent calls.

While we can fix this for the automigrate case by just passing the default we determined a few
lines earlier (and that seems worth doing to avoid busywork), there are 2 small problems
with this:

1) if the default browser has no data, `migratorKey` won't be set, and so we'll call the same
method again anyway, and the message reported in the error console will be that we can't
migrate from Firefox, when the real problem is that we can't migrate from the original
default browser.

2) there are other callers besides AutoMigrate. Specifically, migration.js also calls this
method.

To deal with these, I've fixed getMigratorKeyForDefaultBrowser() to return the same
registry-based value for its lifetime if we hit the 'the default is firefox, go look for an
earlier default' case.

I've verified that either the s/aMigratorKey/migratorKey/ or the change to
getMigratorKeyForDefaultBrowser() are sufficient to make this work properly in the
automigration case.

While I was here, I also updated one of the error messages to be more explicit.

MozReview-Commit-ID: GeUNTfScMMB
2016-11-23 16:06:00 +00:00
Gijs Kruitbosch
72cef5f839 Bug 1309617 - add telemetry indicating when we show the 'would you like to undo automigration' notification, r=bsmedberg,Dolske
MozReview-Commit-ID: 7RdDyn9dQNq
2016-10-19 23:10:46 +01:00
Gijs Kruitbosch
bbf79f28ea Bug 1311043 - make eslint much more strict in browser/components/migration/, and fix issues, r=mikedeboer
MozReview-Commit-ID: RXO68w3Kv3
2016-10-18 16:03:06 +01:00
Gijs Kruitbosch
c376eb21e5 Bug 1307382 - fix sync case for automigration undo telemetry, r=markh
MozReview-Commit-ID: GcJw83YnhN6
2016-10-04 10:44:28 +01:00
Gijs Kruitbosch
a20c9a70c3 Bug 1299445 - use distribution.ini directly to check if automigration is enabled, r=mkaply
MozReview-Commit-ID: DINI8rnyMfe
2016-08-31 14:58:23 +01:00
Gijs Kruitbosch
6bc028f9a6 Bug 1297479 - create a pref to turn off UI to undo automatic migration for use by funnelcake builds, r=Dolske
MozReview-Commit-ID: JZQuhMxxrXU
2016-08-23 19:30:32 +01:00
Gijs Kruitbosch
3acf980741 Bug 1289906 - part 2: add more generic telemetry for undo reasons, r=bsmedberg,markh
MozReview-Commit-ID: 1wwLdY2iumV
2016-08-20 14:15:12 +01:00
Gijs Kruitbosch
c2418d9932 Bug 1289906 - part 1: use an observer to know when the user signs into sync after an undo, r=markh
MozReview-Commit-ID: BPjUVvYdsRG
2016-08-22 12:39:39 +01:00
Gijs Kruitbosch
62c0afdc69 Bug 1289231 - part 2: remove notification after it's been displayed for 3 days, r=dolske
MozReview-Commit-ID: CFARPDu3FnI
2016-07-26 13:14:44 +01:00
Gijs Kruitbosch
04c7494230 Bug 1289231 - show 'undo' notification bar, r=dolske
MozReview-Commit-ID: 1qy7GUSaowb
2016-08-20 12:15:02 +01:00
Gijs Kruitbosch
be83ddb0f6 Bug 1289229 - disable automigration undo if people create/change bookmarks/logins, r=mak
MozReview-Commit-ID: DAoNV9H71Yv
2016-07-26 12:48:37 +01:00
Carsten "Tomcat" Book
dcf7915a78 Merge mozilla-central to autoland 2016-07-02 11:16:11 +02:00
Gijs Kruitbosch
088da6c652 Bug 1283565 - add telemetry to determine whether undo works and how often it's unavailable due to sync, r=dolske,data-r=bsmedberg
MozReview-Commit-ID: LwFrwbEQLtV
2016-06-30 19:02:46 +01:00
Gijs Kruitbosch
e06296d57a Bug 1283267 - save start time of automigration when we save the finished time, to ensure both actually get written to prefs, r=Dolske
MozReview-Commit-ID: J4foRyWlJTv
2016-06-29 20:59:23 +01:00
Gijs Kruitbosch
2b28a1277c Bug 1281602 - rework automigration telemetry to use an enumerated histogram, r=bsmedberg,dolske
MozReview-Commit-ID: 37XarohGgMN
2016-06-23 10:02:59 +01:00
Gijs Kruitbosch
5d5e70f3a6 Bug 1271799 - implement undo functionality in automigration code, r=mak
MozReview-Commit-ID: 28yvZyVimOx
2016-06-20 12:12:28 +01:00
Gijs Kruitbosch
c90442facd Bug 1283542 - fix profile detection code in AutoMigrate to deal with profile objects instead of identifiers, r=Dolske
MozReview-Commit-ID: KHjsOsxwzb7
2016-06-30 17:57:33 +01:00
Gijs Kruitbosch
e79046a3c6 Bug 1271775 - allow bypassing the initial migration dialog, r=jaws
MozReview-Commit-ID: LkhHl7ipGEb
2016-06-01 19:00:53 +01:00