Commit graph

255 commits

Author SHA1 Message Date
Tom Tung
f64d521b89 Bug 1536796 - P4 - Temporary fix for test_refresh_firefox.py; r=dom-workers-and-storage-reviewers,janv,whimboo
This test tries to remove profile by rmtree. However, since the "\\?\" prefix
has been applied to QM and its clients on Windows and thus they are able to
create files which exceed the MAX_PATH limitation.

Therefore, we need to prepend the prefix to the remove function in this test as
well.

Note that the problem was caused by an extension that uses IDB which was not
able to create a directory for stored files. The test doesn't check IDB so it
always passed before, despite the IDB failure. However, preceding patches make
it possible to use long file names in QM and QM clients, so IDB implementation
is now able to create the directory and the test needs to be able to delete it
as well.

Depends on D67875

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

--HG--
extra : moz-landing-system : lando
2020-04-01 12:27:50 +00:00
Ed Lee
d556b5b824 Bug 1613337 - Support importing Windows Chrome/Edge logins with v10 AEAD format r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D64713

--HG--
extra : moz-landing-system : lando
2020-02-29 19:26:18 +00:00
Daniel Varga
888e5ef471 Backed out changeset 5e048feda16f (bug 1613337) mac and linux opt all_files_referenced failures 2020-02-29 21:12:33 +02:00
Ed Lee
5920b6c292 Bug 1613337 - Support importing Windows Chrome/Edge logins with v10 AEAD format r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D64713

--HG--
extra : moz-landing-system : lando
2020-02-29 16:19:18 +00:00
Matthew Noorenberghe
d81e89c89a Bug 1582738 - ChromeProfileMigrator: Don't initialize crypto if there are no rows. r=Gijs
Initializing OSCrypto can lead to a useless macOS Keychain prompt when there are no logins to import.

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

--HG--
rename : browser/components/migration/tests/unit/AppData/Local/Google/Chrome/User Data/Default/Login Data => browser/components/migration/tests/unit/AppData/LocalWithNoData/Google/Chrome/User Data/Default/Login Data
rename : browser/components/migration/tests/unit/Library/Application Support/Google/Chrome/Default/Login Data => browser/components/migration/tests/unit/LibraryWithNoData/Application Support/Google/Chrome/Default/Login Data
rename : browser/components/migration/tests/unit/Library/Application Support/Google/Chrome/Local State => browser/components/migration/tests/unit/LibraryWithNoData/Application Support/Google/Chrome/Local State
rename : browser/components/migration/tests/unit/test_Chrome_passwords.js => browser/components/migration/tests/unit/test_Chrome_passwords_emptySource.js
extra : moz-landing-system : lando
2020-01-28 10:50:10 +00:00
Matthew Noorenberghe
f5aec46ab3 Bug 1216186 - Use the actual browser name for imported bookmark folders from Chromium. r=Gijs
Using _getLocalePropertyForBrowser isn't ideal but ideally this patch would get uplifted so I didn't want to do a larger refactoring to fix this.

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

--HG--
extra : moz-landing-system : lando
2020-01-28 12:27:25 +00:00
Andreea Pavel
de61d02293 Bug 1558330 - disable test_MigrationUtils_timedRetry.js on mac shippable r=egao
Differential Revision: https://phabricator.services.mozilla.com/D54888

--HG--
extra : moz-landing-system : lando
2019-11-27 07:11:51 +00:00
Ehsan Akhgari
d0732b6e03 Bug 1591813 - Make nsICookieManager.getCookiesFromHost() return an Array<nsICookie>; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D50750

--HG--
extra : moz-landing-system : lando
2019-10-28 12:08:09 +00:00
Mark Hammond
61ae99a8c1 Bug 1577662 (part 2) - Profile reset now correctly handles that signed in to FxA doesn't always mean sync. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D47572

--HG--
extra : moz-landing-system : lando
2019-10-01 01:12:42 +00:00
Mark Hammond
affb20bf7e Bug 1577662 (part 1) - Allow profile refresh test to test multiple refresh scenarios. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D47571

--HG--
extra : moz-landing-system : lando
2019-10-01 01:12:23 +00:00
Matthew Noorenberghe
9fefa39499 Bug 1423714 - Import logins from Chrome/Chromium on macOS. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D45155

--HG--
rename : browser/components/migration/tests/unit/AppData/Local/Google/Chrome/User Data/Default/Login Data => browser/components/migration/tests/unit/Library/Application Support/Google/Chrome/Default/Login Data
extra : moz-landing-system : lando
2019-09-18 04:47:34 +00:00
monikamaheshwari
9d60e0d578 Bug 1578683 Turn on ESLint rule prefer-boolean-length-check for toolkit and browser r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D45629

--HG--
extra : moz-landing-system : lando
2019-09-14 09:39:26 +00:00
Ciure Andrei
9a123fb597 Backed out changeset 81156ff3f4fa (bug 1571656) for causing browser_PageActions.js and test_insertTree_fixupOrSkipInvalidEntries.js to perma fail CLOSED TREE 2019-08-19 13:00:44 +03:00
Moritz Birghan
240771fa29 Bug 1571656 - Use Assert.jsm numeric comparison functions in tests r=mixedpuppy,MattN
Differential Revision: https://phabricator.services.mozilla.com/D40614

--HG--
extra : moz-landing-system : lando
2019-08-19 07:17:12 +00:00
Matthew Noorenberghe
4501fe3c9e Bug 1569414 - Don't hardcode a too old history visit date in test_Chrome_history.js.
Differential Revision: https://phabricator.services.mozilla.com/D39606

--HG--
extra : moz-landing-system : lando
2019-07-27 15:57:53 +00:00
Gijs Kruitbosch
2b449941ae Bug 1557960 - cope with 0 values in Chrome's date/time columns when importing, r=mak
Differential Revision: https://phabricator.services.mozilla.com/D37810

--HG--
extra : moz-landing-system : lando
2019-07-15 21:52:56 +00:00
Victor Porof
1f830c96da Bug 1561435 - Format browser/components/, a=automatic-formatting
# ignore-this-changeset

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

--HG--
extra : source : d3afcafdce650a6f36cebbc126ee93b17f13cf52
2019-07-05 09:53:32 +02:00
Maliha Islam
2d69e323f1 Bug 1559975 - Make directories python3 compatible r=catlee
Differential Revision: https://phabricator.services.mozilla.com/D35257

--HG--
extra : moz-landing-system : lando
2019-07-02 15:47:34 +00:00
Boris Zbarsky
9de72a3ac6 Bug 1557793 part 2. Stop using [array] in nsIStringBundle. r=Pike
Differential Revision: https://phabricator.services.mozilla.com/D34196

--HG--
extra : moz-landing-system : lando
2019-06-11 15:51:51 +00:00
Matthew Noorenberghe
a74f1ce836 Bug 1148205 - Replace misnamed formSubmitURL and hostname properties on nsILoginInfo in browser/. r=jaws,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D33346

--HG--
extra : moz-landing-system : lando
2019-06-05 05:33:24 +00:00
Andrea Marchesini
b1b122fb20 Bug 1554464 - Merge nsICookie2 and nsICookie in 1 single interface, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D33031

--HG--
extra : moz-landing-system : lando
2019-05-31 09:36:44 +00:00
Andrea Marchesini
4c6ace6ac6 Bug 1551798 - Rename nsICookie2.SAMESITE_UNSET to nsICookie2.SAMESITE_NONE, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D31214

--HG--
extra : moz-landing-system : lando
2019-05-29 15:55:03 +00:00
arthur.iakab
944263f18a Backed out 5 changesets (bug 1551798) for multiple build bustages on StaticPrefList.h CLOSED TREE
Backed out changeset c89daff34d97 (bug 1551798)
Backed out changeset bbc3f88b8c03 (bug 1551798)
Backed out changeset b87996b8a411 (bug 1551798)
Backed out changeset d88b0002d736 (bug 1551798)
Backed out changeset 0fe740c90e2b (bug 1551798)
2019-05-29 18:07:26 +03:00
Andrea Marchesini
e9bbb85ed1 Bug 1551798 - Rename nsICookie2.SAMESITE_UNSET to nsICookie2.SAMESITE_NONE, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D31214

--HG--
extra : moz-landing-system : lando
2019-05-24 15:18:49 +00:00
Boris Zbarsky
47a701ff47 Bug 1551657 part 3. Stop using [array] in findLogins. r=MattN
I audited the results from
https://searchfox.org/mozilla-central/search?q=%5B%5EA-Za-z_%5D%5BFf%5DindLogins%5B%5EA-Za-z_%5D&case=true&regexp=true&path=

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

--HG--
extra : moz-landing-system : lando
2019-05-14 19:28:52 +00:00
Boris Zbarsky
fd4dae89f0 Bug 1551657 part 1. Stop using [array] in getAllLogins. r=MattN
I audited all the callsites
https://searchfox.org/mozilla-central/search?q=%5B%5EA-Za-z_%5D%5BGg%5DetAllLogins%5B%5EA-Za-z_%5D&case=true&regexp=true&path=
brings up.

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

--HG--
extra : moz-landing-system : lando
2019-05-14 19:28:51 +00:00
Matthew Noorenberghe
3675e85c1a Bug 1543258 - Handle NULL 'action_url' for Chrome login import. r=sfoster
Save it with the wildcard "" value so it works with any form action.

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

--HG--
extra : moz-landing-system : lando
2019-05-09 22:59:18 +00:00
Sylvestre Ledru
ef0bfc3822 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-03-31 15:12:55 +00:00
Mark Banner
dba6983e75 Bug 1415265 - Remove now unnecessary .eslintrc.js files or entries. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D23850

--HG--
extra : moz-landing-system : lando
2019-03-28 09:38:14 +00:00
Matthew Noorenberghe
6532cbeb1f Bug 1533288 - Test import of Internet Explorer history. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D22845

--HG--
extra : moz-landing-system : lando
2019-03-13 03:12:15 +00:00
Matthew Noorenberghe
60aedcf69e Bug 1533288 - Add an executable to insert IE history on test machines. r=jaws,firefox-build-system-reviewers,mshal
Differential Revision: https://phabricator.services.mozilla.com/D22844

--HG--
extra : moz-landing-system : lando
2019-03-13 03:12:08 +00:00
Jared Wein
e81fbc39e8 Bug 1529495 - Remove unused third argument to OSCrypto.decryptData and OSCrypto.encryptData. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D20628

--HG--
extra : moz-landing-system : lando
2019-02-21 15:35:27 +00:00
Jared Wein
f777b77069 Bug 1520949 - Use TextEncoder/TextDecoder to handle multibyte characters in passwords. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D20625

--HG--
extra : moz-landing-system : lando
2019-02-21 15:34:57 +00:00
Joel Maher
bdd8e3ce31 Bug 1522900 - adjust manifests to allow tests to pass on windows10 1803 release. r=gbrown CLOSED TREE
--HG--
extra : rebase_source : 1350412a9925eea526bda708011086c4e8e19170
extra : amend_source : 548af67b37ba2207f380c509a1b213c323fcd1cb
2019-02-11 10:02:51 +01:00
Marco Bonardo
55c448b0c3 Bug 1522818 - Skip test_IE_cookies.js when cookies are not stored as files. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D17953

--HG--
extra : moz-landing-system : lando
2019-01-30 00:08:39 +00:00
Mark Banner
6c738aad1e Bug 1520808 - Allow importing of history from Chrome even if it was created in the future. r=mak
Rather than aborting adding data, we set the history items to have the current date/time. This seems mildly better than throwing away the history data.

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

--HG--
extra : moz-landing-system : lando
2019-01-29 12:06:05 +00:00
Kris Maglione
e930b89c34 Bug 1514594: Part 3 - Change ChromeUtils.import API.
***
Bug 1514594: Part 3a - Change ChromeUtils.import to return an exports object; not pollute global. r=mccr8

This changes the behavior of ChromeUtils.import() to return an exports object,
rather than a module global, in all cases except when `null` is passed as a
second argument, and changes the default behavior not to pollute the global
scope with the module's exports. Thus, the following code written for the old
model:

  ChromeUtils.import("resource://gre/modules/Services.jsm");

is approximately the same as the following, in the new model:

  var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");

Since the two behaviors are mutually incompatible, this patch will land with a
scripted rewrite to update all existing callers to use the new model rather
than the old.
***
Bug 1514594: Part 3b - Mass rewrite all JS code to use the new ChromeUtils.import API. rs=Gijs

This was done using the followng script:

https://bitbucket.org/kmaglione/m-c-rewrites/src/tip/processors/cu-import-exports.jsm
***
Bug 1514594: Part 3c - Update ESLint plugin for ChromeUtils.import API changes. r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D16747
***
Bug 1514594: Part 3d - Remove/fix hundreds of duplicate imports from sync tests. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16748
***
Bug 1514594: Part 3e - Remove no-op ChromeUtils.import() calls. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16749
***
Bug 1514594: Part 3f.1 - Cleanup various test corner cases after mass rewrite. r=Gijs
***
Bug 1514594: Part 3f.2 - Cleanup various non-test corner cases after mass rewrite. r=Gijs

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

--HG--
extra : rebase_source : 359574ee3064c90f33bf36c2ebe3159a24cc8895
extra : histedit_source : b93c8f42808b1599f9122d7842d2c0b3e656a594%2C64a3a4e3359dc889e2ab2b49461bab9e27fc10a7
2019-01-17 10:18:31 -08:00
Dave Townsend
55dc7cb4db Bug 1518587: Move startup profile selection to nsToolkitProfileService. r=froydnj
Currently nsAppRunner is responsible for choosing or creating a profile to use
at startup. It then has to create a reset profile if necessary and lock the
selected profile directories. But these latter things are done in different
places of the selection code and done in different ways, sometimes we delay
while trying to get the lock, sometimes we don't.

This patch moves the profile selection part of the code to its own function so
that then we only have to have one place that does the profile reset and
locking logic.

It makes a lot of sense to have the selection code live in the profile service.
It can use information from the database load to help make the choices and it
also means that we can expose the profile selection code through xpcom allowing
it to be easily automatically tested. It will also be more important for future
patches for the dedicated profiles feature.

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

--HG--
extra : moz-landing-system : lando
2019-01-14 17:27:34 +00:00
Henrik Skupin
bbf8e689c3 Bug 1499367 - Improve assertion for profileNameToRemove in test_refresh_firefox.py. r=Gijs
assertIn(el, list) should be favored over assertTrue(el in list),
which gives clear details about what is different.

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

--HG--
extra : moz-landing-system : lando
2018-10-16 14:40:46 +00:00
Gijs Kruitbosch
909f7acef8 Bug 1488926 - remove automigration code (already preffed off), r=dthayer
Differential Revision: https://phabricator.services.mozilla.com/D8425

--HG--
extra : moz-landing-system : lando
2018-10-11 17:04:59 +00:00
Doug Thayer
0fd7f560d6 Bug 1426245 - Test changes r=mak
MozReview-Commit-ID: 4fhhzspxLJZ

Depends on D4606

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

--HG--
extra : moz-landing-system : lando
2018-10-09 14:47:31 +00:00
Andrea Marchesini
42c515aa1c Bug 1260399 - Remove deprecated messages in nsICookieManager methods - part 2 - nsICookieManager.getCookiesFromHost(), r=ehsan 2018-09-24 11:37:57 +02:00
Andrea Marchesini
61a7f9a598 Bug 1260399 - Remove deprecated messages in nsICookieManager methods - part 1 - nsICookieManager.add(), r=ehsan 2018-09-24 11:37:56 +02:00
Kris Maglione
80327d3561 Bug 1484496: Part 5a - Convert browser/ nsISimpleEnumerator users to use JS iteration. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D3729

--HG--
extra : rebase_source : e187b8e9a6b6db7ebc762adda5e489b25c7a7e43
extra : histedit_source : 868cb99d09954a51d6be321fcb516475ef70eb33
2018-08-18 19:27:33 -07:00
Jonathan Kingston
2f0987a202 Bug 1362034 - Tests for addTab() to provide the correct triggering principal. r=ckerschb r?=gijs
Summary: Depends on D2046

Reviewers: ckerschb!, Gijs!

Tags: #secure-revision

Bug #: 1362034

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

--HG--
extra : source : 33884d05cc94463950b31fab1fd2f37ada9becef
extra : intermediate-source : 72471adb75d5ec3dc2b0c8f972a6f1f26bfd3ae2
extra : histedit_source : f384cbab58401575afc3443c9a431b73cff806d4
2018-07-06 21:16:29 +01:00
dvarga
12f19b94e9 Backed out 2 changesets (bug 1362034) for failure at browser/tools/mozscreenshots/primaryUI/browser_primaryUI.js on a CLOSED TREE
Backed out changeset 1c3329958b8a (bug 1362034)
Backed out changeset f68b1b76af36 (bug 1362034)

--HG--
extra : histedit_source : 6169c5ffe856266d3bc8b2ca32f4b67054c71bbe
2018-08-08 22:11:56 +03:00
Jonathan Kingston
c15f69d427 Bug 1362034 - Tests for addTab() to provide the correct triggering principal. r=ckerschb,Gijs
Summary: Depends on D2046

Reviewers: ckerschb, Gijs

Reviewed By: ckerschb, Gijs

Bug #: 1362034

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

--HG--
extra : rebase_source : ccded0f06a0dc4567b827f42ee29f4b8954154fe
extra : amend_source : 94da8ecc053e56958fa4137d7e497362fa2c11f1
2018-08-08 20:05:30 +03:00
Andreea Pavel
f5c1119983 Backed out 2 changesets (bug 1362034) for failing damp | inspector/cold-open.js on a CLOSED TREE
Backed out changeset 8c8925b75aa2 (bug 1362034)
Backed out changeset ff6b05c96094 (bug 1362034)
2018-08-06 20:42:44 +03:00
Jonathan Kingston
4ca581ffed Bug 1362034 - Tests for addTab() to provide the correct triggering principal. r=ckerschb,Gijs
Summary: Depends on D2046

Reviewers: ckerschb, Gijs

Reviewed By: ckerschb, Gijs

Bug #: 1362034

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

--HG--
extra : rebase_source : 4bb9e7feb0704239756e6e38623c0fea81669f7b
extra : amend_source : 9417f96547735fbdc55ea23666327a5cb86ac92f
2018-08-06 19:56:37 +03:00
Gijs Kruitbosch
fa65d99910 Bug 1434281 - also delete local/cache profile directory from refresh test, r=whimboo
Ensure local profile directory is also deleted in test teardown.

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

--HG--
extra : moz-landing-system : lando
2018-08-02 18:54:28 +00:00