Commit Graph

3032 Commits

Author SHA1 Message Date
Chris Peterson
046ad13df2 Bug 1781960 - Scroll on Cmd or Ctrl + mousewheel on macOS. r=masayuki
Cmd or Ctrl + mousewheel on macOS should scroll instead of zooming the page. This new behavior will match Safari and Chrome on macOS and Firefox on Windows.

Cmd or Ctrl + horizontal mousewheel on macOS should scroll horizontally, like Safari and Chrome. The comments here mention a Left swipe+Cmd gesture, but AFAICT that gesture doesn't currently work (on my MacBook Air running macOS 12.6).

1. Set "mousewheel.with_control.action" to 1 (scroll) on macOS.

2. Stop setting "mousewheel.with_meta.action" to 3 (zoom) on macOS because we want the pref's default value 1 (scroll) from modules/libpref/init/all.js.

3. Stop setting "mousewheel.with_meta.action" to 1 (scroll) on Windows because that's pref's default value from modules/libpref/init/all.js.

4. Stop setting "mousewheel.with_control.action" to 3 (zoom) on Windows because that's pref's default value from modules/libpref/init/all.js.

5. Update the browser_mousewheel_zoom.js, browser_ext_mousewheel_zoom.js, and test_wheel_zoom_on_form_controls.html tests to re-enable mouse wheel zoom for macOS. Alternatively, I could change this test to expect scrolling instead of zooming on macOS (different from other platforms), but testing the zooming functionality for regressions seems more important than testing the mouse wheel pref's default value on macOS.

Differential Revision: https://phabricator.services.mozilla.com/D159974
2022-11-20 03:41:22 +00:00
trickypr
589688feed Bug 1510561 - Part 16: Apply plugin:mozilla/valid-jsdoc to toolkit/components/extensions. r=geckoview-reviewers,extension-reviewers,zombie,owlish
Differential Revision: https://phabricator.services.mozilla.com/D161391
2022-11-19 11:41:48 +00:00
William Durand
05cabee1df Bug 1801321 - Hide panel when pinning an extension to the toolbar. r=mconley
Similar to the Manage/Remove/Report actions in the (context) menu, we
close the unified extensions panel when clicking "Pin to toolbar". This
will also prevent the panel to be empty when there is only one extension
listed and we decide to pin it to the toolbar.

Differential Revision: https://phabricator.services.mozilla.com/D162414
2022-11-18 19:25:12 +00:00
Mark Banner
11b4005c4f Bug 1791974 - Use setAsDefault* parameters where appropriate for consumers of SearchTestUtils.installSearchExtension. r=mcheang
Differential Revision: https://phabricator.services.mozilla.com/D161045
2022-11-18 14:30:27 +00:00
Mark Banner
9181f205be Bug 1791974 - Add set as default (private) search engine options to SearchTestUtils.promiseNewSearchEngine. r=mcheang
Differential Revision: https://phabricator.services.mozilla.com/D161043
2022-11-18 14:30:26 +00:00
William Durand
3b920d7b92 Bug 1801142 - Add hover messages on CUI widgets in the unified extensions panel. r=rpl,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D162331
2022-11-18 12:08:19 +00:00
Cosmin Sabou
3255b0769d Bug 1798683 - disable browser_unified_extensions_overflowable_toolbar.js because of permafailures. r=mconley,extension-reviewers,willdurand DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D162315
2022-11-17 21:38:19 +00:00
Mark Banner
70830f8413 Bug 1799314 - Convert consumers of testing modules to import ES modules direct (extensions). r=extension-reviewers,robwu
Differential Revision: https://phabricator.services.mozilla.com/D161905
2022-11-17 12:00:27 +00:00
William Durand
fb79430769 Bug 1799846 - Filter out extensions that have a browser action in the non-CUI list in the unified extensions panel. r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D161686
2022-11-17 09:45:27 +00:00
Mike Conley
87e154d1b7 Bug 1798896 - Update WebExtension tests to account for browser actions being locked out of the overflow menu. r=willdurand,extension-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D161841
2022-11-17 01:59:59 +00:00
Mike Conley
1e8fc28499 Bug 1799947 - Update existing tests to put browser_action's into the navbar by default. r=willdurand,extension-reviewers
We had a number of tests that assumed that when adding a browser_action without
specifying the default_area, that the button would enter the navbar. The previous
patch in this series changes that assumption when the Unified Extensions UI is
enabled.

Instead of updating all of these tests to add additional steps to move the
browser_action's out to the navbar after adding them, I've gone ahead and
updated them to default their browser_action's to the navbar instead.

Differential Revision: https://phabricator.services.mozilla.com/D161721
2022-11-16 22:12:52 +00:00
Mike Conley
4d13193918 Bug 1799947 - With Unified Extensions UI, make addons panel the fallback area for browser_actions. r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D161720
2022-11-16 22:12:52 +00:00
Marian-Vasile Laza
bfb43d0dc3 Backed out 2 changesets (bug 1799947) for causing browserAction bc, mochitest, devtools related failures. CLOSED TREE
Backed out changeset ff58300200c4 (bug 1799947)
Backed out changeset 517df40ddcd4 (bug 1799947)
2022-11-15 22:38:24 +02:00
Mike Conley
251342f7ef Bug 1799947 - Update existing tests to put browser_action's into the navbar by default. r=willdurand,extension-reviewers
We had a number of tests that assumed that when adding a browser_action without
specifying the default_area, that the button would enter the navbar. The previous
patch in this series changes that assumption when the Unified Extensions UI is
enabled.

Instead of updating all of these tests to add additional steps to move the
browser_action's out to the navbar after adding them, I've gone ahead and
updated them to default their browser_action's to the navbar instead.

Differential Revision: https://phabricator.services.mozilla.com/D161721
2022-11-15 18:37:31 +00:00
Mike Conley
bbd86e3da7 Bug 1799947 - With Unified Extensions UI, make addons panel the fallback area for browser_actions. r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D161720
2022-11-15 18:37:31 +00:00
Mike Conley
d40309199d Bug 1782203 - Add tests for the new Pin to Toolbar context menu item. r=willdurand,extension-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D161338
2022-11-15 16:37:24 +00:00
Mike Conley
b5207e1356 Bug 1782203 - Unbreak existing context menu tests for Unified Extensions UI mode. r=willdurand,extension-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D161337
2022-11-15 16:37:23 +00:00
Stanca Serban
7abed322ee Backed out 3 changesets (bug 1782203) for causing lint failures on browser_unified_extensions_overflowable_toolbar.js. CLOSED TREE
Backed out changeset 50e57afebed3 (bug 1782203)
Backed out changeset d17ea376ed45 (bug 1782203)
Backed out changeset e91d51f1ce90 (bug 1782203)
2022-11-15 17:42:22 +02:00
Mike Conley
cf35a57c36 Bug 1782203 - Add tests for the new Pin to Toolbar context menu item. r=willdurand,extension-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D161338
2022-11-15 15:02:09 +00:00
Mike Conley
0a03210b6f Bug 1782203 - Unbreak existing context menu tests for Unified Extensions UI mode. r=willdurand,extension-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D161337
2022-11-15 15:02:09 +00:00
William Durand
307f9a8b0e Bug 1777484 - Enhance extension widgets in the unified extensions panel. r=rpl,Itiel
Differential Revision: https://phabricator.services.mozilla.com/D161168
2022-11-15 12:59:34 +00:00
Csoregi Natalia
1ce4bb73a7 Backed out 4 changesets (bug 1782203, bug 1777484) for failures on browser_unified_extensions_overflowable_toolbar.js. CLOSED TREE
Backed out changeset ae47d92443a7 (bug 1782203)
Backed out changeset 0c90b1d40e9f (bug 1782203)
Backed out changeset 4b4cae098ea0 (bug 1782203)
Backed out changeset 75eba3b7a626 (bug 1777484)
2022-11-15 03:06:21 +02:00
Mike Conley
e28ed5dfe8 Bug 1782203 - Add tests for the new Pin to Toolbar context menu item. r=willdurand,extension-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D161338
2022-11-14 22:41:10 +00:00
Mike Conley
7045d9d8cd Bug 1782203 - Unbreak existing context menu tests for Unified Extensions UI mode. r=willdurand,extension-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D161337
2022-11-14 22:41:09 +00:00
William Durand
a5ca2f6904 Bug 1777484 - Enhance extension widgets in the unified extensions panel. r=rpl,Itiel
Differential Revision: https://phabricator.services.mozilla.com/D161168
2022-11-14 22:41:08 +00:00
William Durand
a9884dda35 Bug 1798324 - Update style of extension widgets in the panel. r=mconley,desktop-theme-reviewers,dao,rpl
Differential Revision: https://phabricator.services.mozilla.com/D161036
2022-11-10 11:29:16 +00:00
Tomislav Jovanovic
a63393aa92 Bug 1794427 - Origin Controls reflect implicit access through content scripts r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D160893
2022-11-09 13:21:09 +00:00
William Durand
093aba99c8 Bug 1799497 - Only register 'add-ons-button' widget when the unified extensions pref is disabled. r=Gijs,rpl
Differential Revision: https://phabricator.services.mozilla.com/D161569
2022-11-08 19:54:47 +00:00
Mike Conley
c759904dae Bug 1797836 - Part 2: Update CUI to have a general TYPE_PANEL instead of TYPE_MENU_PANEL. r=desktop-theme-reviewers,dao,sclements
Long ago, the menu panel in was a customizable area that users could drag things into.

That changed back around 2017 in bug 1354117 when the Photon redesign was built. The
menu panel become a static menu, but we also made it possible to permanently move things
to the overflow panel of the nav-bar.

It looks like we never updated the area type constant from referring to the old menu panel
though, so it's "TYPE_MENU_PANEL", and registering a node for it happens with
registerMenuPanel. This patch changes to constant to TYPE_PANEL and updates the registration
method to registerPanelNode.

I a check around the codebase as well as GitHub looking to see if there were any
system add-ons or experimental WebExtensions that rely on TYPE_MENU_PANEL / registerMenuPanel,
but I couldn't find any.

Differential Revision: https://phabricator.services.mozilla.com/D161078
2022-11-08 14:51:40 +00:00
William Durand
fc741397c8 Bug 1799143 - Fix attention dot for MV3 extension buttons in the toolbar and overflow panel. r=dao,extension-reviewers,zombie
Differential Revision: https://phabricator.services.mozilla.com/D161299
2022-11-08 14:28:10 +00:00
Mark Banner
19c189e131 Bug 1798212 - Convert consumers of downloads code to ES modules. r=mak,geckoview-reviewers,extension-reviewers,settings-reviewers,credential-management-reviewers,sgalich,mconley,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D161013
2022-11-07 17:56:10 +00:00
William Durand
332bb1164c Bug 1799203 - Do not open panel when context-clicking the UEB. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D161334
2022-11-05 09:07:14 +00:00
Mike Conley
767c9ae736 Bug 1799007 - Create Unified Extensions enabled and disabled variants of context menu tests. r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D161216
2022-11-05 01:27:10 +00:00
Csoregi Natalia
31cce8b96e Backed out changeset 64187944ddd3 (bug 1799007) for causing extensions failures. CLOSED TREE 2022-11-05 00:06:26 +02:00
Mike Conley
326aeab233 Bug 1799007 - Create Unified Extensions enabled and disabled variants of context menu tests. r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D161216
2022-11-04 20:25:33 +00:00
William Durand
b31856e2ae Bug 1797050 - Part 8 - Add test coverage for the deprecated manifest.json key "applications". r=rpl
Depends on D160248

Differential Revision: https://phabricator.services.mozilla.com/D160726
2022-11-04 19:09:02 +00:00
William Durand
12a393c465 Bug 1797050 - Part 6 - Use browser_specific_settings instead of applications in test manifests. r=rpl,perftest-reviewers,sparky
We want to encourage extension developers to use `browser_specific_settings` instead of `applications`, which will be unsupported in Manifest Version 3+. This patch makes sure test manifests in m-c won't cause any issues in the future.

Depends on D160541

Differential Revision: https://phabricator.services.mozilla.com/D160668
2022-11-03 16:23:03 +00:00
Marco Bonardo
6859ef34b1 Bug 1429108 - Switch FormHistory::update to promises. r=sgalich,mconley
Differential Revision: https://phabricator.services.mozilla.com/D160925
2022-11-03 09:35:39 +00:00
Marco Bonardo
dcb62ba55a Bug 1429108 - Switch FormHistory::count to promises. r=sgalich,mconley
Differential Revision: https://phabricator.services.mozilla.com/D160923
2022-11-03 09:35:38 +00:00
Marco Bonardo
d799769a5f Bug 1429108 - Switch FormHistory::search to promises. r=sgalich,mconley
Differential Revision: https://phabricator.services.mozilla.com/D160922
2022-11-03 09:35:38 +00:00
Shane Caraveo
e5c4d6af38 Bug 1784947 - Make browser action a custom widget to support unified extension button. r=desktop-theme-reviewers,zombie,Itiel
Co-Authored-By: William Durand <will+git@drnd.me>

Differential Revision: https://phabricator.services.mozilla.com/D154470
2022-11-03 09:30:22 +00:00
Mike Conley
ce84c284ed Bug 1797838 - Add a webExtension property to CustomizableUI widgets for browserAction buttons. r=dao,willdurand
This property, along with the CustomizableUI.isWebExtensionWidget, will make it possible
to distinguish WebExtension-provided widgets without sniffing CSS classes, which is what
we currently do.

In the event that the widget has been destroyed or hasn't yet been created, this will
fallback to looking for the `-browser-action` suffix on the ID. This is mainly for use during
migrations which happen early during CustomizableUI startup, when it's unlikely that the
extensions have finished initializing themselves and creating their widgets yet.

Differential Revision: https://phabricator.services.mozilla.com/D160802
2022-11-02 16:52:59 +00:00
Mike Conley
92f1df1669 Bug 1797155 - Part 3: Add tests for Unified Extensions toolbar overflow behaviour. r=willdurand,extension-reviewers
Depends on D160293

Differential Revision: https://phabricator.services.mozilla.com/D160542
2022-11-01 21:50:56 +00:00
Mike Conley
bd0a2d6a38 Bug 1797155 - Part 2: Make it possible to redirect browser action widgets to the Unified Extension panel on overflow. r=sclements,willdurand
When Unified Extensions is enabled, we want to make it so that any WebExtension browser_actions
overflow into the Unified Extensions panel instead of the default overflow panel.

Depends on D160292

Differential Revision: https://phabricator.services.mozilla.com/D160293
2022-11-01 21:50:56 +00:00
William Durand
964e3b9095 Bug 1796559 - Only open about:addons on primary click. r=zombie
Differential Revision: https://phabricator.services.mozilla.com/D160329
2022-11-01 19:45:14 +00:00
Butkovits Atila
517ae6c72a Backed out 3 changesets (bug 1797155) for causing failures at browser_unified_extensions_overflowable_toolbar.js. CLOSED TREE
Backed out changeset 67f5e4af25b6 (bug 1797155)
Backed out changeset b8a8bd646606 (bug 1797155)
Backed out changeset ec7cdd68c414 (bug 1797155)
2022-11-01 19:33:25 +02:00
Mike Conley
2e4ddded0e Bug 1797155 - Part 3: Add tests for Unified Extensions toolbar overflow behaviour. r=willdurand,extension-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D160542
2022-11-01 16:44:33 +00:00
Mike Conley
7ba904bf88 Bug 1797155 - Part 2: Make it possible to redirect browser action widgets to the Unified Extension panel on overflow. r=sclements,willdurand
When Unified Extensions is enabled, we want to make it so that any WebExtension browser_actions
overflow into the Unified Extensions panel instead of the default overflow panel.

Differential Revision: https://phabricator.services.mozilla.com/D160293
2022-11-01 16:44:33 +00:00
Mark Banner
0008510845 Bug 1798018 - Convert consumers of toolkit/modules/tests to import ES modules direct. r=Gijs,webdriver-reviewers,extension-reviewers,settings-reviewers,credential-management-reviewers,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D160664
2022-11-01 13:26:38 +00:00
Joel Maher
67022e845c Bug 1798331 - annotation more tests for win11. r=bxbrenden
Differential Revision: https://phabricator.services.mozilla.com/D160807
2022-10-31 21:15:09 +00:00