Commit Graph

4649 Commits

Author SHA1 Message Date
Gijs Kruitbosch
5adc9375da Bug 1973149 - fix form validation message not updating if the form validation popup is already open, a=diannaS
Original Revision: https://phabricator.services.mozilla.com/D254824

Differential Revision: https://phabricator.services.mozilla.com/D258550
2025-07-24 17:53:33 +00:00
Mike Conley
5968da9bd5 Bug 1968779 - Wait for builtin-newtab.js to signal that it has finished onStartup before allowing ActivityStream to be instantiated. a=dmeehan
Original Revision: https://phabricator.services.mozilla.com/D251397

Differential Revision: https://phabricator.services.mozilla.com/D251721
2025-05-29 15:57:52 +00:00
Jeremy Swinarton
1f70d01002 Bug 1961161: Additional metrics for closing tabs within groups r=dwalker,fxview-reviewers,tabbrowser-reviewers,nsharpley
Differential Revision: https://phabricator.services.mozilla.com/D248438
2025-05-22 22:03:01 +00:00
Mike Conley
79a91cfbdd Bug 1965923 - Wait for the newtab readyPromise even after waiting for the addon database. r=willdurand,home-newtab-reviewers,maxx
Differential Revision: https://phabricator.services.mozilla.com/D248980
2025-05-21 17:32:02 +00:00
Mike Conley
8b2f3288bd Bug 1967529 - Move context ID deletion request ping enablement to the rotation callback. r=chutten
This makes it so that we can guarantee that the ping is enabled by the time
we do a context ID rotation.

Differential Revision: https://phabricator.services.mozilla.com/D250278
2025-05-20 19:47:43 +00:00
Mark Banner
0186d5865e Bug 1967446 - Convert uniffi generated Rust modules to use moz-src. r=bdk
Differential Revision: https://phabricator.services.mozilla.com/D250243
2025-05-20 19:00:32 +00:00
Mike Conley
cd84a13b70 Bug 1952316 - Create ContextId module to wrap RustContextId.sys.mjs. r=nanj,markh,chutten
Differential Revision: https://phabricator.services.mozilla.com/D248973
2025-05-16 23:12:56 +00:00
Punam Dahiya
431714c34a Bug 1965278 - Telemetry probe to record ActivityStream construct success r=home-newtab-reviewers,mconley
Differential Revision: https://phabricator.services.mozilla.com/D249120
2025-05-15 20:57:18 +00:00
Stephen Thompson
b7d69dd476 Bug 1963713 - add tab group ungroup metric event r=dao,tabbrowser-reviewers
Record when a user ungroups the tabs of a tab group.

We ungroup an entire group when the user selects the "Ungroup tabs" context menu item on the tab group, but we also do that if the user cancels out of tab group creation context menu. We are particularly interested in understanding when users cancel out of the creation process. This may give us a better indicator about accidental tab group creation, e.g. when the user intended to drag and drop to move a tab but ended up creating a tab group from two tabs.

Differential Revision: https://phabricator.services.mozilla.com/D247633
2025-05-07 15:05:43 +00:00
William Durand
0207bbbb0b Bug 1956490 - Update (add-on) post-install prompt. r=rpl,fluent-reviewers,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D246624
2025-05-06 12:45:14 +00:00
Martin Pitt
82e49344b2 Bug 1958325 - Move TimedPromise to remote/shared/Sync.sys.mjs r=webdriver-reviewers,jdescottes
We will use it in the BiDi module in the next commit.

Drop the unused TimedPromise import from telemetry test altogether.

Differential Revision: https://phabricator.services.mozilla.com/D247041
2025-05-05 23:50:53 +00:00
Stephen Thompson
37cc744292 Bug 1962434 - raise TabGroupCreate when tab group element mounts r=dao,tabbrowser-reviewers
Session restore code doesn't use the standard Tabbrowser.addTabGroup API, so tab groups that enter the DOM via session restore don't raise any TabGroupCreate events. To be consistent, and in order to support addons that need to have an up-to-date view of the tab strip, this patch fires TabGroupCreate on each tab group that enters the DOM.

This patch renames the existing `TabGroupCreate` fired from Tabbrowser.addTabGroup to `TabGroupCreateByUser`. This new event will fire after the tab group enters the DOM (therefore after `TabGroupCreate`) in scenarios where code calls Tabbrowser.addTabGroup with `isUserTriggered = true` to indicate that a user took an explicit action to create this tab group as a new tab group.

Differential Revision: https://phabricator.services.mozilla.com/D246630
2025-04-29 20:08:49 +00:00
Mark Banner
cab8a7bdba Bug 1963014 - Convert DeferredTask to use class syntax. r=firefox-desktop-core-reviewers ,mossop
Differential Revision: https://phabricator.services.mozilla.com/D246907
2025-04-29 19:57:00 +00:00
Stephen Thompson
f8fe0335c0 Bug 1938401 - tab group interaction metrics r=dwalker,sessionstore-reviewers,tabbrowser-reviewers
Records counts of user interactions with tab groups:

- expand a collapsed tab group
- collapse an expanded tab group
- rename a tab group
- change a tab group's color
- save and close a tab group
- delete a tab group
- reopen a deleted tab group
- ungroup a tab group
- move a tab group to a new window
- reopen a saved and closed tab group from the list all tabs menu
- reopen a saved and closed tab group from a URL bar suggestion
- reopen a recently closed tab group from the recently closed tabs menu

Differential Revision: https://phabricator.services.mozilla.com/D246123
2025-04-24 02:20:14 +00:00
Joel Maher
986c1b9cc2 Bug 1959265 - clean and sanitize browser/**/xpcshell.toml files. r=aryx,credential-management-reviewers,search-reviewers,sessionstore-reviewers,places-reviewers,omc-reviewers,migration-reviewers,backup-reviewers,home-newtab-reviewers,urlbar-reviewers,firefox-ai-ml-reviewers,profiles-reviewers,willdurand,tarek,dimi,jteow,sthompson,mconley,pdahiya,mossop
Differential Revision: https://phabricator.services.mozilla.com/D244829
2025-04-17 18:30:44 +00:00
Jeremy Swinarton
39096a611c Bug 1960360: Tab interaction metrics for dragging tabs out of groups r=sthompson,tabbrowser-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D245749
2025-04-17 16:29:29 +00:00
William Durand
6ef72a9e02 Bug 1959534 - T&I checkbox should be checked by default. r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D245443
2025-04-17 07:32:50 +00:00
Stanca Serban
1f2023fad0 Backed out 2 changesets (bug 1959534, bug 1955990) for causing mochitests failures in browser_parsable_css.js. CLOSED TREE
Backed out changeset 079c38a59719 (bug 1959534)
Backed out changeset e14907364ca3 (bug 1955990)
2025-04-16 19:58:33 +03:00
Jeremy Swinarton
4a0e2c38cc Bug 1938405: Tab interaction metrics for tab groups r=dao,sthompson,tabbrowser-reviewers
This patch adds the most basic tab interaction metrics for tab groups.
As discussed in standup, we agreed to move the `remove_` class of
metrics into its own bug due to extra complexity involved in correctly
capturing these events.

One other thing we discussed was what the scope of events should be for
the `close_` class of events, i.e. should we *only* capture an event
when someone clicks the "X" button or closes from the TOM menu, or
should we also account for things like context menus, keyboard
shortcuts, etc.? Originally we agreed to capture _all_ tab close events
and mark any source that was not one of the above mentioned two as
unknown. However, after thinking about this more, I don't believe this
is the right approach. There are many places in the codebase where a tab
is closed but not because a user deliberately did it (e.g. when moving a
tab to a new window — this is actually done by creating a new tab in a
new window and closing the old). We currently don't distinguish between
user-initiated close actions, so it would take some time to find all
these places and exclude them.

I favour an explicit inclusion approach (which is what we are doing
elsewhere). In this patch I added events for:
  - closing a tab from the "X" close button (`close_tabstrip`)
  - closing a tab from the tab context menu (`close_tabstrip`)
  - closing a tab from the TOM (`close_tabmenu`)

There are other places that could potentially be
addressed, so I suggest moving these to a follow-up bug and addressing
them for 139.

Differential Revision: https://phabricator.services.mozilla.com/D244915
2025-04-16 15:01:28 +00:00
William Durand
e252c25099 Bug 1959534 - T&I checkbox should be checked by default. r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D245443
2025-04-16 14:25:29 +00:00
William Durand
9088de1e2d Bug 1954525 - Add support for data collection permissions in browser.permissions.request(). r=rpl,fluent-reviewers,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D244817
2025-04-15 16:22:22 +00:00
Stephen Thompson
8551cfa4aa Bug 1938398 - add saved tab group metrics r=jswinarton,sessionstore-reviewers,tabbrowser-reviewers
- record number of saved tab groups
- record min/max/median/average number of tabs in saved tab groups

This patch adds a new observable topic `sessionstore-saved-tab-groups-changed` to SessionStore. This is emitted when a saved tab group is added or removed from the session. BrowserUsageTelemetry subscribes to that topic and updates saved tab group-related metrics.

BrowserUsageTelemetry is also setting those saved tab group-related metrics on startup. BrowserGlue initializes BrowserUsageTelemetry after the session has been restored/set up, so saved tab group information will be available at that time. This is also important to make sure that we keep this metric correct even if a user doesn't touch their saved tab groups during the course of a session.

Differential Revision: https://phabricator.services.mozilla.com/D245138
2025-04-14 16:01:39 +00:00
Gijs Kruitbosch
e66aa47674 Bug 1958070 - unify scheduling of telemetry-related startup tasks,r=firefox-desktop-core-reviewers ,mossop
This moves a handful of things to run slightly later, but primarily it makes
sure that the scheduling and conditions under which each bit of telemetry is
collected is clear and in one place, instead of spread around.

Differential Revision: https://phabricator.services.mozilla.com/D244421
2025-04-14 14:04:33 +00:00
William Durand
5b936376e1 Bug 1957729 - Show data collection permissions in the update prompt. r=rpl,fluent-reviewers,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D244067
2025-04-13 07:18:14 +00:00
smolnar
54978ec5a2 Backed out changeset 7d28c0076078 (bug 1957729) for causing xpc failures @ test_webextension_install.js CLOSED TREE 2025-04-12 15:28:54 +03:00
William Durand
b7a8934207 Bug 1957729 - Show data collection permissions in the update prompt. r=rpl,fluent-reviewers,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D244067
2025-04-12 11:23:37 +00:00
William Durand
e3a0c89f6d Bug 1955942 - Show data collection permissions in the install prompt. r=rpl,fluent-reviewers,desktop-theme-reviewers,Itiel,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D242828
2025-04-11 19:14:21 +00:00
Stephen Thompson
f2e07044ae Bug 1938424 - metrics event when tabs added to tab group r=dao,jswinarton,tabbrowser-reviewers,extension-reviewers,robwu
When using the tab context menu or drag-dropping tabs to put them into a group, record a metric for the number of tabs added to the group.

Data Science asked us to launch with this metric disabled so that they could control it using server knobs. They expect a high volume of events, so they expect to only enable this metric for some proportion of users.

I converted the existing `TabMove` event derived from `UIEvent` being fired when tabs change their tab index in the tab strip. `UIEvent` doesn't allow for attaching additional context/detail to the event. `TabMove` is now a `CustomEvent` that provides more context about the moved tab and it fires in more cases -- it's possible for the tab index not to change despite the tab having "moved" into/out of a tab group.

This approach would not capture tab movements that occur across multiple frames/event loop iterations.

Differential Revision: https://phabricator.services.mozilla.com/D244616
2025-04-11 13:52:22 +00:00
Emilio Cobos Álvarez
c5bf0c134a Bug 1956758 - Expose whether we use a "native" menubar at runtime. r=stransky,desktop-theme-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D243431
2025-04-04 09:16:33 +00:00
Florian Quèze
6147d3f360 Bug 1956726 - Migrate histograms to use Glean APIs in dom/, r=chutten.
Differential Revision: https://phabricator.services.mozilla.com/D244177
2025-04-03 21:02:54 +00:00
Florian Quèze
9ec8cc29a6 Bug 1956726 - Migrate histograms to use Glean APIs in browser/, r=chutten,sessionstore-reviewers,tabbrowser-reviewers,mconley,nsharpley.
Differential Revision: https://phabricator.services.mozilla.com/D243706
2025-04-03 17:09:35 +00:00
Stephen Thompson
895511dc6f Bug 1938430 - add delete tab group event r=jswinarton,tabbrowser-reviewers,sessionstore-reviewers
Record when users delete an open group from the tab group context menu or delete an open group from a context menu in the all-tabs menu.

This will not record when users close a window or close all of the individual tabs in a tab group, even though those cases have the logical side effect of deleting a tab group.

Differential Revision: https://phabricator.services.mozilla.com/D241884
2025-04-03 14:12:43 +00:00
Jason Jones
06b6a2f1c3 Bug 1689254 - Lazily initialize individual zoom UI components r=mconley,tabbrowser-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D242615
2025-04-01 14:36:49 +00:00
William Durand
1149d4523e Bug 1957576 - Hide PB checkbox in update prompt. r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D243776
2025-04-01 12:09:16 +00:00
Jens Stutte
df8c195659 Bug 1955533 - Use appShutdownConfirmed instead of quitApplicationGranted in AboutHomeStartupCache. r=home-newtab-reviewers,mconley
And add a late init / resurrection check in init().

Differential Revision: https://phabricator.services.mozilla.com/D242493
2025-04-01 09:49:49 +00:00
Mike Conley
6c7ec0012b Bug 1953425 - Fix permafailing browser_UsageTelemetry_interaction.js on artifact builds. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D243518
2025-03-28 20:25:30 +00:00
Jeremy Swinarton
34d9e59418 Bug 1938426: Record telemetry event when saving a tab group r=dwalker,tabbrowser-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D242984
2025-03-27 15:29:19 +00:00
Cosmin Sabou
ced1f3c105 Backed out changeset 68d101b370d8 (bug 1938430) for permafailures on browser_tab_manager_groups.js (Bug 1938697). 2025-03-27 00:21:30 +02:00
Florian Quèze
9b6a9ea411 Bug 1950710 - Migrate histograms to use Glean APIs for FX_CONTENT_CRASH_*, r=chutten.
Differential Revision: https://phabricator.services.mozilla.com/D242790
2025-03-26 15:47:01 +00:00
Stephen Thompson
78282be03c Bug 1938430 - add delete tab group event r=jswinarton,tabbrowser-reviewers,sessionstore-reviewers
Record when users delete an open group from the tab group context menu or delete an open group from a context menu in the all-tabs menu.

This will not record when users close a window or close all of the individual tabs in a tab group, even though those cases have the logical side effect of deleting a tab group.

Differential Revision: https://phabricator.services.mozilla.com/D241884
2025-03-25 21:16:37 +00:00
Gijs Kruitbosch
c9d434d38b Bug 1953575 - add 'copy link' to sharing menu on macOS and offer on non-mac/windows as an alternative to sharing, r=mossop,fluent-reviewers,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D241487
2025-03-20 15:54:31 +00:00
Gijs Kruitbosch
fcab2ecd6a Bug 1953575 - move gShareUtils to its own module, r=firefox-desktop-core-reviewers ,tabbrowser-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D241485
2025-03-20 15:54:31 +00:00
Meg Viar
39c4c0c5a7 Bug 1947277 - Prevent opening new windows when policy notification via the messaging system is in progress r=omc-reviewers,mconley,jprickett
We want to limit users' ability to open new windows while the preonboarding TOS modal is displayed. This patch removes the Windows jump list options when the modal is presented, and returns them once the user clicks the modal's primary CTA.

Differential Revision: https://phabricator.services.mozilla.com/D241237
2025-03-19 19:14:11 +00:00
Jeremy Swinarton
4bec852b57 Bug 1954500: Fix tab group telemetry to be in line with spec r=sthompson,tabbrowser-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D241830
2025-03-18 20:48:15 +00:00
Eric Chen
5a1a45905b Bug 1945000 - modify URILoadingHelper functions to prevent opening new tabs in a taskbar tab window r=mossop,frontend-codestyle-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D240907
2025-03-13 18:40:35 +00:00
Travis Long
7d3108f1a9 Bug 1947604 - Part 1: Glam Experiment temporary metric instrumentation (browser module). r=janerik
Differential Revision: https://phabricator.services.mozilla.com/D241250
2025-03-13 13:17:25 +00:00
Jeremy Swinarton
c828d955e5 Bug 1938397: Record active tab group metrics r=dao,tabbrowser-reviewers,sthompson
Differential Revision: https://phabricator.services.mozilla.com/D240196
2025-03-12 17:46:15 +00:00
Eric Chen
65e3aa0ef3 Bug 1952959 - modify BrowserWindowTracker.getTopWindow to support omitting taskbar tabs r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D240916
2025-03-12 14:07:37 +00:00
Manuel Bucher
9299e47a12 Bug 1952564 - Fix "Cookies and site data" being set for users when migrating from clear-site-data dialog v2 to v3 (unmerge history and formdata) r=emz
Differential Revision: https://phabricator.services.mozilla.com/D241037
2025-03-12 12:17:55 +00:00
Goloman Adrian
3b1ad52d9f Backed out changeset 1c0dde7af6e9 (bug 1952564) for causing bc failures @browser_sanitizeDialog_v2.js. CLOSED TREE 2025-03-12 00:26:20 +02:00