Commit Graph

47 Commits

Author SHA1 Message Date
Gijs Kruitbosch
6704872296 Bug 1448920 - add support for importing Edge typed URL history from its database instead, r=mak
MozReview-Commit-ID: 6AzEJluqn73
2018-04-18 17:50:36 +01:00
Ganesh Chaitanya Kale
67bb868656 Bug 1282770 - Convert uses of PU.asyncHistory.updatePlaces in browser/components/migration to PU.history.insertMany. r=mak
Patch originally by Ganesh, updated by Standard8

MozReview-Commit-ID: AihTLo5OyK1
2018-03-20 12:36:31 +00:00
Andrew McCreight
272cee1e65 Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG
2018-02-06 09:36:57 -08:00
Florian Quèze
c5f15a4700 Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop. 2018-02-01 20:45:22 +01:00
Kris Maglione
0bb74efdf1 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Cosmin Sabou
f09d6d985d Backed out 3 changesets (bug 1431533) for Android mochitest failures on testEventDispatcher on a CLOSED TREE
Backed out changeset a1eca62826a1 (bug 1431533)
Backed out changeset 34c999fa006b (bug 1431533)
Backed out changeset e2674287e57f (bug 1431533)
2018-01-30 07:17:48 +02:00
Kris Maglione
fd67f090b2 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Brindusan Cristian
483ba301cb Backed out 2 changesets (bug 1431533) for ESlint failures on a CLOSED TREE
Backed out changeset 6e56f4c8843e (bug 1431533)
Backed out changeset 12fc4dee861c (bug 1431533)
2018-01-30 02:32:43 +02:00
Kris Maglione
683a97d172 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Doug Thayer
015377398b Bug 862127 - Make migration interfaces more async r=Gijs
In order to clean up sync IO within our profile migrators, we
need to have async interfaces for those parts which are currently
doing sync IO. This converts the sync interfaces and adjusts most
of the call sites (migration.js call site changes are addressed
in a separate patch to break it out a bit).


MozReview-Commit-ID: 2Kcrxco4iYr
2018-01-12 09:06:21 -08:00
Sam R-T, Joseph F, Robin H
0be01d2d28 Bug 1432062 - Require dangling commas via eslint for the migration component. r=MattN 2018-01-22 15:22:35 -08:00
Doug Thayer
c88b6d5bf1 Bug 1430318 - Fix getLastUsedDate bugs from using typedURLs r=mak
getLastUsedDate should be converting the microseconds of typedURLs
into milliseconds.

MozReview-Commit-ID: DjJKm5aPcGD
2018-01-17 11:15:27 -08:00
Dan Banner
503979c95a Bug 1367704 - Enable the semi ESLint rule across the tree. r=standard8
MozReview-Commit-ID: GrlcOI9K2hJ
2017-05-28 19:57:46 +01:00
Mark Banner
9fc03b12e9 Bug 1365412 - Clean up various ESLint global definitions in browser/. r=mossop
MozReview-Commit-ID: JqAm9x1XGCM
2017-05-16 22:22:42 +01:00
Florian Quèze
ff53eb9a63 Bug 1353542 - massive script-generated patch converting Task.async and Task.spawn calls, and generators clearly identifiable as tasks, rs=Mossop. 2017-05-12 14:42:39 +02:00
Gijs Kruitbosch
7ea2b323c0 Bug 1353373 - fix Edge readinglist imports, r=jaws
MozReview-Commit-ID: Fu9n3FIrxf6
2017-04-04 16:18:17 +01:00
Gijs Kruitbosch
bc67e6078a Bug 1349632 - fix hangs when trying to import bookmarks from Edge, r=dao
MozReview-Commit-ID: 1xF16KddJBv
2017-03-25 09:49:26 +00:00
Sebastian Hengst
c6925b33f7 Backed out changeset fff5c87922e6 (bug 1349632) for failing xpcshell test test_Edge_db_migration.js. r=backout 2017-03-23 17:17:03 +01:00
Gijs Kruitbosch
016c6f7a59 Bug 1349632 - fix hangs when trying to import bookmarks from Edge, r=dao
MozReview-Commit-ID: 1xF16KddJBv
2017-03-22 18:07:36 +00:00
Gijs Kruitbosch
da2191fab2 Bug 1344759 - batch-insert bookmarks when importing from Edge, IE, Safari or Chrome, r=dao
MozReview-Commit-ID: Dhvw0Y0fm5x
2017-03-13 23:46:16 +00:00
Gijs Kruitbosch
1c923f4717 Bug 1344644 - stop supporting outdated Edge bookmarks format to avoid hangs trying to open bookmarks database when Edge is open, r=dao
MozReview-Commit-ID: 2KihobvE8nV
2017-03-07 14:09:34 +00:00
Gijs Kruitbosch
e1717a1338 Bug 1341097 - part 2: allow turning off notifications for individual inserted results when calling updatePlaces, r=mak
This sets a property on the callback object rather than passing an argument
to handleCompletion, to avoid accidentally breaking consumers who don't
expect arguments. The downside is that this required more changes to C++
consumers, but we control all of those so that seemed an acceptable
trade-off.

We should probably actually report errors for all the migrators, but I didn't
want to add risk (what if in some edge-case there are lots?) so I didn't. I'll
file a followup to update them to Cu.reportError() any errors.

MozReview-Commit-ID: Hue9Ci3hyVz
2017-02-21 14:20:21 +00:00
Florian Quèze
45647c4570 Bug 1329182 - remove trailing newURI null parameters in browser/, r=jaws. 2017-01-09 20:27:25 +01:00
Jared Wein
e3149c378f Bug 1325464 - Enable object-shorthand rule and run 'mach eslint --fix' with the rule enabled. r=MattN
MozReview-Commit-ID: 7E7LPorrEje
2016-12-29 18:34:54 -05:00
Wes Kocher
2d7553dcfd Backed out 3 changesets (bug 1325464) for xpcshell failures a=backout
Backed out changeset 562ddc32cc21 (bug 1325464)
Backed out changeset cd10db6087dd (bug 1325464)
Backed out changeset 4079437c4648 (bug 1325464)
2016-12-29 14:05:44 -08:00
Jared Wein
34e228f767 Bug 1325464 - Enable object-shorthand rule and run 'mach eslint --fix' with the rule enabled. r=MattN
MozReview-Commit-ID: 8WoGr8i6oCR
2016-12-29 15:20:47 -05:00
Dave Townsend
bbe7bf32d1 Bug 1316882: Turn on rest-spread-spacing eslint rule. r=felipe
MozReview-Commit-ID: EbRmrGz1G0a
2016-11-10 15:12:47 -08:00
Gijs Kruitbosch
1eb867efaf Bug 1279501 - add telemetry for the number of bookmarks, history visits and logins are imported from another browser, r=bsmedberg,mak
MozReview-Commit-ID: EiZfkj6AsVL
2016-10-22 14:40:48 +01:00
Wes Kocher
5d8f248c21 Backed out changeset 77012ce07e57 (bug 1279501) a=gijs 2016-11-01 10:47:59 -07:00
Gijs Kruitbosch
f0e91ab90a Bug 1279501 - add telemetry for the number of bookmarks, history visits and logins are imported from another browser, r=bsmedberg,mak
MozReview-Commit-ID: EiZfkj6AsVL
2016-10-22 14:40:48 +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
63852c5b10 Bug 1276694 - store recency of browser data in telemetry when importing to see how good a predictor default browser is, r=dolske,bsmedberg
MozReview-Commit-ID: 16uPNGGDE68
2016-05-30 17:10:54 +01:00
Gijs Kruitbosch
3ef81462ae Bug 1236154 - add test for ESE migration code, r=MattN
MozReview-Commit-ID: 5lILvkVn3tW
2016-02-11 18:46:32 +00:00
Gijs Kruitbosch
400c2b60e9 Bug 1226556 - part 3: add tableExists to ESEDBReader, use it to fall back to normal bookmarks migration, r=MattN 2016-02-03 14:46:36 +00:00
Gijs Kruitbosch
0fb84b1255 Bug 1226556 - part 2: use ESE database to import Edge bookmarks, r=MattN 2016-01-30 11:22:19 +00:00
Gijs Kruitbosch
75e888c321 Bug 1237679 - use sourceLocked to ensure users get warned to close the browser before running the migration, r=MattN 2016-01-28 16:35:04 +00:00
Gijs Kruitbosch
5d78de5be4 Bug 1229076 - use JS module for reading ESE database, r=MattN 2015-12-01 20:24:54 +00:00
Gijs Kruitbosch
1815a7213f Bug 1225798 - part 2: move reading list import to its own bookmarks migrator source, r=MattN 2015-11-18 11:56:02 +00:00
Gijs Kruitbosch
f6a698b67e Bug 1164675 - hide min/max/restore buttons in the main window in windows 10 tablet mode, r=jaws 2015-10-20 14:56:17 +01:00
Gijs Kruitbosch
a688b4fb63 Bug 1205053 - use registry typedURLs to import rudimentary history from MS Edge, r=dolske 2015-09-15 22:18:41 +01:00
Riadh Chtara
a783a87550 Bug 1192035 - Import passwords from Microsoft Edge / Windows 8+ r=Gijs,MattN 2015-09-16 17:34:26 -07:00
Gijs Kruitbosch
72e8358f64 Bug 1200598 - fix exception thrown when using migration on win8.1 or below, r=MattN 2015-09-08 16:16:56 +01:00
Gijs Kruitbosch
95d597e462 Bug 1193387 - Import reading list from MS Edge. r=jaws 2015-08-26 15:34:02 +01:00
Ryan VanderMeulen
fc5047b7d6 Backed out changeset ef82210d0bf3 (bug 1193387) for various WinXP test failures.
CLOSED TREE
2015-08-28 21:01:27 -04:00
Gijs Kruitbosch
ef01e16420 Bug 1193387 - import reading list from MS Edge, r=jaws 2015-08-26 15:34:02 +01:00
Gijs Kruitbosch
782aa71caa Bug 1192036 - import cookies from Edge, r=MattN 2015-08-19 16:32:54 +01:00
Gijs Kruitbosch
b8a3720667 Bug 1192032 - add edge bookmarks/favorites migrator, r=MattN 2015-08-11 16:53:10 +01:00