Commit Graph

1344 Commits

Author SHA1 Message Date
Paul Zuehlcke
3ac336c40b 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
76828042bb 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
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
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
Sarah Clements
a4c8117a6f 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
a4e3ec09cc 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
3afab63217 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
7b68de7353 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
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
Robin Steuber
c7f37da43c 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
ebd166f29c 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
132f55d045 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
3c0082e321 Backed out changeset 355940441e3d (bug 1818512) for causing glean related bc failures. CLOSED TREE 2023-02-24 19:58:26 +02:00
pmcmanis
503ed5e6fb 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
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
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
Cristina Horotan
c873a832b7 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
57cc5794f7 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
707b8cfc77 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
541e7eeb80 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
7a3d63a7e6 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
3f62fd0d3c 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
b965c4660a 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
0e505f184a 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
9299cc61f9 Backed out changeset c37b70009a8b (bug 1804264) for causing failures in Geolocation.cpp CLOSED TREE 2023-01-23 19:11:47 +02:00
Gregory Pappas
8972ac3379 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
4b65e0a0cb 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
5a903703c5 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
f47c782289 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
01f485b050 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
df47c60747 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
2bfbc92b65 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
0f61b77b68 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
c9c42bc174 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
9a53f8dea3 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
97cebf0c73 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
bd314534da Bug 1803800, r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D163950
2022-12-12 18:06:30 +00:00
Gijs Kruitbosch
965c6e86fc 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
0cd6f3836f 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
d1a2566d45 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
9081bc48f8 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
2fdaf44760 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
dad1c63030 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
adc45ad8af 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
3d4aa263e7 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
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
Mike Conley
bf8dfecd9c 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
7e58f49e05 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
Mark Banner
5d1820b074 Bug 1799314 - Convert consumers of testing modules to import ES modules direct (browser/). r=Gijs,settings-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D161914
2022-11-17 12:00:30 +00:00