Commit Graph

3499 Commits

Author SHA1 Message Date
Tomislav Jovanovic
aa927e58f2 Bug 1801336 - Don't show hover run message for mv2 without browser action r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D163333
2022-12-01 13:53:21 +00:00
Tomislav Jovanovic
1f0374a1d7 Bug 1791370 - Ensure proper order of startup cache clearing and saving, r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D163277
2022-11-29 21:58:15 +00:00
Luca Greco
b5c9ed5cb9 Bug 1775555 - Fix high frequency intermittent failures hit by browser_ext_browserAction_context.js. r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D163137
2022-11-29 16:30:08 +00:00
Mark Banner
319bc25bd8 Bug 1802855 - Convert toolkit/components/satchel JSM modules to ES modules. r=credential-management-reviewers,daleharvey,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D163201
2022-11-29 15:53:20 +00:00
Cristian Tuns
637a023191 Backed out changeset 50a57a750043 (bug 1791370) for private browsing failures on browser_html_detail_view.js. CLOSED TREE 2022-11-29 11:01:38 -05:00
Tomislav Jovanovic
a7fbbe8c1d Bug 1791370 - Ensure proper order of startup cache clearing and saving, r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D163277
2022-11-29 14:08:00 +00:00
William Durand
1aa968ac12 Bug 1800109 - Add a test that checks that overflowed toolbar items in the addons area can be unpinned via a context menu. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D163244
2022-11-28 20:24:59 +00:00
Mike Conley
dda8b11101 Bug 1801514 - Make sure addons panel hides when entering customize mode. r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D163013
2022-11-28 16:24:09 +00:00
William Durand
66339786bb Bug 1802574 - Maximize window to prevent intermittents. r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D163176
2022-11-28 12:44:50 +00:00
William Durand
80f9f71d60 Bug 1799694 - Avoid flickering when messages have different lengths. r=rpl,mconley,desktop-theme-reviewers,Itiel
This is a completely redesign based on mconley's idea to use `deck`.
That removes a lot of code and makes things a lot better.

Depends on D163077

Differential Revision: https://phabricator.services.mozilla.com/D162390
2022-11-27 17:07:44 +00:00
William Durand
ef7a4e1a24 Bug 1799694 - Rename action/menu button class names in unified extensions. r=Itiel,desktop-theme-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D163077
2022-11-27 17:07:44 +00:00
William Durand
b505ba8d95 Bug 1802374 - Open unified extensions panel with keyboard navigation. r=rpl
It looks like this used to be possible by chance when we didn't check
the event in `togglePanel()`. Now that we do this (to prevent
context-click to open the panel for example), we need to check the event
type and which button or key is clicked/pressed.

Differential Revision: https://phabricator.services.mozilla.com/D163076
2022-11-25 18:03:58 +00:00
William Durand
a4a9f55ee9 Bug 1802411 - Set disabled state on the action button for extension widgets. r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D163100
2022-11-25 14:53:59 +00:00
William Durand
ad62036e84 Bug 1793743 - Resize window to avoid overflowed extensions in the unified extensions panel. r=rpl
Depending on the test chunks on Firefox CI, we might have a test file
executed before this one that resizes the window and does not reset it.

In most cases, this isn't an issue except when we have logic to overflow
extension buttons pinned in the toolbar into the unified extensions
panel. This is what's happening here, at least for some configurations.

By making sure that the window is large enough, we should not have
overflowed extension buttons in the panel anymore. That will make the
test more robust.

Differential Revision: https://phabricator.services.mozilla.com/D162961
2022-11-24 21:32:48 +00:00
Mike Conley
1d6fdf4e6a Bug 1801678 - Test that pinning a browser action to an overflowed toolbar puts the widget in the right area. r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D162588
2022-11-24 18:51:20 +00:00
Mike Conley
20fb1fd1fd Bug 1801678 - Refactor the Unified Extensions overflowable toolbar test helper with more flexible lifetime functions. r=willdurand,extension-reviewers
This is helpful when we need to insert optional async functions to run at
particular times within withWindowOverflowed.

Differential Revision: https://phabricator.services.mozilla.com/D162587
2022-11-24 18:51:20 +00:00
Mike Conley
a4c6de385c Bug 1800967 - Update internal OverflowableToolbar state when unpinning an extension button from the toolbar when overflowed. r=willdurand,Gijs
We have some internal bookkeeping within OverflowableToolbar to remember the state of things that
have overflowed, like how wide the window needs to be before they can be moved back, etc. When an
item is removed from an overflowable toolbar while overflowed, we update that internal bookkeeping
so that OverflowableToolbar doesn't accidentally try to move those items back into the toolbar
when the window becomes wide enough again.

We've added a new overflow list for extension buttons, but we weren't updating our internal accounting
when items had been overflowed into that list. This patch fixes that.

Differential Revision: https://phabricator.services.mozilla.com/D162434
2022-11-24 18:51:18 +00:00
Tomislav Jovanovic
ce9d450436 Bug 1801136 - Update tooltips when extensions require attention for permissions, r=willdurand,flod
Differential Revision: https://phabricator.services.mozilla.com/D162894
2022-11-24 14:16:30 +00:00
William Durand
6f0e72b5e0 Bug 1793743 - Let ExtensionTestUtils generate extension IDs in createExtensions(). r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D162849
2022-11-23 19:07:45 +00:00
William Durand
700e42f801 Bug 1801471 - Add test case (+ clean-ups). r=robwu
Depends on D162541

Differential Revision: https://phabricator.services.mozilla.com/D162732
2022-11-22 18:57:58 +00:00
William Durand
fbc4f35adc Bug 1801471 - Handle Private Browsing mode in unified extensions panel. r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D162541
2022-11-22 18:57:58 +00:00
William Durand
5ff99717fb Bug 1801515 - Hover messages shouldn't be hidden by extensions in the UEP. r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D162555
2022-11-22 17:49:18 +00:00
Mike Conley
160604568f Bug 1798683 - Make browser_unified_extensions_overflowable_toolbar.js more resilient by using a constant set of extension IDs. r=willdurand,extension-reviewers
For reasons that I don't fully understand, this appears to make the test pass more reliably on all platforms.

Differential Revision: https://phabricator.services.mozilla.com/D162577
2022-11-22 15:52:07 +00:00
Csoregi Natalia
425e1d6567 Backed out changeset a05954545cff (bug 1801471) as requested. CLOSED TREE 2022-11-22 17:40:51 +02:00
William Durand
0bdb53a03c Bug 1801471 - Handle Private Browsing mode in unified extensions panel. r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D162541
2022-11-22 12:26:23 +00:00
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