Граф коммитов

959 Коммитов

Автор SHA1 Сообщение Дата
Jonas Allmann a6cd76af0c Bug 1549356 - Remove setup from eval()-whitelist, r=ckerschb
Flip pref in test_basic_form_autocomplete.html to allow eval() temporarily.

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

--HG--
extra : moz-landing-system : lando
2019-05-07 08:23:11 +00:00
Jared Wein f7b75f9e80 Bug 1548463 - Tests for HTML-based login manager. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D29625

--HG--
extra : moz-landing-system : lando
2019-05-08 18:02:26 +00:00
arthur.iakab b804a7c1df Backed out changeset 2547daf183e5 (bug 1533166) by request of jaws 2019-05-06 23:51:36 +03:00
Yuan Cheng 5e6b519d3b Bug 1533166 - Move getSubmitMessage function into pwmgr_common.js to avoid duplication, r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D30086

--HG--
extra : moz-landing-system : lando
2019-05-06 17:37:21 +00:00
Joel Maher 6611f95ab0 Bug 1546459 - remove subsuite=clipboard from manifests. r=ahal
remove subsuite=clipboard from manifests

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

--HG--
extra : moz-landing-system : lando
2019-05-01 08:16:44 +00:00
Sam Foster 0203e814c4 Bug 1543454 - Backed out changeset 0929ce862892, its not the correct fix for known sites with this symptom at this time.
This patch was intended to fix behavior observed on us.hsbc.com, where the username was being replaced with a single 'x', but that is now being tracked in bug 1546749.

--HG--
extra : amend_source : a8eaeefe4a91c5fcd6210537edd4a8a499158c79
2019-04-24 11:07:58 -07:00
Sam Foster f942712ad4 Bug 1543454 - Set single-character usernames to null when prompting to save password. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D28003

--HG--
extra : moz-landing-system : lando
2019-04-22 21:59:57 +00:00
prathiksha 37cee0f171 Bug 1185000 - Show a dismissed password manager doorhanger when credit card numbers are detected. r=jaws
In certain straight-forward cases where we detect a credit card number being used with password fields we will show a dismissed password manager doorhanger. The user can still choose to save in case the valid credit card number is actually their username or password.

1) If the Luhn checksum matches on the username field (see CreditCard.jsm) AND the password is 3 numerical digits (don't handle 4 for now even though it's used by Visa since there are banks that use 4 digits passwords for online banking still).
2) If the Luhn checksum matches on the password value AND we detect that the type=password field is a credit card field via autocomplete=cc-number.
** We must include the @autocomplete check otherwise sites will abuse this loophole on legit login forms and set autocomplete=cc-number on their password fields to avoid saving.

For both of these cases we  should `dismissed:true` doorhanger, rather than not showing one at all, in case there are false-negatives.

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

--HG--
extra : source : e9be442c871e173a409f3b969f5bcea0e1ae4d71
extra : histedit_source : c942a81512be954abe595fa41ca44c26cd89b0e6
2019-04-19 13:52:58 -07:00
Matthew Noorenberghe bd58cd0090 Bug 1272849 - browser_notifications_2.js: Properly clear the password field in the doorhanger. r=intermittent
--HG--
extra : source : 33f6d42d7fa92c72b4adb78cf1e6f19932266bf6
extra : histedit_source : eb5754044fcfb79bab3baad0fef2500f500ede9d
2019-04-19 13:49:46 -07:00
Andreea Pavel 11730ca20d Bug 1272849 - disabled browser_notifications_2.js until a fix is available r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D28289

--HG--
extra : moz-landing-system : lando
2019-04-21 11:25:10 +00:00
Ciure Andrei 636eb74c5d Backed out changeset e9be442c871e (bug 1185000) for turning 1272849 into perma CLOSED TREE 2019-04-21 10:34:39 +03:00
Ciure Andrei 2342238f68 Backed out changeset 33f6d42d7fa9 (bug 1543449) for turning 1272849 into perma CLOSED TREE 2019-04-21 09:19:29 +03:00
prathiksha 8c683ae2fc Bug 1185000 - Show a dismissed password manager doorhanger when credit card numbers are detected. r=jaws
In certain straight-forward cases where we detect a credit card number being used with password fields we will show a dismissed password manager doorhanger. The user can still choose to save in case the valid credit card number is actually their username or password.

1) If the Luhn checksum matches on the username field (see CreditCard.jsm) AND the password is 3 numerical digits (don't handle 4 for now even though it's used by Visa since there are banks that use 4 digits passwords for online banking still).
2) If the Luhn checksum matches on the password value AND we detect that the type=password field is a credit card field via autocomplete=cc-number.
** We must include the @autocomplete check otherwise sites will abuse this loophole on legit login forms and set autocomplete=cc-number on their password fields to avoid saving.

For both of these cases we  should `dismissed:true` doorhanger, rather than not showing one at all, in case there are false-negatives.

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

--HG--
extra : transplant_source : %A9%94_%9A%03%00%A1u%F3%28%C6%00H%16z%8A%8F%D6%18O
2019-04-19 13:52:58 -07:00
Matthew Noorenberghe ecc6e3bbb7 Bug 1543449 - Follow-up to properly clear the password field in the doorhanger. r=intermittent
--HG--
extra : transplant_source : %3E%A1%19%AF%DE%DC%07%82%90S%E1%91N%80%D3s%0A%AA%CF%9C
2019-04-19 13:49:46 -07:00
prathiksha f56e3c8ac0 Bug 1539677 - Do not highlight the password field when pressing enter on the footer or the insecure field warning. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D27405

--HG--
rename : toolkit/components/passwordmgr/test/mochitest/test_autocomplete_highlight.html => toolkit/components/passwordmgr/test/mochitest/test_autocomplete_highlight_non_login.html
extra : rebase_source : ee0a97b70c46aa0e42811a4e3b0445814cb851aa
2019-04-19 11:54:32 -07:00
Andreea Pavel e5b695eefd Merge mozilla-inbound to mozilla-central. a=merge 2019-04-19 00:36:23 +03:00
Brian Grinstead 381332c51e Bug 1544051 - Part 3 - Scripted change to remove references to AddTask.js r=ahal
This was generated with the script at https://bug1544051.bmoattachments.org/attachment.cgi?id=9058672

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

--HG--
extra : moz-landing-system : lando
2019-04-18 16:51:01 +00:00
monikamaheshwari 04e4a2b5c5 Bug 1540828 - De-dupe and rename passwordmgr checkACForm function. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D27319

--HG--
extra : rebase_source : 7508b55da2a2627c7eed784f16bb02badfde1ce7
2019-04-17 16:02:43 -07:00
Ehsan Akhgari 7275a59f14 Bug 332175 - Disable the XMLDocument.load() API on trunk; r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D27729

--HG--
extra : moz-landing-system : lando
2019-04-17 19:37:10 +00:00
Brian Grinstead ede8c44ef2 Bug 1544322 - Part 2.1 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in everything except for dom/ r=bzbarsky
This excludes dom/, otherwise the file size is too large for phabricator to handle.

This is an autogenerated commit to handle scripts loading mochitest harness files, in
the simple case where the script src is on the same line as the tag.

This was generated with https://bug1544322.bmoattachments.org/attachment.cgi?id=9058170
using the `--part 2` argument.

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

--HG--
extra : moz-landing-system : lando
2019-04-16 03:50:44 +00:00
Sam Foster 1b48ee9bf6 Bug 1538460 - Only defer handling fields for login autofill when master password is not set. r=MattN
* Use Services.(ppmm|cpmm).sharedData to make isMasterPasswordSet value available to the content process
* We don't handle runtime enable/disable of MP

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

--HG--
extra : moz-landing-system : lando
2019-04-15 18:48:03 +00:00
Sam Foster 3a39f8e28a Bug 1543449 - use a minPasswordLength rather than skipEmptyFields property when collecting password fields. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D27202

--HG--
extra : moz-landing-system : lando
2019-04-15 16:34:15 +00:00
Coroiu Cristina 564703e75c Backed out changeset b36ee12b7088 (bug 1185000) for browser-chrome failures at toolkit/components/passwordmgr/test/browser/browser_notifications_2.js 2019-04-13 11:13:35 +03:00
Coroiu Cristina 1c8b53563a Backed out changeset a1917a9966fb (bug 1543449) for Android failures at tests/SimpleTest/SimpleTest.js 2019-04-13 08:49:46 +03:00
Sam Foster d50c9e3e80 Bug 1543449 - use a minPasswordLength rather than skipEmptyFields property when collecting password fields. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D27202

--HG--
extra : moz-landing-system : lando
2019-04-13 01:40:08 +00:00
prathiksha 497abd940b Bug 1185000 - Password manager should not offer to save credit card numbers. r=jaws
Password manager should not offer to save credit card numbers in certain straight-forward cases.

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

--HG--
extra : moz-landing-system : lando
2019-04-12 21:54:06 +00:00
Brindusan Cristian da68d6846c Backed out changeset cbae72da0dc4 (bug 1540828) for mochitest failures at test_autofill_sandboxed.html. CLOSED TREE 2019-04-12 17:43:09 +03:00
monikamaheshwari 5c8bd123af Bug 1540828 checkACForm function r=aryx
Differential Revision: https://phabricator.services.mozilla.com/D27060

--HG--
extra : moz-landing-system : lando
2019-04-12 13:48:58 +00:00
Andreea Pavel 3b158268df Backed out changeset 03ed53e600d4 (bug 1540828) for failing eslint on a CLOSED TREE 2019-04-11 15:16:03 +03:00
monikamaheshwari 79c0be7b2b Bug 1540828 De-dupe passwordmgr checkACForm function r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D26695

--HG--
extra : moz-landing-system : lando
2019-04-11 11:45:47 +00:00
Coroiu Cristina 619127a72d Backed out changeset 6f3b93e9f07c (bug 1538460) for browser-chrome failures at toolkit/components/passwordmgr/test/browser/browser_hidden_document_autofill.js on a CLOSED TREE 2019-04-11 02:55:32 +03:00
Sam Foster d51a299100 Bug 1538460 - Only defer handling fields for login autofill when master password is not set. r=MattN
* Use Services.(ppmm|cpmm).sharedData to make isMasterPasswordSet value available to the content process
* We don't handle runtime enable/disable of MP

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

--HG--
extra : moz-landing-system : lando
2019-04-10 18:27:08 +00:00
Matthew Noorenberghe 55f5d94414 Bug 1540154 - Allow autocomplete=(email|tel|tel-national) to be username fields. r=sfoster
Some sites use `email`, `tel` and `tel-national` values for @autocomplete even when they are used as the username and 'username' would be more appropriate.

We already allowed type=email / type=tel so allowing the autocomplete equivalents is reasonable.

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

--HG--
extra : moz-landing-system : lando
2019-04-03 15:46:57 +00:00
Jared Wein 0daee85ddd Bug 1325778 - Wait for storage updates before proceeding with test. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D25022

--HG--
extra : moz-landing-system : lando
2019-04-02 18:24:23 +00:00
Jared Wein 38225abec8 Bug 1325778 - Check that the contents of the autocomplete popup match the tests expectations. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D24958

--HG--
extra : moz-landing-system : lando
2019-04-02 18:24:25 +00:00
Jared Wein 3af274a2dd Bug 1147563 - Deprecate the 'testuser' login that is created during initialization of the password manager tests. r=MattN
This login should not show up in tests that don't expect it once we allow non-matching formSubmitURLs.

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

--HG--
extra : moz-landing-system : lando
2019-04-02 18:24:45 +00:00
Jared Wein 1676f31627 Bug 1147563 - Provide autocomplete experience when formSubmitURL does not match. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D23442

--HG--
rename : toolkit/components/passwordmgr/test/mochitest/test_autofill_https_upgrade.html => toolkit/components/passwordmgr/test/mochitest/test_autofill_different_formSubmitURL.html
extra : moz-landing-system : lando
2019-04-02 18:24:47 +00:00
Sam Foster 25639958e7 Bug 1427624 - Pass empty value rather than apparently-obfuscated username in Save Password doorhanger. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D24824

--HG--
extra : moz-landing-system : lando
2019-04-02 17:32:52 +00:00
Matthew Noorenberghe 6f42134497 Bug 1538952 - Don't automatically open the password autocomplete popup when we only have the footer to show. r=jaws,mak
Normally autocomplete results are cached based upon the search string but to get the desired behaviour we want two different sets of results for the same search string depending on how the autocomplete search was started:
a) Via automatically focusing a password field.
b) Every other method of starting an autocomplete search.

In order to not have cached results used, the result code for case (a) [an empty result] will be `RESULT_FAILURE` and I've updated the autocomplete code to not re-use an error result.

In the coming months we may be rewriting our content autocomplete code but that would be too risky to uplift to 67 so for now I'm tracking when satchel automatically opens the popup upon focus and then using that state in the autocomplete result creation code to know whether to include the footer.

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

--HG--
extra : moz-landing-system : lando
2019-03-30 04:20:20 +00:00
Oana Pop Rus 226e6c59d9 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-03-28 12:23:56 +02: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
Mark Banner 53b3788bba Bug 1415265 - Implement a central configuration for setting ESLint environments for test directories. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D23849

--HG--
extra : moz-landing-system : lando
2019-03-28 09:38:02 +00:00
Matthew Noorenberghe ad469ee09b Bug 1530603 - Wait for #filter in browser_autocomplete_footer.js. r=intermittent
--HG--
extra : rebase_source : 33abd24dbbb7525b1ff5900fc9de77909707fdbd
2019-03-27 23:03:57 -07:00
Noemi Erli 0f4ebab469 Backed out 2 changesets (bug 1147563) for perma-failures in test_insecure_form_field_autocomplete.html a=backout
Backed out changeset 53c71a1d9183 (bug 1147563)
Backed out changeset fef0ddcd6bba (bug 1147563)
2019-03-28 06:52:07 +02:00
Andreea Pavel f95a48fa8d Backed out changeset 3ca83116916b (bug 1325778) for failing /test_insecure_form_field_autocomplete.html on a CLOSED TREE 2019-03-27 08:47:24 +02:00
Jared Wein 9744745c60 Bug 1325778 - Check that the contents of the autocomplete popup match the tests expectations. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D24958

--HG--
extra : moz-landing-system : lando
2019-03-27 04:31:45 +00:00
Jared Wein 65ad16598e Bug 1147563 - Deprecate the 'testuser' login that is created during initialization of the password manager tests. r=MattN
This login should not show up in tests that don't expect it once we allow non-matching formSubmitURLs.

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

--HG--
extra : moz-landing-system : lando
2019-03-25 20:50:37 +00:00
Jared Wein 4df6534411 Bug 1147563 - Provide autocomplete experience when formSubmitURL does not match. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D23442

--HG--
rename : toolkit/components/passwordmgr/test/mochitest/test_autofill_https_upgrade.html => toolkit/components/passwordmgr/test/mochitest/test_autofill_different_formSubmitURL.html
extra : moz-landing-system : lando
2019-03-25 20:50:35 +00:00
Csoregi Natalia f6b80050f4 Backed out 2 changesets (bug 1147563) for permafails on test_basic_form_autocomplete.html.
Backed out changeset 5e0ac9f08356 (bug 1147563)
Backed out changeset b2f2db06d094 (bug 1147563)
2019-03-24 02:37:46 +02:00
Jared Wein b9ffb92b52 Bug 1147563 - Deprecate the 'testuser' login that is created during initialization of the password manager tests. r=MattN
This login should not show up in tests that don't expect it once we allow non-matching formSubmitURLs.

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

--HG--
extra : moz-landing-system : lando
2019-03-23 00:07:41 +00:00