Commit Graph

3474 Commits

Author SHA1 Message Date
YUKI "Piro" Hiroshi
a53e90352a Bug 1271047 - Place "popup" type window to given coordinates r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D73419
2022-11-22 09:05:29 +00:00
William Durand
45b6adb2cb Bug 1801479 - Fix perma when Gecko 109 merges to Beta. r=rpl CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D162460
2022-11-21 18:12:53 +00:00
Noemi Erli
83bd7d5ae9 Backed out changeset 6d541e7aaa50 (bug 1801471) for causing failures in browser_unified_extensions.js 2022-11-22 02:58:42 +02:00
Noemi Erli
dfa10ce5c5 Backed out changeset 18fdd690a0f7 (bug 1801479) for causing browser chrome failures CLOSED TREE 2022-11-22 01:37:09 +02:00
scott
35e4f02b0f Bug 1798956 - Pocket newtab ensure we clear spocs in cases where sponsored topsites applies to Pocket data. r=nanj
Differential Revision: https://phabricator.services.mozilla.com/D162028
2022-11-21 20:24:29 +00:00
William Durand
dcbd751150 Bug 1801318 - Close context menu on command. r=mconley
This will force the panel to close when we click an item in the context
menu, without having to handle each menu item separately.

Differential Revision: https://phabricator.services.mozilla.com/D162424
2022-11-21 18:59:50 +00:00
Cristian Tuns
d1e21d7b84 Backed out changeset 424c4d51a7cd (bug 1271047) for causing mochitest failures on /browser_ext_windows_size.js CLOSED TREE 2022-11-21 14:04:04 -05:00
William Durand
9b6b490997 Bug 1801479 - Fix perma when Gecko 109 merges to Beta. r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D162460
2022-11-21 18:12:53 +00:00
YUKI "Piro" Hiroshi
91ce3fc92a Bug 1271047 - Place "popup" type window to given coordinates r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D73419
2022-11-21 17:02:06 +00:00
William Durand
53323bd553 Bug 1801471 - Handle Private Browsing mode in unified extensions panel. r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D162541
2022-11-21 15:01:11 +00:00
Cosmin Sabou
153f0d2c33 Bug 1798683 - disable browser_unified_extensions_overflowable_toolbar.js everywhere because of frequent failures. a=test-only 2022-11-20 11:19:15 +02:00
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
Mike Conley
d4d3af9877 Bug 1782203 - Add context menu items for pinning and unpinning addon buttons to the toolbar. r=willdurand,extension-reviewers,Itiel
Differential Revision: https://phabricator.services.mozilla.com/D161200
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
Mike Conley
55af77e9ed Bug 1782203 - Add context menu items for pinning and unpinning addon buttons to the toolbar. r=willdurand,extension-reviewers,Itiel
Differential Revision: https://phabricator.services.mozilla.com/D161200
2022-11-15 15:02:08 +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
Mike Conley
70738f0144 Bug 1782203 - Add context menu items for pinning and unpinning addon buttons to the toolbar. r=willdurand,extension-reviewers,Itiel
Differential Revision: https://phabricator.services.mozilla.com/D161200
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
Tomislav Jovanovic
d93c65fc11 Bug 1798777 - Move originControls.ftl and unifiedExtensions.ftl Fluent files out of preview r=willdurand,flod,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D161714
2022-11-10 13:59:56 +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
e61c64e546 Bug 1798968 - Update extensions context menu strings and use title case r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D161685
2022-11-09 17:54:38 +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