Commit graph

1245 commits

Author SHA1 Message Date
Barret Rennie
d566cc0aaf Bug 1810739 - Debounce tab count metric collection r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D168854
2023-04-22 04:32:24 +00:00
Paul Zuehlcke
33700c125f Bug 1816420 - Add a test case for temporary permissions for file URIs. r=prathiksha
Depends on D167988

Differential Revision: https://phabricator.services.mozilla.com/D169233
2023-04-13 10:34:10 +00:00
Jonathan Sudiaman
ccd60c00e5 Bug 1823995 - BrowserUsageTelemetry should record telemetry when opening History/Bookmark links via the context menu r=kcochrane
Ensure that `bookmark-item` and `history-item` scalars are updated when the corresponding links are opened in new tab/window via context menu.

Differential Revision: https://phabricator.services.mozilla.com/D174904
2023-04-11 19:30:49 +00:00
Mark Banner
474708c181 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
CanadaHonk
91709586ba 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
Sarah Clements
2646639210 Bug 1822016 - Update BrowserUsageTelemetry to account for history items r=Gijs
* Add new test cases to browser_UsageTelemetry_interaction.js

Differential Revision: https://phabricator.services.mozilla.com/D173411
2023-03-27 14:22:18 +00:00
William Durand
6ebb86bc7e Bug 1820743 - Allow to move unified extensions button on the navbar. r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D171845
2023-03-21 16:55:11 +00:00
Cristina Horotan
d2152bdc1b Backed out changeset 56de7c6ac457 (bug 1820743) for causing bc failures at browser_toolbarKeyNav.js CLOSED TREE 2023-03-21 16:16:47 +02:00
William Durand
2fb700c25d Bug 1820743 - Allow to move unified extensions button on the navbar. r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D171845
2023-03-21 13:10:08 +00:00
William Durand
b9acf99c16 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
Robin Steuber
4be49e117e Bug 1821189 - Associate provenance attribution with installation.first_seen event r=nalexander
We can't add the provenance data to the `installation.first_seen` extra data because it is already at its maximum number of keys. So instead we will add the `installation.first_seen_prov_ext` event which will be sent at the same time as `installation.first_seen` and will contain provenance attribution data in its extras object.

Differential Revision: https://phabricator.services.mozilla.com/D172520
2023-03-14 18:08:16 +00:00
pmcmanis
dbc23e4b1e Bug 1818512 - mirror browser.engagement.profile_count to glean r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D170786
2023-03-13 14:15:33 +00:00
Gijs Kruitbosch
b02604d95a Bug 1819728 - make E10sUtils.getRemoteURIObject easier to use when passing a subset of options, r=nika,geckoview-reviewers,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D170923
2023-03-01 21:29:53 +00:00
Cosmin Sabou
8fbd4feeeb Backed out changeset 355940441e3d (bug 1818512) for causing glean related bc failures. CLOSED TREE 2023-02-24 19:58:26 +02:00
pmcmanis
c3b24d81c7 Bug 1818512 - mirror browser.engagement.profile_count to glean r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D170786
2023-02-24 15:57:57 +00:00
Mark Banner
8acde8d74e 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
Cristian Tuns
b3bf09cc0d 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
aec4c1293b 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
Cristina Horotan
d4f69748d1 Backed out changeset 91a18abcd0e2 (bug 1810739) for causing bc failures at browser_UsageTelemetry.js on a CLOSED TREE 2023-02-17 09:21:40 +02:00
Barret Rennie
5937cf07fc Bug 1810739 - Debounce tab count metric collection r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D168854
2023-02-17 06:35:37 +00:00
Paul Zuehlcke
f8d9b2c8b2 Bug 1811181 - Switch SitePermissions TemporaryPermissions and GloballyBlockedPermissions from prePath to origin key. r=prathiksha
nsIPermissionManager already keys by principal origin so updating SitePermissions to do the same will make our
permission handling more consistent.

Differential Revision: https://phabricator.services.mozilla.com/D167988
2023-02-14 16:13:48 +00:00
Mike Conley
90213fc7d5 Bug 1804722 - Add probes for the All Tabs panel. data-review=jhirsch, r=mossop
This adds probes and a limited set of tests for the following types of measurements:

1. A count for each time the All Tabs panel is opened, keyed on the entrypoint.
2. A count for each usage of the Tab Context Menu, keyed on the trigger node
   as the entrypoint.
3. A count for each dragstart within the All Tabs panel.

Differential Revision: https://phabricator.services.mozilla.com/D168305
2023-02-06 15:14:48 +00:00
Chris H-C
928c69dab3 Bug 1814922 - Instrument PingCentre successes/failures by namespace r=nanj
Differential Revision: https://phabricator.services.mozilla.com/D168842
2023-02-03 21:48:16 +00:00
Gregory Pappas
9d44ca32c2 Bug 1627210 - Allow setting persistent permissions for file URIs r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D167888
2023-02-02 11:39:39 +00:00
Gijs Kruitbosch
efef52fc92 Bug 1795255 - autofix duplicate imports in tests under browser/, r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D166179
2023-01-31 11:48:41 +00:00
Gregory Pappas
afbdb98adf Bug 1804264 - Refactor PermissionUI to use JS class r=pbz
Also, esmify.

Differential Revision: https://phabricator.services.mozilla.com/D167074
2023-01-23 21:53:19 +00:00
Noemi Erli
86d59c0b78 Backed out changeset c37b70009a8b (bug 1804264) for causing failures in Geolocation.cpp CLOSED TREE 2023-01-23 19:11:47 +02:00
Gregory Pappas
e8231395b2 Bug 1804264 - Refactor PermissionUI to use JS class r=pbz
Also, esmify.

Differential Revision: https://phabricator.services.mozilla.com/D167074
2023-01-23 16:30:32 +00:00
William Durand
a1f393ad66 Bug 1799009 - Remove gUnifiedExtensions.isEnabled. r=rpl,mconley
Depends on D166923

Differential Revision: https://phabricator.services.mozilla.com/D166934
2023-01-23 10:39:29 +00:00
Gijs Kruitbosch
9946c4fcbb Bug 1810995 - update BrowserTestUtils.loadURI consumers to use loadURIString (automated) - browser - r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D167153
2023-01-19 20:16:42 +00:00
Ben Hearsum
5a30a1e071 Bug 1750581: add installation telemetry tests for msix packaged environments r=nalexander
This is the bare minimum that's reasonable to do -- it gives us a simple test of the happy path. The diff is largely indentation changes.

Differential Revision: https://phabricator.services.mozilla.com/D166687
2023-01-17 01:00:10 +00:00
Ben Hearsum
6c520ec6c8 Bug 1805919: disable tests that are currently failing against MSIX packages. r=jmaher,necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D165754
2023-01-11 14:45:03 +00:00
Mark Banner
8730eec697 Bug 1806359 - Convert telemetry imports to direct ES imports. r=necko-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,janerik,mconley,sgalich,bytesized,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D165002
2022-12-23 12:37:07 +00:00
Danny Colin
980244d030 Bug 1796797 - Convert toolkit/components/contextualidentity JSM modules to ESMs r=baku,webdriver-reviewers,extension-reviewers,settings-reviewers,robwu
Differential Revision: https://phabricator.services.mozilla.com/D159945
2022-12-21 08:14:05 +00:00
Emilio Cobos Álvarez
a14c746228 Bug 1805415 - Use activateItem() rather than click() to activate menuitems. r=Gijs,extension-reviewers,pip-reviewers,search-reviewers
Bug 1805414 will move menu event handling to the DOM.

With that change the current synthetic click behavior of XUL menuitems
breaks. On current central, we rely on nsMenuFrame::HandleEvent not
getting called at all for synthetic clicks, and instead we just fire a
command event synchronously here:

  https://searchfox.org/mozilla-central/rev/a0d4f8f112c5c792ae272bf6ce50763ddd23ffa2/dom/xul/nsXULElement.cpp#1071

After my patch the command event is fired properly (potentially
asynchronously too) by the regular menu activation machinery, which is
preferable.

 * They fire a command event synchronously (even though on some
   platforms like macOS activating a context menu item is async).

 * They use a totally different codepath from what a user does.

 * They don't deal with native menus, etc.

We have a proper API for this (activateItem) which takes a much more
closer codepath to what users do, requires that the menu is shown, etc.
Use that API instead for testing.

As a benefit, tests now do not need to close the context menu manually
when clicking on a menu item (because we trigger the same code path as
users clicking the menu).

Differential Revision: https://phabricator.services.mozilla.com/D164567
2022-12-15 03:11:55 +00:00
Cristian Tuns
b638ccfac9 Backed out 2 changesets (bug 1805415) for causing dt failures on browser_net_telemetry_throttle_changed.js CLOSED TREE
Backed out changeset 5056d7df9f1e (bug 1805415)
Backed out changeset e13513500184 (bug 1805415)
2022-12-14 08:52:21 -05:00
Emilio Cobos Álvarez
be1f057109 Bug 1805415 - Use activateItem() rather than click() to activate menuitems. r=Gijs,extension-reviewers,pip-reviewers,search-reviewers
Bug 1805414 will move menu event handling to the DOM.

With that change the current synthetic click behavior of XUL menuitems
breaks. On current central, we rely on nsMenuFrame::HandleEvent not
getting called at all for synthetic clicks, and instead we just fire a
command event synchronously here:

  https://searchfox.org/mozilla-central/rev/a0d4f8f112c5c792ae272bf6ce50763ddd23ffa2/dom/xul/nsXULElement.cpp#1071

After my patch the command event is fired properly (potentially
asynchronously too) by the regular menu activation machinery, which is
preferable.

 * They fire a command event synchronously (even though on some
   platforms like macOS activating a context menu item is async).

 * They use a totally different codepath from what a user does.

 * They don't deal with native menus, etc.

We have a proper API for this (activateItem) which takes a much more
closer codepath to what users do, requires that the menu is shown, etc.
Use that API instead for testing.

As a benefit, tests now do not need to close the context menu manually
when clicking on a menu item (because we trigger the same code path as
users clicking the menu).

Differential Revision: https://phabricator.services.mozilla.com/D164567
2022-12-14 10:25:17 +00:00
Karl Tomlinson
3598941e99 Bug 1712892 add Page-Info Permissions-tab item to block speaker selection r=pbz
An all-device "Allow" option is not provided because the permission grant
prompt is primarily a device selection, which will (with subsequent patches)
grant persistent permission for the selected device.

Bug 1800287 covers setting a similar block from the selectAudioOutput() prompt.

Differential Revision: https://phabricator.services.mozilla.com/D162232
2022-12-13 09:37:34 +00:00
Gijs Kruitbosch
a3fafabfba Bug 1803800, r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D163950
2022-12-12 18:06:30 +00:00
Gijs Kruitbosch
38d4b2f917 Bug 1803158 - convert session restore consumers to reference the sys.mjs files instead, r=webdriver-reviewers,perftest-reviewers,extension-reviewers,credential-management-reviewers,Standard8,sgalich,whimboo,sparky,willdurand
Differential Revision: https://phabricator.services.mozilla.com/D163350
2022-12-06 16:02:03 +00:00
Mark Banner
b76dbdccd2 Bug 1804037 - Convert PartnerLinkAttribution.jsm to an ES module. r=adw,search-reviewers,daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D163814
2022-12-06 11:34:18 +00:00
Barret Rennie
2578434663 Bug 1541508 - Use Services.env in browser/ r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D160136
2022-11-25 19:09:06 +00:00
Dave Townsend
96ee5dcb2a Bug 1792466: Track browser windows that are in the process of being opened so we don't open multiple windows when trying to open many files/urls quickly. r=Gijs
Ideally we would use the window mediator to just find new browser windows that
are in the process of opening but while we can find the windows they just appear
as about:blank with no way to verify that they are browser windows.

This just takes the straightforward approach of forcing code that opens browser
windows to register them with the BrowserWindowTracker and provides a simple
shared API for opening browser windows that does this.

Differential Revision: https://phabricator.services.mozilla.com/D161076
2022-11-24 08:50:22 +00:00
Barret Rennie
45468e9761 Bug 1772180 - Port osfile.jsm usage to IOUtils in browser/modules/ r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D153697
2022-11-21 23:53:15 +00:00
Kagami Sascha Rosylight
f24fdbc09c Bug 1801346 - Esmify browser/modules/Sanitizer.jsm r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D162425
2022-11-19 01:45:42 +00:00
Norisz Fay
9d98e68336 Backed out 2 changesets (bug 1801346, bug 1801338) for causing bc failures on browser_all_files_referenced.js CLOSED TREE
Backed out changeset 3f76b0740d42 (bug 1801346)
Backed out changeset ff4d1350a057 (bug 1801338)
2022-11-18 23:19:08 +02:00
Kagami Sascha Rosylight
46e0f7d395 Bug 1801346 - Esmify browser/modules/Sanitizer.jsm r=pbz
Depends on D162422

Differential Revision: https://phabricator.services.mozilla.com/D162425
2022-11-18 20:08:47 +00:00
Mark Banner
7dbd48b340 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
Mike Conley
05466b0660 Bug 1800114 - Make BrowserUsageTelemetry work for items in the Unified Extensions panel. data-review=jhirsch, r=jhirsch
Differential Revision: https://phabricator.services.mozilla.com/D162241
2022-11-17 20:39:58 +00:00
Stanca Serban
195f45e30b Backed out 2 changesets (bug 1792466) for causing mch fails on test_mochitest_integration.py. CLOSED TREE
Backed out changeset 36cc09178d76 (bug 1792466)
Backed out changeset 418d1ede2ae3 (bug 1792466)
2022-11-17 14:55:21 +02:00