Commit graph

4580 commits

Author SHA1 Message Date
Thomas Wisniewski
b823dd5a90 Bug 1924167 - shim updates; a=dmeehan
Differential Revision: https://phabricator.services.mozilla.com/D228367
2024-11-07 22:37:41 +00:00
Thomas Wisniewski
88ec901b2c Bug 1925270 - uplift webcompat interventions for v133.2.0 to ESR 128; r=denschub a=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D226038
2024-10-18 16:31:00 +00:00
Dennis Schubert
2010a777ba Bug 1815733 - ESR 128 - Override navigator.clipboard.read() with a no-op for Outlook. a=dmeehan
Differential Revision: https://phabricator.services.mozilla.com/D217977
2024-07-31 22:30:54 +00:00
Thomas Wisniewski
fe440be33e Bug 1909241 - shim updates; a=dmeehan
Differential Revision: https://phabricator.services.mozilla.com/D217757
2024-07-27 20:32:46 +00:00
Neil Deakin
32ec780a99 Bug 1904593, don't clear the autofill state when modified by script, r=dom-core,credential-management-reviewers,dimi,sefeng, a=dmeehan
It turns out that many sites are modifying the field state immediately after a value has been autofilled, typically to format the value such as add spaces between parts of a credit card number

Differential Revision: https://phabricator.services.mozilla.com/D215113
2024-07-22 14:33:14 +00:00
Thomas Wisniewski
32b4b9d93f Bug 1904908 - Update an override for directv; r=ksenia a=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D215170
2024-06-30 17:15:14 +00:00
Thomas Wisniewski
319deb32f8 Bug 1904556 - fix the CSS intervention to disable pull-to-refresh on the YouTube Shorts mobile page; r=denschub a=dmeehan
Differential Revision: https://phabricator.services.mozilla.com/D214894
2024-06-26 18:56:01 +00:00
Thomas Wisniewski
6577e20e90 Bug 1882040 - Add a webcompat intervention to disable pull-to-refresh on the YouTube Shorts mobile page r=ksenia a=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D214472
2024-06-20 23:59:11 +00:00
Barret Rennie
9ef1c3a9cb 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
739bbbf89f 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
2f9b97b28f 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
883f596167 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
89c27f522a 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
c079d0887f 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
78add5e182 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
1d67429d6a 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
f122ba4b1d 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
a7d450b343 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
4a93fb1a5f 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
0fa0555629 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
2c107ee29e 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
8df4378f60 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
eac10784bc 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
8d1980e1cc 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
1ea6f31ea0 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
ed000ab2bc 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
8678cd4c4f 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
e2b92de4e3 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
cc19a2666b 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
04bddea373 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
1469fa6282 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
e39c868227 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
a5d535e7f3 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
e41f625d02 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
618cdfa04e 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
46c58895d1 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
6529368b3e 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
073033f94a 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
964835af40 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
2fb03ebf2a Bug 1877717 - ci debug. r=issammani
Differential Revision: https://phabricator.services.mozilla.com/D209560
2024-05-06 15:58:25 +00:00
Sidharth Sachdev
bfdb01dd4d 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
e99eb93c6a 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
75c7d87370 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
5763261d80 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
5cafb028ae 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
41bd44beb0 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
Cosmin Sabou
e69f323af8 Backed out 6 changesets (bug 1877717, bug 1802809, bug 1890883, bug 1877720, bug 1403081) for causing failures on browser_creditCard_doorhanger_action.
Backed out changeset 8ee572259ac8 (bug 1877717)
Backed out changeset dad0f115e953 (bug 1877717)
Backed out changeset d792b9335db3 (bug 1802809)
Backed out changeset 7610115f0011 (bug 1877720)
Backed out changeset 9c53bcd6a763 (bug 1403081)
Backed out changeset aa4981999347 (bug 1890883)
2024-05-05 20:37:16 +03:00
Sidharth Sachdev
7b1391c317 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-05 15:59:37 +00:00
Sidharth Sachdev
a3a471d3d6 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-05 15:59:36 +00:00
Stanca Serban
bba4ccb254 Backed out 6 changesets (bug 1802809, bug 1890883, bug 1877717, bug 1403081, bug 1877720) multiple mochitests failures. CLOSED TREE
Backed out changeset 8b238dd69206 (bug 1877717)
Backed out changeset c6e16bf303ed (bug 1877717)
Backed out changeset e4d8856edf45 (bug 1802809)
Backed out changeset 9a6a418a1e45 (bug 1877720)
Backed out changeset b587dcaf8f9f (bug 1403081)
Backed out changeset 17febe56cad6 (bug 1890883)
2024-05-03 22:01:28 +03:00