Commit Graph

3711 Commits

Author SHA1 Message Date
Tim Giles
5a20aee86a Bug 1688607 - Fix autofill and capture behavior on Lufthansa due to multiple cc-number fields. r=sgalich,dimi
Differential Revision: https://phabricator.services.mozilla.com/D130125
2021-11-29 15:23:49 +00:00
Emilio Cobos Alvarez
d388fbd1f1 Bug 1742696 - Opt-in a bunch of about:pages to dark system colors / form controls. r=Gijs,preferences-reviewers,webcompat-reviewers,twisniewski
Privileged pages do this automatically via:

  https://searchfox.org/mozilla-central/rev/aa8c75b83f636948f708986173965c84cae8c25f/widget/nsXPLookAndFeel.cpp#1179-1183

So this makes everything more consistent. Known exceptions:

 * Pocket panels (as those don't seem to support dark mode)
 * about:reader (because it has its own dark mode handling)

Differential Revision: https://phabricator.services.mozilla.com/D132019
2021-11-25 21:24:43 +00:00
Paul Zuehlcke
136bbaec44 Bug 1742553 - Shim requestStorageAccess for Humblebundle FB/Google oauth logins. r=twisniewski,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D131900
2021-11-23 17:15:41 +00:00
Tim Giles
165b21ddc6 Bug 1688607 - Fix amex cards not being selected correctly if option value is 'American Express'. r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D131861
2021-11-23 16:37:16 +00:00
Tim Giles
76ea8264e6 Bug 1741719 - Make cc-name DE heuristic fix for Amazon sites more generic. r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D131438
2021-11-23 14:40:50 +00:00
Paul Zuehlcke
26b7c2142b Bug 1638383 - Add a shim for the dFPI Microsoft login breakage. r=anti-tracking-reviewers,twisniewski,webcompat-reviewers,timhuang,denschub,webidl,smaug
Differential Revision: https://phabricator.services.mozilla.com/D131643
2021-11-23 12:42:25 +00:00
Thomas Wisniewski
8d5c9f23f0 Bug 1742291 - correctly compare the names of shims when sorting them for display in about:compat; r=denschub,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D131738
2021-11-22 11:54:21 +00:00
Thomas Wisniewski
0486d7cfbf Bug 1723776 - Add SmartBlock section to about:compat; r=denschub,pbz,webcompat-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D130524
2021-11-19 20:20:24 +00:00
Tim Giles
c75e26c12b Bug 1740696 - Add 'kartenmarke' to cc-type heuristic for DE locales. r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D131247
2021-11-18 16:03:31 +00:00
Sebastian Hengst
a84e84b2e4 Bug 1741848 - update in-tree Bugzilla component for Picture-in-Picture files. r=mconley DONTBUILD
The component got added in bug 1741657.

Differential Revision: https://phabricator.services.mozilla.com/D131488
2021-11-18 14:28:51 +00:00
Tim Giles
3bd9b1ec1a Bug 1740446 - Fix credit card expiry placeholder logic when field is using 'j' to represent year. r=sgalich
Differential Revision: https://phabricator.services.mozilla.com/D131167
2021-11-17 14:53:14 +00:00
Tim Giles
86df71ccc2 Bug 1740442 - Fix missing cc-name for DE heuristics. r=sgalich
Differential Revision: https://phabricator.services.mozilla.com/D131154
2021-11-15 19:23:31 +00:00
Thomas Wisniewski
b3a7e76fe5 Bug 1740354 - Support named _link parameters in the legacy Google Analytics SmartBlock shim; r=denschub,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D130993
2021-11-11 17:53:23 +00:00
Thomas Wisniewski
57d4a05c22 Bug 1706050 - disregard display parameter in SmartBlock Facebook shim to actually attempt oauth FB login regardless of its value; r=ksenia,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D130922
2021-11-10 22:02:30 +00:00
Chris Peterson
2736eed5aa Bug 1739563 - Replace screenshots' makeUuid.js with crypto.randomUUID(). r=sfoster
`crypto.randomUUID()` is a new Web API implemented in bug 1723674. It returns a random UUID string (without curly braces), so we no longer need to roll our own UUIDs in makeUuid.js.

Differential Revision: https://phabricator.services.mozilla.com/D130442
2021-11-09 22:17:33 +00:00
Thomas Wisniewski
38ffeded75 Bug 1735674 - Improve the SmartBlock shim for Google Publisher Tags so it handles targeting-related functions more as sites expect; r=ksenia,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D130196
2021-11-03 12:48:23 +00:00
raquelvargas
782eaca77b Bug 1738229 - Stop using the second argument to ChromeUtils.import in various files in browser. r=Standard8,webcompat-reviewers,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D129842
2021-11-02 17:21:07 +00:00
Niklas Baumgardner
2973b28776 Bug 1649915 - Save screenshots as PNG instead of JPG. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D130096
2021-11-02 14:50:48 +00:00
Dennis Schubert
cbf2e20f63 Bug 1720142 - Ship v28.0.0 of the WebCompat System Addon. r=ksenia,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D129857
2021-10-28 19:16:25 +00:00
Thomas Wisniewski
345e0fa009 Bug 1737899 - Ensure the Amazon TAM SmartBlock shim is only active in ETP strict mode; r=denschub,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D129578
2021-10-27 11:33:09 +00:00
Tim Giles
d717e970d4 Bug 1688576: Add workaround for cc-expiry being stored as 'YYYY-MM' when websites expect 'MM/YYYY'. r=dimi
Changes the presentation format of expiry date to MM/YYYY so that Zalando's payment site doesn't break when we fill expiry dates.

Reorders the credit card transformers so that the expiry date transformer runs before the match select transformer.
This is to ensure the presentation form of expiry date (MM/YYYY) is used to create cached values for possible select element matches, as opposed to the underlying storage format of expiry date (YYYY-MM).

Because the 'profile' used in getAdaptedProfiles becomes a presentation ready form of the stored data, I've written a note explaining why the default test credit card record now has a expiry date format of 'MM/YYYY' as opposed to the old format.

Differential Revision: https://phabricator.services.mozilla.com/D125884
2021-10-26 14:22:21 +00:00
Hannah Peuckmann
4cf44c29d9 Bug 1567443 - Added flag for indicating secure Chrome UI in nsIAboutModule. r=pbz,webcompat-reviewers,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D128188
2021-10-26 13:32:31 +00:00
William Durand
8dc50cac14 Bug 1736684 - Part 2: Add test coverage for the search-detection built-in add-on (server side). r=rpl
- `test_redirect_{final,two_hops,three_hops}` correspond to SSR #1
- `test_no_event_when_search_engine_not_used` corresponds to SSR #2
- `test_redirect_chain_does_not_start_on_first_request` corresponds to SSR #3
- `test_two_extensions_reported` corresponds to SSR #4

Differential Revision: https://phabricator.services.mozilla.com/D129176
2021-10-25 12:50:38 +00:00
Cristian Tuns
fbc196ed69 Backed out changeset 177e6f28d348 (bug 1567443) for causing mochitest failures on browser_check_identity_state.js. CLOSED TREE 2021-10-25 06:45:43 -04:00
Hannah Peuckmann
5808169fa1 Bug 1567443 - Using nsIAboutModule flag instead of regex to indicate secure about page. r=pbz,webcompat-reviewers,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D128188
2021-10-25 09:34:06 +00:00
William Durand
10e9ff072b Bug 1736684 - Part 1: Add test coverage for the search-detection built-in add-on (client side). r=rpl
This patch adds a new test file containing a test case to cover the two main client side scenarios.

Differential Revision: https://phabricator.services.mozilla.com/D129050
2021-10-23 15:10:40 +00:00
Thomas Wisniewski
170502ffe6 Bug 1660446 - Shim requestStorageAccess for Hamropatro FB/Google oauth logins; r=pbz,ksenia,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D129185
2021-10-22 17:13:02 +00:00
William Durand
35e814819e Bug 1735721 - Move addons-search-detection in tree. r=rpl,florian
This patch moves the addons-search-detection system add-on in tree and
adjusts the build configuration to make it a built-in add-on (which
requires changes in the `BrowserGlue.jsm` file).

Summary of the changes made to the different files:

- `api.js`: added license header, reformatted with Prettier, then fixed
  ESLint errors: use of `Services.eTLD` instead of
  `XPCOMUtils.defineLazyServiceGetter(...)` and defined
  `"searchInitialized"` on `this` instead of `global` which was unknown
- `background.js`: added license header, reformatted with Prettier,
  removed debug logs because they were off by default anyway, fixed
  ESLint error: id => addonId because addonId was already defined in a
  parent scope
- `manifest.json`: version number changed + `hidden: true`
- `schema.json`: no change await addon.enable();

Depends on D129019

Differential Revision: https://phabricator.services.mozilla.com/D128908
2021-10-21 11:51:06 +00:00
Iulian Moraru
00e4364a54 Backed out 2 changesets (bug 1735721, bug 1736825) for causing mochitests browser chrome failures on browser_startup_syncIPC.js, CLOSED TREE
Backed out changeset 80d2e27ea03f (bug 1735721)
Backed out changeset b265817ccc60 (bug 1736825)
2021-10-20 21:19:14 +03:00
William Durand
3e76e0d558 Bug 1735721 - Move addons-search-detection in tree. r=rpl
This patch moves the addons-search-detection system add-on in tree and
adjusts the build configuration to make it a built-in add-on (which
requires changes in the `BrowserGlue.jsm` file).

Summary of the changes made to the different files:

- `api.js`: added license header, reformatted with Prettier, then fixed
  ESLint errors: use of `Services.eTLD` instead of
  `XPCOMUtils.defineLazyServiceGetter(...)` and defined
  `"searchInitialized"` on `this` instead of `global` which was unknown
- `background.js`: added license header, reformatted with Prettier,
  removed debug logs because they were off by default anyway, fixed
  ESLint error: id => addonId because addonId was already defined in a
  parent scope
- `manifest.json`: version number changed + `hidden: true`
- `schema.json`: no change await addon.enable();

Differential Revision: https://phabricator.services.mozilla.com/D128908
2021-10-20 14:07:25 +00:00
Butkovits Atila
1531de6d37 Backed out changeset b187514d31fc (bug 1735721) for causing failures at browser_all_files_referenced.js. CLOSED TREE 2021-10-20 00:26:15 +03:00
William Durand
286389b816 Bug 1735721 - Move addons-search-detection in tree. r=mixedpuppy
This patch moves the addons-search-detection system add-on in tree and
adjusts the build configuration to make it a built-in add-on (which
requires changes in the `BrowserGlue.jsm` file).

Summary of the changes made to the different files:

- `api.js`: added license header, reformatted with Prettier, then fixed
  ESLint errors: use of `Services.eTLD` instead of
  `XPCOMUtils.defineLazyServiceGetter(...)` and defined
  `"searchInitialized"` on `this` instead of `global` which was unknown
- `background.js`: added license header, reformatted with Prettier,
  removed debug logs because they were off by default anyway, fixed
  ESLint error: id => addonId because addonId was already defined in a
  parent scope
- `manifest.json`: version number changed + `hidden: true`
- `schema.json`: no change await addon.enable();

Differential Revision: https://phabricator.services.mozilla.com/D128908
2021-10-19 20:03:14 +00:00
Thomas Wisniewski
9832917410 Bug 1736380 - Disable the Kinja shim in bug 1656171 on Android; r=denschub,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D128755
2021-10-18 17:19:18 +00:00
Paul Zuehlcke
6e8f6f0baa Bug 1656171 - Shim requestStorageAccess calls for Kinja-powered blogs. r=webcompat-reviewers,twisniewski,anti-tracking-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D124493
2021-10-15 19:23:24 +00:00
Emilio Cobos Álvarez
2119007c36 Bug 1736038 - Remove -moz-toolbar-prefers-color-scheme. r=dao
By making prefers-color-scheme return the ColorSchemeForChrome(), which
accounts for the Firefox theme.

Differential Revision: https://phabricator.services.mozilla.com/D128611
2021-10-15 16:53:08 +00:00
William Durand
c6a0cb3cb6 Bug 1735758 - Add proxy-failover system add-on. r=rpl
This patch contains the following changes:

- Moved the files from https://github.com/mozilla-extensions/proxy-monitor (`extension/*`) to `browser/extensions/proxy-failover`.
- In `api.js`:
  - Added license at the top of the file
  - Added a `globals` comment to tell ESLint about `ExtensionAPI`
  - Added a comment to disable an ESLint rule on L289 (consistent-return)
  - Added a comment to disable an ESLint rule on L422 (no-unused-vars)
  - Reformatted some comment blocks to break ato break at ~80 chars
- Added `moz.build` to build the `proxy-failover` extension
- Added `proxy-failover` to the list of built-in system add-ons
- Added a smoke test to make sure the add-on is loaded

Differential Revision: https://phabricator.services.mozilla.com/D128466
2021-10-14 18:13:28 +00:00
Tim Giles
8e0c611c6e Bug 1688607 - Enable autofill and capturing when there are multiple credit card number fields. r=sgalich
Enable the feature only in Nightly.

Add functionality for previewing and autofilling into multiple cc-number fields.

Fix test_Lush.js case.

Add logic to handle credit card saving/update when multiple cc-number fields are present.

Add heuristic test for Lufthansa site.

Add test for filling cc-number when there are multiple cc-number fields in a form.

Add test for collecting multiple cc-number fields via collectFormFields.

Add multiple cc-number fields case to onFormSubmitted test.

Add multiple cc-number fields with maxlength=4 case to markAsAutofillField.

Add implementation of the preview and fill test cases for multiple cc-number fields.

Differential Revision: https://phabricator.services.mozilla.com/D127987
2021-10-14 14:03:38 +00:00
Niklas Baumgardner
c76afc6ac8 Bug 1733428 - Toggle screenshots UI if screenshots toolbar button is pressed. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D127893
2021-10-13 15:25:05 +00:00
Niklas Baumgardner
72bf7a1bd6 Bug 1714234 - Enable the dimension checks for visible-page screenshots in browser_screenshots_dimensions.js. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D127573
2021-10-07 16:58:02 +00:00
Tim Giles
f08a40e19c Bug 1696132 - Fix visibility of 'Form Autofill Options' footer on all platforms. r=sfoster,desktop-theme-reviewers,harry,mstange
Fixes the visibility issues of Form Autofill footer when using different system themes on Windows, Mac, and Linux.

Differential Revision: https://phabricator.services.mozilla.com/D125107
2021-09-29 20:17:08 +00:00
Thomas Wisniewski
65e8edf5d7 Bug 1733069 - Use var instead of const to declare UAHelpers and prevent breakage in the webcompat addon (also fix a minor typo). r=denschub,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D126973
2021-09-29 17:36:42 +00:00
Emma Malysz
6aa62ca44e Bug 1725430: disable screenshot shortcut for extension when screenshots.browser.component.enabled is true. r=emalysz,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D125850
2021-09-28 20:01:35 +00:00
Sandor Molnar
d2a002ac23 Backed out changeset 92aee7fde9a1 (bug 1696132) for causing bc failures in browser_parsable_css. 2021-09-28 23:25:29 +03:00
Dimi
f25133007b Bug 1454211 - Re-enable test_basic_autocomplete_form.html test on Windowns and Mac r=tgiles
Differential Revision: https://phabricator.services.mozilla.com/D126759
2021-09-28 18:46:02 +00:00
Thomas Wisniewski
b39921c8ab Bug 1720140 - Ship v27.0.0 of the WebCompat System Addon; r=denschub,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D126816
2021-09-28 17:47:04 +00:00
Tim Giles
a95d4f4aa8 Bug 1696132 - Fix visibility of 'Form Autofill Options' footer on all platforms. r=sfoster,desktop-theme-reviewers,harry,mstange
Fixes the visibility issues of Form Autofill footer when using different system themes on Windows, Mac, and Linux.

Differential Revision: https://phabricator.services.mozilla.com/D125107
2021-09-28 17:16:45 +00:00
criss
f157e7c832 Backed out changeset ec019c0205a9 (bug 1725430) for causing failures on dbg-toggling-tools.js 2021-09-28 00:42:30 +03:00
Thomas Wisniewski
ec8d0c5924 Bug 1668408 - Work around site breakage on StackBlitz related to dFPI, by using SmartBlock shims to disable service workers; r=pbz,ksenia,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D126556
2021-09-27 19:27:44 +00:00
Emma Malysz
058eca39a9 Bug 1725430: disable screenshot shortcut for extension when screenshots.browser.component.enabled is true. r=emalysz,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D125850
2021-09-27 17:30:35 +00:00
Thomas Wisniewski
0b84b69e40 Bug 1731825 - Hide the Office365 Outlook registerProtocolHandler notification after it shows once, as a work-around until bug 668577 is fixed; r=ksenia,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D126374
2021-09-23 15:01:27 +00:00