Commit Graph

4553 Commits

Author SHA1 Message Date
Ksenia Berezina
6e09d8c9ee Bug 1904908 - Update an override for directv; r=twisniewski,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D215165
2024-06-27 23:43:26 +00:00
Thomas Wisniewski
e45a0278d2 Bug 1904556 - fix the CSS intervention to disable pull-to-refresh on the YouTube Shorts mobile page; r=webcompat-reviewers,denschub
Differential Revision: https://phabricator.services.mozilla.com/D214892
2024-06-25 23:31:26 +00:00
Stanca Serban
381a194fb0 Backed out 7 changesets (bug 1898745) for causing AccessibilityTest related junit failures. CLOSED TREE
Backed out changeset 8daa01aff9d2 (bug 1898745)
Backed out changeset aa4188b16097 (bug 1898745)
Backed out changeset db306113f8e8 (bug 1898745)
Backed out changeset d0d65cb44bc7 (bug 1898745)
Backed out changeset 576634ec09aa (bug 1898745)
Backed out changeset 5481131bb31a (bug 1898745)
Backed out changeset 7b7441408b33 (bug 1898745)
2024-06-25 14:45:30 +03:00
Dimi
a6eda583ad Bug 1898745 - P6. Update formautofill iOS library to accommodate the new architecture r=credential-management-reviewers,issammani
Differential Revision: https://phabricator.services.mozilla.com/D212239
2024-06-25 09:53:53 +00:00
Dimi
e20f615d04 Bug 1898745 - P5. Update Testcases r=credential-management-reviewers,NeilDeakin
This patch makes the following changes:

1. Converts the xpcshell tests test_clearPopulatedForm.js and test_previewFormFields.js to browser tests.
   This change is necessary because the logic is moved from the child to the parent, requiring integration
   tests instead.
2. Replaces the custom popup listener in FormAutofillChild with `BrowserTestUtils.waitForPopupEvent`
3. Updates add_heuristic_tests to align with the new architecture.
4. Updates unit tests that use the 'active' section because there is no "active" section anymore.

Differential Revision: https://phabricator.services.mozilla.com/D211554
2024-06-25 09:53:53 +00:00
Dimi
a917ee27eb Bug 1898745 - P3. Record form interactio telemetry in the parent process r=credential-management-reviewers,NeilDeakin
We have moved most of the logic from the child to the parent. This patch updates
the locations where telemetry is now recorded in the parent. Additionally,
it updates the API of AutofillTelemetry to comply with the new architecture.

Differential Revision: https://phabricator.services.mozilla.com/D211552
2024-06-25 09:53:52 +00:00
Dennis Schubert
cfa49d728d Bug 1889326 - Re-ship Outlook 365 mailto: handler prompt intervention. r=twisniewski,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D214562
2024-06-21 16:11:44 +00:00
Neil Deakin
a5dcce6636 Bug 1849131, use aria-hidden attribute as an indicator of visibility when comparing select options, r=credential-management-reviewers,dimi
For now, this is only checked when looking up select option elements to reduce compatibility issues

Differential Revision: https://phabricator.services.mozilla.com/D214262
2024-06-21 14:35:40 +00:00
Thomas Wisniewski
6bcd887784 Bug 1882040 - Add a webcompat intervention to disable pull-to-refresh on the YouTube Shorts mobile page; r=ksenia,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D214434
2024-06-20 19:46:15 +00:00
Neil Deakin
a1b4051165 Bug 1901247, get the required fields from the address meta data so that it is region specific,r=credential-management-reviewers,dimi
Remove the automatic assignment of the preference extensions.formautofill.addresses.capture.requiredFields in tests and force each test to manually set it since using the preference is no longer expected.

Differential Revision: https://phabricator.services.mozilla.com/D213779
2024-06-18 14:09:44 +00:00
Johannes Jörg Schmidt
69add08bae Bug 1835771 - improve heuristics browser test helper r=credential-management-reviewers,dimi
to include field names for failed expectations

Differential Revision: https://phabricator.services.mozilla.com/D213961
2024-06-18 13:44:51 +00:00
Emilio Cobos Álvarez
76dfae476f Bug 1902896 - Use system-ui font-family when appropriate. r=desktop-theme-reviewers,omc-reviewers,home-newtab-reviewers,dao,aminomancer,thecount
This is shorter, and has the advantage that it behaves properly on Linux (not
just ubuntu). Also, it is more future-proof.

Differential Revision: https://phabricator.services.mozilla.com/D213880
2024-06-17 14:53:04 +00:00
Barret Rennie
871e74ca58 Bug 1829412 - Simplify NimbusTestUtils.enrollmentHelper r=chumphreys,settings-reviewers,pip-reviewers,credential-management-reviewers,search-reviewers,anti-tracking-reviewers,omc-reviewers,home-newtab-reviewers,thecount,issammani,aminomancer,mconley
The enrollmentHelper was much more complicated than it needed to be. The
internal asynchrony that required awaiting an additional promise was fixed in
bug 1773583.

The returned cleanup function is no longer async, so unnecessary awaits have
been removed. This also applies to enrollWithFeatureConfig, as it is a wrapper
around enrollmentHelper.

Differential Revision: https://phabricator.services.mozilla.com/D212318
2024-06-06 14:42:00 +00:00
Ksenia Berezina
8cbb57480d Bug 1876368 - Ship v128.0.0 of the WebCompat System Addon; r=twisniewski,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D212759
2024-06-06 12:51:48 +00:00
Sidharth Sachdev
36bf40c3a9 Bug 1900483 - Update central with the latest beta/release 127 changes for OSAuth. r=issammani,Gijs,firefox-desktop-core-reviewers
***
Bug 1898323 - follow-up: fix tests now that beta/release default to not enabling CC/pwd autofill os reauth
***
Bug 1898323 - fix about:logins and formautofill tests better given the disabling of OS reauth on beta/release
***
Bug 1898323 - Fix OsAuth migration for beta and have it disabled by default on Beta and Release. r=ssachdev!,issammani!
***
Bug 1899368 - Disable OS Auth for new users in Beta and Release. r=issammani!,gijs!
***
Aligned anti_clickjacking with beta

Differential Revision: https://phabricator.services.mozilla.com/D212577
2024-06-05 08:14:28 +00:00
Ksenia Berezina
1c635abfd5 Bug 1900435 - Add extra_labels back to the mobile reporter; r=twisniewski,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D212510
2024-06-04 15:54:53 +00:00
jneuberger
bbaf7e7446 Bug 1899326 - P2. Test that the FormHandler only listens for events related to form removals when another actor is interested in form removals r=dimi
Depends on D211885

Differential Revision: https://phabricator.services.mozilla.com/D212481
2024-06-04 10:51:44 +00:00
Neil Deakin
a288a6dcb2 Bug 1899451, wait for preview to apply before starting the test, r=credential-management-reviewers,dimi
Differential Revision: https://phabricator.services.mozilla.com/D212210
2024-05-31 12:44:34 +00:00
Neil Deakin
ad1f6ad00b Bug 1849110, when looking for matching options in select dropdowns, and multiple fields exist with the same field type, prefer the field that is visible, r=credential-management-reviewers,dimi
Differential Revision: https://phabricator.services.mozilla.com/D211993
2024-05-31 12:43:59 +00:00
Neil Deakin
9acbb7c07b Bug 1849110, use a substring match when identifying option text for address autofill, r=credential-management-reviewers,dimi
This makes it possible to handle when a dropdown has a prefix such as 'State:' before state names, for example.

Differential Revision: https://phabricator.services.mozilla.com/D211992
2024-05-31 12:43:59 +00:00
Neil Deakin
4e69aaa29d Bug 1849122, tests for when a form field is modified using script or by the user when it is autofilled, and additional tests for when the form fields are hidden and modified, r=credential-management-reviewers,dimi
Differential Revision: https://phabricator.services.mozilla.com/D211030
2024-05-28 23:40:00 +00:00
Neil Deakin
30636fbd72 Bug 1849122, set the autofill state directly on the input and select elements rather than using windowUtils and a separate hash that can be out of sync with each other, r=credential-management-reviewers,dimi
The existing autofill state is set on the form element using nsIDOMWindowUtils::AddManuallyManagedState, but a separate map #filledStateByElement within FormAutofillHandler.sys.mjs is used to keep track of which elements are filled in. However, this relies on input events that don't fire when form elements are hidden. In addition, when a page modifies the form field value directly, the preview state can be modified but the #filledStateByElement map is not.

Instead, remove the extra map, and just use the form field's autofill state directly. The form field will take responsibility for removing the preview state when its value changes.

This behaviour applies to single field input elements and select elements.

Differential Revision: https://phabricator.services.mozilla.com/D211000
2024-05-28 23:40:00 +00:00
Issam Mani
2aa99f9063 Bug 1898237 - Disable browser_creditCard_doorhanger_display.js for linux only. r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D211209
2024-05-22 14:50:32 +00:00
Dimi
bf0ab982e7 Bug 1894889 - Trigger autocomplete action from the parent process r=credential-management-reviewers,geckoview-reviewers,NeilDeakin,owlish
This patch adds the following messages to the autocomplete item:
1. For address and credit card autofill, use the `FormAutofill:FillForm` message.
2. For login autofill, use the `PasswordManager:OnFieldAutoComplete` message.
3. For generated password autofill, use the `PasswordManager:FillGeneratedPassword` message.
After adding the above three messages, every autocomplete item that performs an action
upon being clicked has a corresponding `fillMessageName`.

Here is how the new architecture works:

1. Whenever a user selects an autocomplete entry, the `AutoCompleteChild` sends
   the `AutoComplete:SelectEntry` message to the parent process.
2. `AutoCompleteParent` extracts `fillMessageName` from the message and uses
   the prefix of the message name to determine which actor should process this message.
3. The `OnFieldAutoCompleteEntrySelected` method of the actor is called. The actor in
   the parent process determines what action to take.

Differential Revision: https://phabricator.services.mozilla.com/D209353
2024-05-21 19:06:35 +00:00
Paul Zuehlcke
7872d71e90 Bug 1896099 - Update Spotify embed shim for compatibility with updated Storage Access API behaviour. r=anti-tracking-reviewers,webcompat-reviewers,twisniewski,bvandersloot
The Storage Access API now requires 3rd-party iframes to request storage access after load.
Storage access isn't granted automatically anymore, even if a previous storage access request
has been granted.

Differential Revision: https://phabricator.services.mozilla.com/D210713
2024-05-20 15:19:27 +00:00
Dimi
84e489ac73 Bug 1897099 - Remove cc_form event telemetry r=credential-management-reviewers,jneuberger
This telemetry is replaced by `cc_form_v2` event telemetry

Differential Revision: https://phabricator.services.mozilla.com/D210621
2024-05-17 18:25:25 +00:00
Johannes Jörg Schmidt
2a3f8fc9b3 Bug 1849198 - test for misplaced autocomplete menu r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D210188
2024-05-15 11:22:07 +00:00
Neil Deakin
825e300728 Bug 1886064, make usage of label and comment fields in autofill items more consistent, r=credential-management-reviewers,geckoview-reviewers,reusable-components-reviewers,owlish,sgalich,tgiles
Differential Revision: https://phabricator.services.mozilla.com/D207439
2024-05-14 15:37:32 +00:00
Joe Webster
aab53e6e23 Bug 1818054 - Display PiP captions in Vimeo player r=pip-reviewers,niklas
Differential Revision: https://phabricator.services.mozilla.com/D209045
2024-05-14 14:26:06 +00:00
Butkovits Atila
220be9eba5 Backed out 2 changesets (bug 1849198) for causing leakcheck failures. CLOSED TREE
Backed out changeset 13d8d0d1fd01 (bug 1849198)
Backed out changeset f680a50705a9 (bug 1849198)
2024-05-14 19:52:42 +03:00
Johannes Jörg Schmidt
158f5a554e Bug 1849198 - test for misplaced autocomplete menu r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D210188
2024-05-14 12:04:51 +00:00
jneuberger
c7f6de4006 Bug 1884632 - P3. Update tests to align with the form submission on subtree navigation heuristic r=credential-management-reviewers,dimi
Differential Revision: https://phabricator.services.mozilla.com/D208134
2024-05-13 21:31:38 +00:00
jneuberger
389212fd4c Bug 1884632 - P2. Rename browser_active_window_navigation.js r=credential-management-reviewers,dimi
We extract the renaming of this test file to a separate patch, because P3 modifies and adds test cases and we want to keep the diff (to simplify review of P3).

Differential Revision: https://phabricator.services.mozilla.com/D208133
2024-05-13 21:31:38 +00:00
jneuberger
5840d735c7 Bug 1884632 - P1. Handle heuristic for page navigations centrally in FormHandlerChild r=dimi,credential-management-reviewers,sgalich,geckoview-reviewers,owlish
FormHandler is a central place for heuristics that other components like the LoginManager and FormAutofill
rely on. This patch moves the heuristics that detect page navigations to the FormHandler.
It also applies two changes:
- Heuristic to capture on page navigation no longer relies on the process' active element in FormAutofill
- Capturing in cross-origin frames is introduced

Introduced page navigation heuristic:
When LoginManager/FormAutofill detect a form that they expect a submission for, a FormHandler actor pair is
created in the current window context, which registers the web progress listener that listens for "page navigations",
e.g. location changes of the observed window/document or history session changes.
- If the form is in a same-orign frame, we register the listener only at the top level.
- If the form is in a cross-origin frame, we additionally set up a listener with the root
  of the cross-origin process, so that we are aware of page navigations in both processes.
When a page navigation is observed, all existing (same-origin and cross-origin) FormHandler parents in the
browsing context subtree notify their children.
(Note: We don't create any new actors in this step, because they won't have any form to submit anyway).
When the corresponding FormHandlerChild(ren) are notified of the page navigation, they fire the "form-submission-detected" event.

On "form-submission-detected" event:
- The LoginManagerChild instance(s) kept track of all modified login forms and infers capturing them.
- The FormAutofillChild instance(s) kept track of all identified formautofill forms and infers capturing them.

Differential Revision: https://phabricator.services.mozilla.com/D204927
2024-05-13 21:31:38 +00:00
Issam Mani
db7cb57152 Bug 1893360 - Convert browser/extensions/formautofill/content/*.js to ESMs. r=credential-management-reviewers,mtigley
Differential Revision: https://phabricator.services.mozilla.com/D209980
2024-05-09 22:45:00 +00:00
acseh
07ee51eeee Backed out 4 changesets (bug 1884632, bug 1895467) for causing gv-junit-fis failures CLOSED TREE
Backed out changeset f5a7db15ee4f (bug 1884632)
Backed out changeset 082a2bed994a (bug 1884632)
Backed out changeset 8b53ac9b4590 (bug 1884632)
Backed out changeset 26268f4f3f9d (bug 1895467)
2024-05-08 12:40:05 +03:00
jneuberger
39ca16f8cd Bug 1884632 - P3. Update tests to align with the form submission on subtree navigation heuristic r=credential-management-reviewers,dimi
Differential Revision: https://phabricator.services.mozilla.com/D208134
2024-05-08 07:24:27 +00:00
jneuberger
fb36105a86 Bug 1884632 - P2. Rename browser_active_window_navigation.js r=credential-management-reviewers,dimi
We extract the renaming of this test file to a separate patch, because P3 modifies and adds test cases and we want to keep the diff (to simplify review of P3).

Differential Revision: https://phabricator.services.mozilla.com/D208133
2024-05-08 07:24:27 +00:00
jneuberger
addbcfaff8 Bug 1884632 - P1. Handle heuristic for page navigations centrally in FormHandlerChild r=dimi,credential-management-reviewers,sgalich
FormHandler is a central place for heuristics that other components like the LoginManager and FormAutofill
rely on. This patch moves the heuristics that detect page navigations to the FormHandler.
It also applies two changes:
- Heuristic to capture on page navigation no longer relies on the process' active element in FormAutofill
- Capturing in cross-origin frames is introduced

Introduced page navigation heuristic:
When LoginManager/FormAutofill detect a form that they expect a submission for, a FormHandler actor pair is
created in the current window context, which registers the web progress listener that listens for "page navigations",
e.g. location changes of the observed window/document or history session changes.
- If the form is in a same-orign frame, we register the listener only at the top level.
- If the form is in a cross-origin frame, we additionally set up a listener with the root
  of the cross-origin process, so that we are aware of page navigations in both processes.
When a page navigation is observed, all existing (same-origin and cross-origin) FormHandler parents in the
browsing context subtree notify their children.
(Note: We don't create any new actors in this step, because they won't have any form to submit anyway).
When the corresponding FormHandlerChild(ren) are notified of the page navigation, they fire the "form-submission-detected" event.

On "form-submission-detected" event:
- The LoginManagerChild instance(s) kept track of all modified login forms and infers capturing them.
- The FormAutofillChild instance(s) kept track of all identified formautofill forms and infers capturing them.

Differential Revision: https://phabricator.services.mozilla.com/D204927
2024-05-08 07:24:27 +00:00
Sidharth Sachdev
09dc184253 Bug 1877717 - Fix failing tests. r=issammani
Differential Revision: https://phabricator.services.mozilla.com/D209560
2024-05-07 04:21:33 +00:00
Sidharth Sachdev
db4b5c287a Bug 1877717 - Update tests for cc formautofill os auth. r=joschmidt,credential-management-reviewers,issammani
Depends on D199544

Differential Revision: https://phabricator.services.mozilla.com/D200452
2024-05-07 04:21:32 +00:00
Sidharth Sachdev
47ef869c42 Bug 1802809 - Maintaining OS Authentication functionality for credit cards. r=sgalich,dimi,fluent-reviewers,flod
Depends on D202473

Differential Revision: https://phabricator.services.mozilla.com/D199544
2024-05-07 04:21:32 +00:00
Cristina Horotan
65bc72d8e5 Backed out 7 changesets (bug 1802809, bug 1890883, bug 1877720, bug 1403081, bug 1877717) for causing bc failures at browser_primaryPassword.js CLOSED TREE
Backed out changeset 7bdafce80724 (bug 1877717)
Backed out changeset 4969f17f935c (bug 1877717)
Backed out changeset d700fbbd7541 (bug 1877717)
Backed out changeset 98e31d4cd373 (bug 1802809)
Backed out changeset c1e8c6c34fcc (bug 1877720)
Backed out changeset 0d8d5e77a93c (bug 1403081)
Backed out changeset 594b7bbecd22 (bug 1890883)
2024-05-06 20:59:20 +03:00
Sidharth Sachdev
4d9e9dd18c Bug 1877717 - ci debug. r=issammani
Differential Revision: https://phabricator.services.mozilla.com/D209560
2024-05-06 15:58:25 +00:00
Sidharth Sachdev
8e5f626caf Bug 1877717 - Update tests for cc formautofill os auth. r=joschmidt,credential-management-reviewers,issammani
Depends on D199544

Differential Revision: https://phabricator.services.mozilla.com/D200452
2024-05-06 15:58:24 +00:00
Sidharth Sachdev
5081b2c8e7 Bug 1802809 - Maintaining OS Authentication functionality for credit cards. r=sgalich,dimi,fluent-reviewers,flod
Depends on D202473

Differential Revision: https://phabricator.services.mozilla.com/D199544
2024-05-06 15:58:24 +00:00
Stanca Serban
fdfaad305b Backed out 7 changesets (bug 1802809, bug 1877717, bug 1403081, bug 1890883, bug 1877720) for causing localization checks failures in aboutLogins.ftl. CLOSED TREE
Backed out changeset 62eeb65b23bd (bug 1877717)
Backed out changeset 4fde845a1182 (bug 1877717)
Backed out changeset d3124d383693 (bug 1877717)
Backed out changeset 344ac200b360 (bug 1802809)
Backed out changeset 754a1bf3b55e (bug 1877720)
Backed out changeset 961a1121017e (bug 1403081)
Backed out changeset 19b2252a4ccf (bug 1890883)
2024-05-06 18:27:03 +03:00
Sidharth Sachdev
5deac77ba6 Bug 1877717 - ci debug. r=issammani
Depends on D209394

Differential Revision: https://phabricator.services.mozilla.com/D209560
2024-05-06 14:54:20 +00:00
Sidharth Sachdev
754633f881 Bug 1877717 - Update tests for cc formautofill os auth. r=joschmidt,credential-management-reviewers,issammani
Depends on D199544

Differential Revision: https://phabricator.services.mozilla.com/D200452
2024-05-06 14:54:18 +00:00
Sidharth Sachdev
10afea7d09 Bug 1802809 - Maintaining OS Authentication functionality for credit cards. r=sgalich,dimi,fluent-reviewers,flod
Depends on D202473

Differential Revision: https://phabricator.services.mozilla.com/D199544
2024-05-06 14:54:17 +00:00