Commit Graph

3683 Commits

Author SHA1 Message Date
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
Dan Minor
a241ea2f65 Bug 1642415 - Update existing tests to pass metasource into createMock; r=platform-i18n-reviewers,gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D125240
2021-09-22 18:16:07 +00:00
Narcis Beleuzu
64df090f34 Backed out changeset ceaaed353b66 (bug 1725430) for assertion failure on ErrorResult.h . CLOSED TREE 2021-09-22 01:09:22 +03:00
Emma Malysz
b1d78a7427 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-21 20:37:48 +00:00
Thomas Wisniewski
54afb000e1 Bug 1727040 - apply the Google Publisher Tags SmartBlock shim to more URLs; r=ksenia,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D126127
2021-09-21 01:20:25 +00:00
Thomas Wisniewski
9f0c92729d Bug 1728594 - fix a SmartBlock regression which causes some site links to not be clickable; r=johannh,ksenia,webcompat-reviewers
- gpt.js expends dataLayer.push to return true, or it will cancel clicks on the relevant tracked links.

Differential Revision: https://phabricator.services.mozilla.com/D126009
2021-09-17 21:21:40 +00:00
Neil Deakin
6b3580b4b6 Bug 1690390, change appendNotification to take a smaller number of arguments: the string type value, a dictionary containing the notification details, and the button list, r=mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D107755
2021-09-17 09:04:59 +00:00
Narcis Beleuzu
c25133b5dc Backed out 3 changesets (bug 1690390) for mochitest failures on test_notificationbox.xhtml . CLOSED TREE
Backed out changeset e6404b7424cd (bug 1690390)
Backed out changeset a161177099af (bug 1690390)
Backed out changeset cc7e02d3d418 (bug 1690390)
2021-09-16 23:41:21 +03:00
Neil Deakin
60bf60be5c Bug 1690390, change appendNotification to take a smaller number of arguments: the string type value, a dictionary containing the notification details, and the button list, r=mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D107755
2021-09-16 19:11:17 +00:00
Geoff Brown
a00c449c2d Bug 1730213 - Explicitly skip tests under browser/ on android; r=ahal
These tests are excluded from android test runs in moz.build. Including
an explicit annotation in each manifest avoids scheduling confusion.
browser-chrome and plain-chrome tests in browser/ are of no concern,
since those test types are never scheduled on android.

Differential Revision: https://phabricator.services.mozilla.com/D125266
2021-09-13 15:22:27 +00:00
Emilio Cobos Álvarez
d44539261e Bug 1687682 - Make autofill use a semi-transparent background-image rather than filter. r=mstange,tgiles
With the non-native theme we don't need filter for this to affect
"native" inputs, we can just implement the logic in nsNativeBasicTheme
instead.

A bit unfortunate that we need that special-case, but it seems better
than using filter, which can break websites due to it creating an
stacking context.

I _think_ there are tests that I need to adjust for this change, but if
not I'll write some.

Keep the current behavior behind a pref just in case.

Differential Revision: https://phabricator.services.mozilla.com/D125232
2021-09-12 11:16:07 +00:00
Tim Giles
841d7b9f5e Bug 1688609 - Add 'titulaire' to cc-name heuristic regex. r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D124948
2021-09-09 17:12:23 +00:00
Ben Hearsum
bd48934297 Bug 1714200: annotate remaining M1 test failures. r=jmaher,application-update-reviewers,bytesized DONTBUILD
Depends on D124907

Differential Revision: https://phabricator.services.mozilla.com/D124908
2021-09-08 18:14:01 +00:00
Ben Hearsum
c2bc0a1657 Bug 1714200: annotate tests that fail in regular suites but pass when run in isolation. r=jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D124907
2021-09-08 18:14:00 +00:00
Tim Giles
180e0a8e10 Bug 1687684 - Fix credit card autofill not working due to site prefilling fields. r=dimi,sfoster
Enables autofilling into fields that may have been filled by the site.
Enables autofill preview to work as expected if a field already has a value.
Ensures autofill does not restore the default value if the user manually clears out the field's value.

This fixes the case on next.co.uk where the value of the cardholder name is being used as a placeholder.

Differential Revision: https://phabricator.services.mozilla.com/D123260
2021-09-02 15:29:48 +00:00
Emilio Cobos Álvarez
a0b03f3393 Bug 1693222 - Implement SelectedItem and SelectedItemText system colors. r=mstange
Since Highlight / HighlightText are now equivalent to the text selection
ones, remove those too.

Differential Revision: https://phabricator.services.mozilla.com/D123964
2021-09-02 11:38:01 +00:00
Narcis Beleuzu
cbaf570ec7 Backed out changeset 28a0487d0291 (bug 1693222) for reftest failure on themed-widget.html. CLOSED TREE 2021-09-02 02:26:12 +03:00
Emilio Cobos Álvarez
e48b7285ba Bug 1693222 - Implement SelectedItem and SelectedItemText system colors. r=mstange
Since Highlight / HighlightText are now equivalent to the text selection
ones, remove those too.

Differential Revision: https://phabricator.services.mozilla.com/D123964
2021-09-01 18:21:57 +00:00
Ksenia Berezina
2bd679fdfe Bug 1720139 - Ship v26.0.0 of the WebCompat System Addon r=webcompat-reviewers,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D123983
2021-08-31 16:52:33 +00:00
Tim Giles
be6786ba23 Bug 1688209 - Prevent simple hidden fields from being eligible for autofill. r=dimi
Prevent simple hidden fields from being eligible for autofill.
'Simple' in this case means fields that have the hidden attribute or 'display:none' inline property.

Differential Revision: https://phabricator.services.mozilla.com/D120669
2021-08-30 15:17:39 +00:00
Paul Zuehlcke
23f053a50d Bug 1683165 - Add a pref to control anti-tracking webcompat features. r=timhuang,twisniewski,webcompat-reviewers,dimi
Differential Revision: https://phabricator.services.mozilla.com/D123614
2021-08-26 15:13:10 +00:00
Matt Woodrow
c921ee58a7 Bug 1708403 - Make resetting of scroll position for drawSnapshot opt-in. r=mstange,kmag
Differential Revision: https://phabricator.services.mozilla.com/D117613
2021-08-25 20:49:18 +00:00
Thomas Wisniewski
3648c70092 Bug 1624914 - Work around Google Trends sub-frame ETP breakage; r=johannh,denschub,webcompat-reviewers
Google Trends subframes are currently broken by dFPI protections, as they
expect the Google NID cookie to be present as per their set-cookie
response header, but it is being blocked.

This patch adds a new custom SmartBlock-style shim which:
- listens for requests made for Google Trends subframes.
- remembers their set-cookie response header.
- redirects the request right back to the same URL.
- subsequently passes along the saved cookie, preventing the breakage.

Differential Revision: https://phabricator.services.mozilla.com/D123372
2021-08-25 15:37:09 +00:00
criss
3dccd18bd3 Backed out changeset 8868fe82dafd (bug 1708403) for causing failures on test_drawSnapshot_fixed.html. CLOSED TREE 2021-08-25 04:08:24 +03:00
Matt Woodrow
79712ba191 Bug 1708403 - Make resetting of scroll position for drawSnapshot opt-in. r=mstange,kmag
Differential Revision: https://phabricator.services.mozilla.com/D117613
2021-08-25 00:21:01 +00:00
Michelle Goossens
015f8eeba2 Bug 1723574 - Migrate Windows 10 mochitest-browser-chrome suite from AWS to Azure r=jmaher,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D122511
2021-08-20 20:55:02 +00:00
Kajal Sah
2a16908ec6 Bug 1722774 - Adds telemetry to know which of the region selection methods are used. r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D122273
2021-08-18 23:00:44 +00:00
Geoff Brown
8cc4450c1e Bug 1724296 - Remove many skip-if(verify) test annotations (mochitest); r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D122972
2021-08-18 21:33:32 +00:00
Thomas Wisniewski
2dc406e661 Bug 1713694 - update the SmartBlock shim for AddThis to load an empty Angular module instead as needed; r=denschub,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D122987
2021-08-18 20:36:20 +00:00