Commit Graph

3839 Commits

Author SHA1 Message Date
Cristian Tuns
d579d97980 Backed out changeset afc12be87873 (bug 1827910) for causing xpcshell failures in test_ext_browser_style_deprecation.js CLOSED TREE 2023-05-04 09:41:11 -04:00
Rob Wu
01cdae31d3 Bug 1827910 - Show deprecation warnings for browser_style in MV3 r=willdurand
This patch has no observable changes, other than printing deprecation
messages when browser_style is effectively true in MV3.

This patch does include the full logic for all stages of the deprecation
process behind prefs, which will follow the schedule described at:
https://bugzilla.mozilla.org/show_bug.cgi?id=1827910#c1.

All combinations of these prefs are fully covered by unit tests in
toolkit/components/extensions/test/xpcshell/test_ext_browser_style_deprecation.js
The next test tasks confirm the behavior of the current patch:
- browser_style_never_deprecated_in_MV2
- supported_with_browser_style_false
- supported_with_browser_style_true
- supported_with_mv2_defaults

Differential Revision: https://phabricator.services.mozilla.com/D176811
2023-05-04 12:45:00 +00:00
William Durand
df4f375b85 Bug 1805924 - Allow to re-order the list of extensions in the unified extensions panel. r=rpl,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D175348
2023-05-04 06:11:44 +00:00
anwar
1d2e079021 Bug 1829673 - Put all mochitest test manifest files under browser/components into alphabetical order. r=mconley,extension-reviewers,credential-management-reviewers,dimi,robwu
Differential Revision: https://phabricator.services.mozilla.com/D176459
2023-05-02 16:13:24 +00:00
Narcis Beleuzu
81813a40f3 Backed out 12 changesets (bug 1824112) for mochitest failures on test_autocomplete_autofill_related_realms_no_dupes.html . CLOSED TREE
Backed out changeset 1b884731cc88 (bug 1824112)
Backed out changeset a5c59331e797 (bug 1824112)
Backed out changeset fec2998bed4f (bug 1824112)
Backed out changeset 3b86742b481e (bug 1824112)
Backed out changeset fdf4845c5a44 (bug 1824112)
Backed out changeset 378d2832774b (bug 1824112)
Backed out changeset f24f6a88b9a0 (bug 1824112)
Backed out changeset dd3b06a85ac8 (bug 1824112)
Backed out changeset e19d6f69fd8a (bug 1824112)
Backed out changeset e96c54b21c45 (bug 1824112)
Backed out changeset b51f68d02f4c (bug 1824112)
Backed out changeset 30aa8323efcd (bug 1824112)
2023-05-02 15:02:59 +03:00
Johannes J. Schmidt
2dccf786ac Bug 1824112 - switch to addLoginAsync in tests r=credential-management-reviewers,sync-reviewers,sgalich,markh
Differential Revision: https://phabricator.services.mozilla.com/D175704
2023-05-02 09:22:07 +00:00
Itiel
332aa98bae Bug 1818622 - More clean up to the unified extensions panel r=willdurand,mconley
Also, update also the menu button's class depending on its location. Update tests accordingly.

Differential Revision: https://phabricator.services.mozilla.com/D170828
2023-05-01 19:57:49 +00:00
Sandor Molnar
8ba3c187c7 Backed out 3 changesets (bug 1824112) for causing failures related in toolkit/components/passwordmgr/<...> CLOSED TREE
Backed out changeset 54334826f02e (bug 1824112)
Backed out changeset 01a71441e86a (bug 1824112)
Backed out changeset 1d21bc78852c (bug 1824112)
2023-04-24 12:20:18 +03:00
Johannes J. Schmidt
da31c33064 Bug 1824112 - switch to addLoginAsync in tests r=credential-management-reviewers,sync-reviewers,sgalich,markh
Differential Revision: https://phabricator.services.mozilla.com/D175704
2023-04-24 07:52:22 +00:00
William Durand
ee885114f8 Bug 1801266 - Handle the case where an extension widget is not visible and not in the extensions panel. r=mconley,rpl
Differential Revision: https://phabricator.services.mozilla.com/D168532
2023-04-19 07:42:16 +00:00
Mathew Hodson
c060b32e7d Bug 1824906 - Update consumers to use normandy ESM. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D175026
2023-04-16 18:01:55 +00:00
Drew Willcoxon
c26ec9b3d6 Bug 1827762 - Replace UrlbarProvider.pickResult() and blockResult() with onEngagement() r=mak
This removes `UrlbarProvider.pickResult()` and `blockResult()` in favor of
handling picks and dismissals through `onEngagement()`. A number of providers
use those two methods, so this revision touches a lot of files.

Handling dismissals through `onEngagement()` means `UrlbarInput.pickResult()`
can no longer tell whether a result is successfully dismissed, so it can't
remove the result anymore. (Maybe `onEngagement()` could return some value
indicating it dismissed the result, but I don't want to go down that road.)
Instead, I split `UrlbarController.handleDeleteEntry()` into two methods: a
public one that removes the result and notifies listeners, and a private one
that handles dismissing the selected result internally in
UrlbarController. Providers that have dismissable results should now implement
`onEngagement()` and call `controller.removeResult()`.

I made some other improvements to engagement handling. There's still room for
more but this patch is big enough already.

Other notable changes:

Include the engaged result in engagement notifications so providers have easy
access to it and can respond to clicks and dismissals more easily. That also
lets us stop passing `selIndex` and `provider` to `engagementEvent.record()`
since now it can compute those from the passed-in result.

Add the concept of `isSessionOngoing` to engagement notifications so providers
can tell whether an engagement ended the search session. Right now, providers
like quick suggest that record a bunch of provider-specific legacy telemetry
assume that `onEngagement()` ends the session, but that's no longer true.

Unify result buttons and result menu commands by setting
`element.dataset.command` on buttons (hopefully we can remove buttons soon, at
least the ones that aren't tip buttons)

Make sure we always notify providers on engagement even on dismissals or
when skipping legacy telemetry

Move dismissal of restyled search suggestions and history results from
`UrlbarController.handleDeleteEntry()` to the Places provider

Move dismissal of form history results from
`UrlbarController.handleDeleteEntry()` to the search suggestions provider

In the Places provider, remove the unused `_addSearchEngineMatch()` method. Also
remove the code in the "searchengine" case that creates a non-search-history
result. This code is unreached because the only time the provider creates a
"searchengine" match it also sets `isSearchHistory` to true.

In `UrlbarTestUtils.promiseAutocompleteResultPopup()`, change the default value
of the `fireInputEvent` param from false to true. This is necessary because
without a starting input event, the start event info in `engagementEvent` will
be null, so when `engagementEvent.record()` is called at the end of the
engagement, it will bail, and providers will not be notified of the engagement.
IMO true is a better default value anyway because input events will typically be
fired when the user performs a search.

Differential Revision: https://phabricator.services.mozilla.com/D174941
2023-04-13 06:03:33 +00:00
Emilio Cobos Álvarez
982d79c805 Bug 1826622 - Constrain autocomplete popup like select. r=Gijs,sgalich
Depends on D175039

Differential Revision: https://phabricator.services.mozilla.com/D175040
2023-04-11 19:59:06 +00:00
Ebilite Uchenna
ed5dc481d8 Bug 1824611 - Convert consumers of toolkit/components/passwordmgr to import ES modules directly. r=Standard8,credential-management-reviewers,settings-reviewers,fxview-reviewers,sclements,sgalich,geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D174446
2023-04-11 19:06:24 +00:00
Tooru Fujisawa
18d749f6ff Bug 1821308 - Part 2: Convert ctypes.jsm consumers to use ESM. r=Standard8,geckoview-reviewers,application-update-reviewers,credential-management-reviewers,sgalich,bytesized,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D173811
2023-04-11 01:25:15 +00:00
Mark Banner
85d8bc064f Bug 1826702 - Convert PermissionTestUtils to an ES module. r=permissions-reviewers,settings-reviewers,media-playback-reviewers,pbz,padenot
Differential Revision: https://phabricator.services.mozilla.com/D174846
2023-04-06 15:07:56 +00:00
Tomislav Jovanovic
5c6840fe4b Bug 1775565 - Use explicit startupReason in rowser_ext_openPanel.js test and re-enable, r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D173150
2023-04-02 21:32:02 +00:00
Barret Rennie
f7a4fadf48 Bug 1788954 - Convert toolkit/components/nimbus to ES modules r=Standard8,pip-reviewers,credential-management-reviewers,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D172850
2023-03-30 20:51:58 +00:00
CanadaHonk
de0de3489c Bug 1801379 - Migrate Sinon.jsm to an ES module r=extension-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,fxview-reviewers,devtools-reviewers,Standard8,nchevobbe,sclements,dimi,mconley,bytesized,robwu
Migrated `testing/modules/Sinon.sys.mjs` to an ES module.

`testing` should now be 100% ESM 🎉

Differential Revision: https://phabricator.services.mozilla.com/D173643
2023-03-29 07:34:10 +00:00
William Durand
36e8ea3c75 Bug 1822306 - Add Extension.getPreferredIcon() method and use it. r=zombie
It looks like `extension.iconURL` never worked. I added a `getPreferredIcon()`
that relies on `IconDetails.getPreferredIcon()` under the hood in order to
easily get icon URLs from an instance of an `Extension`. I updated a few places
where using this new method is a bit better.

Differential Revision: https://phabricator.services.mozilla.com/D173158
2023-03-27 11:04:50 +00:00
Gijs Kruitbosch
26b5647f6f Bug 1822037 - actually test that popup and options pages open links in tabs rather than their own browsers, r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D173423
2023-03-24 12:57:38 +00:00
Gijs Kruitbosch
87bf7fa386 Bug 1822037 - don't bother setting isAppTab for extension browsers, r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D173089
2023-03-24 12:57:37 +00:00
Stephanie Cunnane
14d14bef22 Bug 1823278 - Update consumers of toolkit/components/utils to import ES modules directly. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D172950
2023-03-22 02:02:51 +00:00
Kershaw Chang
a0bb05c96b Bug 1809843 - Skip Failed tests, r=necko-reviewers,extension-reviewers,credential-management-reviewers,valentin,sgalich,robwu
Differential Revision: https://phabricator.services.mozilla.com/D171842
2023-03-21 09:09:58 +00:00
William Durand
53fa5ffd91 Bug 1820124 - Remove addonManager.action/link/view Telemetry events. r=rpl,settings-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D171541
2023-03-20 20:11:15 +00:00
Stanca Serban
7609495ae3 Bug 1775565 - disable browser_ext_openPanel.js on linux, mac opt and win11_2009. r=intermittent-reviewers,jmaher
Differential Revision: https://phabricator.services.mozilla.com/D172990
2023-03-20 14:12:04 +00:00
Mike Kaply
3029e38ea6 Bug 1813108 - Add support for pinning to ExtensionSettings policy. r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D170949
2023-03-16 15:57:14 +00:00
Marian-Vasile Laza
5ceabf644b Backed out changeset c24f7a077e5f (bug 1813108) for mochitest failures on test_ext_action.html. 2023-03-15 23:08:08 +02:00
Mike Kaply
c41c63183b Bug 1813108 - Add support for pinning to ExtensionSettings policy. r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D170949
2023-03-15 19:18:44 +00:00
Luca Greco
30558dfdba Bug 1775577 - Prevent test_discarded_private_tab_restored from trying to discard the same tab twice. r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D172154
2023-03-15 18:31:50 +00:00
Luca Greco
9d0a54e72d Bug 1680419 - Explicitly wait for indentity-box mutation before asserting the identity-box/icon styles. r=Gijs
I wasn't able to hit this locally even when running the test with --verify, and in the failure logs from the
failures linked to orangefactor I couldn't find any that would provide me some clue of what is going on,
but if the identity box is being updates asynchronously then I would not exclude this may be hit only in
some cases that are never hit locally by executing this test file on its own.

This patch adds a few small changes to explicitly wait for a mutation of the identity box before asserting
the styles, the test was still passing consistently locally and so if this version would fail for
a timeout due to get stuck waiting for the mutation, then we would at least determine that the identity
box would very likely never be updated and there may be something else going on that may be worth digging
further into.

Differential Revision: https://phabricator.services.mozilla.com/D171497
2023-03-15 15:07:03 +00:00
Tomislav Jovanovic
1b49ab9278 Bug 1819176 - Set default extension.startupReason for our tests, r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D171169
2023-03-15 12:18:25 +00:00
Luca Greco
29d1c32414 Bug 1819794 - Ensure userContextId is set in the session store tab state for tabs created as discarded. r=Gijs,willdurand
Differential Revision: https://phabricator.services.mozilla.com/D171570
2023-03-15 11:47:01 +00:00
Iulian Moraru
49e4928c4c Backed out changeset 16cc818fba27 (bug 1819176) for causing frequent failures on browser_ext_themes_getCurrent_differentExt.js. CLOSED TREE 2023-03-15 05:15:03 +02:00
Tomislav Jovanovic
d82803ff92 Bug 1819176 - Set default extension.startupReason for our tests, r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D171169
2023-03-14 20:57:02 +00:00
Stanca Serban
d5e0beedf4 Backed out changeset aa406ef74561 (bug 1811326) for causing mochitests failures in browser_ext_windows_update.js. CLOSED TREE 2023-03-14 13:18:36 +02:00
YUKI "Piro" Hiroshi
5d6d52e179 Bug 1811326 - Place windows larger than screen inside screen always r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D170156
2023-03-14 09:38:29 +00:00
Gijs Kruitbosch
4ee9373eaa Bug 1718082 - move isAppTab from docshell to browsing context, r=nika,rpl
Differential Revision: https://phabricator.services.mozilla.com/D171412
2023-03-13 17:32:07 +00:00
Marian-Vasile Laza
65ec8a9faf Backed out 5 changesets (bug 1809843) for causing Cargo related build bustages. CLOSED TREE
Backed out changeset 5c494680f448 (bug 1809843)
Backed out changeset 02742b38edab (bug 1809843)
Backed out changeset 2b9b32ca8294 (bug 1809843)
Backed out changeset 56631cb02ae6 (bug 1809843)
Backed out changeset 37e35a60a71f (bug 1809843)
2023-03-13 13:53:26 +02:00
Kershaw Chang
919d22138d Bug 1809843 - Skip Failed tests, r=necko-reviewers,extension-reviewers,credential-management-reviewers,valentin,sgalich,robwu
Differential Revision: https://phabricator.services.mozilla.com/D171842
2023-03-13 11:12:33 +00:00
Sandor Molnar
5c413d6ab2 Backed out changeset 6ac0d009f1ef (bug 1810306) for causing bc failures in browser/components/extensions/test/browser/browser_ext_sidebarAction_context.js CLOSED TREE 2023-03-10 18:15:33 +02:00
kernp25
e414203e08 Bug 1810306 - Stop setting icon on menuitem in the View->Show Sidebars menu. r=desktop-theme-reviewers,mixedpuppy,dao
Differential Revision: https://phabricator.services.mozilla.com/D166871
2023-03-10 15:00:39 +00:00
Dão Gottwald
8b7b30f0a4 Bug 1790020 - Hook up urlbar result menu with telementry. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D168688
2023-03-09 12:02:13 +00:00
Luca Greco
7a97cee0bf Bug 1775577 - Remove tabs.onUpdated listener in test_discarded_private_tab_restored after discarding a tab. r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D171507
2023-03-03 10:49:52 +00:00
Stanca Serban
1b1fd96cd3 Bug 1780998 - disable browser_ext_windows_update.js on mac 10.15 debug. r=intermittent-reviewers,jmaher
Differential Revision: https://phabricator.services.mozilla.com/D170314
2023-02-25 18:42:24 +00:00
William Durand
a0e2f3e8bd Bug 1800417 - Add a test case with two windows. r=rpl
Depends on D162712

Differential Revision: https://phabricator.services.mozilla.com/D170044
2023-02-22 10:03:39 +00:00
Mark Banner
9f14e3dc03 Bug 1816934 - Update consumers of services/settings to import ES modules directly. r=leplatrem,extension-reviewers,settings-reviewers,credential-management-reviewers,sgalich,mconley,robwu
Differential Revision: https://phabricator.services.mozilla.com/D169934
2023-02-17 19:32:06 +00:00
Rob Wu
0d4d932c70 Bug 1784662 - Reduce time spent in browser_ext_omnibox.js test r=willdurand,adw
This is a test-only change. It introduces a new Urlbar pref to make the
existing 3000 ms timeout configurable.

That timeout is currently reached 8 times in the test. That means that
the test will take at least 3 x 8 = 24 seconds to run while basically
doing nothing, and makes the test prone to reach the deadline by which
the test is declared timed-out.

To avoid "Test timed out" errors, the test now reduces the fixed 3000 ms
timeout to 500 ms, so now we wait for 8x500 = 4 seconds instead of 24.

Differential Revision: https://phabricator.services.mozilla.com/D169846
2023-02-17 18:20:01 +00:00
Cristian Tuns
b9ee007450 Backed out 6 changesets (bug 1816934, bug 1817182, bug 1817179, bug 1817183) for causing dt failures in browser_jsterm_autocomplete_null.js CLOSED TREE
Backed out changeset 17d4c013ed92 (bug 1817183)
Backed out changeset cfed8d9c23f3 (bug 1817183)
Backed out changeset 62fe2f589efe (bug 1817182)
Backed out changeset 557bd773fb85 (bug 1817179)
Backed out changeset 7f8a7865868b (bug 1816934)
Backed out changeset d6c1d4c0d2a0 (bug 1816934)
2023-02-17 10:51:33 -05:00
Mark Banner
60c0009ad6 Bug 1816934 - Update consumers of services/settings to import ES modules directly. r=leplatrem,extension-reviewers,settings-reviewers,credential-management-reviewers,sgalich,mconley,robwu
Differential Revision: https://phabricator.services.mozilla.com/D169934
2023-02-17 09:01:43 +00:00