Commit graph

4154 commits

Author SHA1 Message Date
Stephanie Cunnane
3962ebb39d Bug 1814776 - Implement the SERP abandonment event. r=Standard8,jteow
Differential Revision: https://phabricator.services.mozilla.com/D171884
2023-04-12 19:25:31 +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
Russell Chan
f93cffb785 Bug 1825063 - Add ability to hide the arrow from the feature callout r=fxview-reviewers,omc-reviewers,aminomancer,sclements
Differential Revision: https://phabricator.services.mozilla.com/D174342
2023-04-11 14:01:03 +00:00
Bobby Holley
980aef9cc8 Bug 1808431 — Reword second WebMIDI prompt. r=rpl,flod,desktop-theme-reviewers,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D174814
2023-04-06 17:07:14 +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
Hannah Peuckmann
e0c4f3c719 Bug 1578273 - Reduce calls to the PrincipalsCollector. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D162721
2023-03-31 13:47:39 +00:00
Shane Hughes
78935b829e Bug 1813716 - Encapsulate aboutwelcome container and make its ID more unique. r=omc-reviewers,fxview-reviewers,sfoster,jprickett
Differential Revision: https://phabricator.services.mozilla.com/D172493
2023-03-29 21:51:09 +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
Barret Rennie
7a338578a5 Bug 1772429 - Remove unused content process count / launch delta telemetry r=bdekoz
Differential Revision: https://phabricator.services.mozilla.com/D150212
2023-03-28 08:27:49 +00:00
Shane Hughes
5d946f3d90 Bug 1818829 - Implement Feature Callout theme configuration. r=jprickett,omc-reviewers,fxview-reviewers,sfoster
Add logic to apply theme colors to Feature Callout based on where it's
going to show. We can use in-content CSS properties for Firefox View and
other themed system pages, but not for PDF.js, nor for any callouts we
might show in the browser chrome in the future. For the browser chrome
in general, we can use the lightweight theme properties directly, in the
same way the chrome frontend does. But PDF.js is a special case, since
although it exists in the chrome, it's meant to appear like it's in the
PDF.js viewer. And the PDF.js viewer has its own theme totally
independent of everything else. So this dynamically applies themes from
different sources.

This also fixes the bug where the PDF.js color scheme could mismatch the
PDF.js viewer if the browser theme and system color scheme don't match,
e.g. where system color scheme is light but a dark theme is installed,
or vice versa. For PDF.js specifically, we can use the
-moz-content-prefers-color-scheme media query to follow the color scheme
as it exists in the PDF.js viewer page instead of the color scheme in
the chrome window where the Feature Callout actually exists.

It also adds or modifies some colors that were previously missing or
different from the prototype, fixes the illegibility of buttons in HCM
and forced colors mode, and makes some other minor color changes.

Differential Revision: https://phabricator.services.mozilla.com/D173088
2023-03-28 00:38:42 +00:00
Cosmin Sabou
948fdb0dfb Backed out changeset fecef27ba1fa (bug 1818829) for causing newtab failures on _feature-callout-theme.scss. CLOSED TREE 2023-03-28 02:46:44 +03:00
Shane Hughes
effb48b0f5 Bug 1818829 - Implement Feature Callout theme configuration. r=jprickett,omc-reviewers,fxview-reviewers,sfoster
Add logic to apply theme colors to Feature Callout based on where it's
going to show. We can use in-content CSS properties for Firefox View and
other themed system pages, but not for PDF.js, nor for any callouts we
might show in the browser chrome in the future. For the browser chrome
in general, we can use the lightweight theme properties directly, in the
same way the chrome frontend does. But PDF.js is a special case, since
although it exists in the chrome, it's meant to appear like it's in the
PDF.js viewer. And the PDF.js viewer has its own theme totally
independent of everything else. So this dynamically applies themes from
different sources.

This also fixes the bug where the PDF.js color scheme could mismatch the
PDF.js viewer if the browser theme and system color scheme don't match,
e.g. where system color scheme is light but a dark theme is installed,
or vice versa. For PDF.js specifically, we can use the
-moz-content-prefers-color-scheme media query to follow the color scheme
as it exists in the PDF.js viewer page instead of the color scheme in
the chrome window where the Feature Callout actually exists.

It also adds or modifies some colors that were previously missing or
different from the prototype, fixes the illegibility of buttons in HCM
and forced colors mode, and makes some other minor color changes.

Differential Revision: https://phabricator.services.mozilla.com/D173088
2023-03-27 23:07:45 +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
Russell Chan
b85af4ce11 Bug 1791072 - Add focus to primary button in feature callout r=omc-reviewers,emcminn,Jamie
Differential Revision: https://phabricator.services.mozilla.com/D172725
2023-03-23 16:21:41 +00:00
hanna alemu
36ee12359c Bug 1813809 - Implement safeguard for Feature Callout pref getter function r=omc-reviewers,aminomancer
Differential Revision: https://phabricator.services.mozilla.com/D171925
2023-03-22 16:17:13 +00:00
Punam Dahiya
4ba39af539 Bug 1820566 - Show FxA screen based of user import selection r=jprickett
Differential Revision: https://phabricator.services.mozilla.com/D172593
2023-03-22 05:51:12 +00:00
Stephanie Cunnane
a67994520d 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
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
Francesco Lodolo (:flod)
962126e608 Bug 1822388 - Move brandings.ftl from browser to toolkit, r=eemeli,settings-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,sgalich,Mardak
Differential Revision: https://phabricator.services.mozilla.com/D172643
2023-03-15 17:00:48 +00:00
Luca Greco
c8e682ead9 Bug 1819940 - Remove expired histogram EXTENSION_INSTALL_PROMPT_RESULT. r=willdurand
Depends on D171112

Differential Revision: https://phabricator.services.mozilla.com/D171113
2023-03-15 13:23:39 +00:00
aniket
4a9d4aed87 Bug 1820882 - Convert consumers of toolkit/crashreporter to import ES modules directly r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D172545
2023-03-15 11:14:22 +00:00
Shane Hughes
acf7b88ef4 Bug 1818099 - Feature Callout - more thorough cleanup. r=jprickett
Tear down all listeners when ending a Feature Tour. Also move some of
the references and module getters around to eliminate redundant imports
and define fewer properties on the window, to reduce our footprint on
the chrome window. Finally, make a few nitpick changes and improve the
documentation a bit.

Differential Revision: https://phabricator.services.mozilla.com/D170552
2023-03-14 23:21:03 +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
Gijs Kruitbosch
f1911aef9a Bug 1718082 - track current tab using browserId instead of top browsing context id for network prioritization purposes, r=nika,mconley,necko-reviewers,kershaw,valentin
Differential Revision: https://phabricator.services.mozilla.com/D171646
2023-03-13 17:32:08 +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
Lata
c0d7ebdfd7 Bug 1821897 - convert toolkit/components/remotepagemanager to ES modules. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D172385
2023-03-13 12:26:10 +00:00
Emilio Cobos Álvarez
566f0c7a63 Bug 1821657 - Remove BrowserUIUtils.setToolbarButtonHeightProperty and related code. r=Gijs,desktop-theme-reviewers,dao
I don't see any visible issue on the reload / stop buttons without this.

Differential Revision: https://phabricator.services.mozilla.com/D172238
2023-03-13 11:56:55 +00:00
Robin Steuber
d79afba14b Bug 1815023 - Call function to send attribution provenance telemetry r=nalexander,chutten
Make sure the the attribution telemetry gets sent in the `new-profile` ping and the `installation.first_seen` event.In other cases, send the telemetry when the browser is idle.

Differential Revision: https://phabricator.services.mozilla.com/D171819
2023-03-08 22:25:07 +00:00
Stanca Serban
bbb825ee9e Backed out 3 changesets (bug 1819940) for causing Bug 1820248 and Bug 1820250 as requested by dev. CLOSED TREE
Backed out changeset 1bcff70fd329 (bug 1819940)
Backed out changeset 234b68df6453 (bug 1819940)
Backed out changeset 39c2d3bf84a2 (bug 1819940)
2023-03-03 23:34:59 +02:00
Luca Greco
796a297357 Bug 1819940 - Remove expired histogram EXTENSION_INSTALL_PROMPT_RESULT. r=willdurand
Depends on D171112

Differential Revision: https://phabricator.services.mozilla.com/D171113
2023-03-03 11:45:30 +00:00
Iulian Moraru
64f4d03ec3 Backed out 4 changesets (bug 1817103) for causing bc failures on browser_extension_sideloading.js. CLOSED TREE
Backed out changeset ae6e9421f7bb (bug 1817103)
Backed out changeset 90c134a0e92c (bug 1817103)
Backed out changeset 5bd9691b0306 (bug 1817103)
Backed out changeset 8a733796a149 (bug 1817103)
2023-03-02 15:24:15 +02:00
Luca Greco
c5577086f1 Bug 1817103 - Remove expired histogram EXTENSION_INSTALL_PROMPT_RESULT. r=willdurand
Depends on D171112

Differential Revision: https://phabricator.services.mozilla.com/D171113
2023-03-02 12:09:13 +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
Mike Conley
fbd74c9d19 Bug 953217 - Make middle-clicking in the Tab Manager list close the associated tab. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D171154
2023-03-01 13:52:47 +00:00
Emily McMinn
c060887e8e Bug 1720763 - Remove topsites & region support from about:welcome r=pdahiya,omc-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D170943
2023-02-28 22:46:45 +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
Gijs Kruitbosch
71f1cfb1bc Bug 1817443 - document all the params for openLinkIn, r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D170385
2023-02-23 17:02:44 +00:00
Gijs Kruitbosch
bc4dbf385f Bug 1817443 - split window and current tab parts of openLinkIn out into helpers so it's actually readable, r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D170212
2023-02-23 17:02:44 +00:00
Gijs Kruitbosch
6a3625b491 Bug 1817443 - tidy up parameter handling in openLinkIn, r=mossop
When splitting out the window/tab/current cases, not all of them need all
these individual arguments. But it's hard to reason about which ones are used
where/how when we rename them all the time, and passing them all
individually is more verbose as a result of the renaming, so let's just not do
that at all.

There are a few "odd ones out" - `private` isn't a valid local variable name,
and both it and some of the other items were easier to deal with by just
referencing directly on `params`.

Differential Revision: https://phabricator.services.mozilla.com/D170211
2023-02-23 17:02:44 +00:00
Gijs Kruitbosch
fbd24413c4 Bug 1817443 - remove openUILinkIn entirely and rename fromChrome, r=mossop,extension-reviewers,rpl
'fromChrome' really meant "force tabs to open in the foreground", so let's
rename it accordingly.

This removes the attempt to document arguments for openUILinkIn.
I'll add documentation back on the end of this stack, for openLinkIn, when
various bits are reorganized anyway.

Differential Revision: https://phabricator.services.mozilla.com/D170384
2023-02-23 17:02:43 +00:00
Gijs Kruitbosch
3e5d710873 Bug 1817443 - move url loading method implementations from utilityOverlay.js into their own helper module, r=mossop
openLinkIn would really benefit from being split up a bit, and adding more
globals to the browser window is icky. Also, the story for opening new tabs if
you're not inside a window is a nightmare right now. Moving this code
to a module is a first step to making that story nicer.

I kept wrappers for all the functions I'm moving, and added the `window` as the
first argument. In the future we can update these functions to support being
called without a `window` ref. The one exception is getTopWin, where I updated
the callers in this patch.

I had to tweak the parameter detection of the different arguments supported by
openUILinkIn because forwarding calls means arguments.length is always larger
than 3... but then also removed it in the next commit.

Differential Revision: https://phabricator.services.mozilla.com/D170210
2023-02-23 17:02:43 +00:00
Cristina Horotan
45de4f594f Backed out 5 changesets (bug 1817443) for newtab failure CLOSED TREE
Backed out changeset ba33c510d008 (bug 1817443)
Backed out changeset 07e3bccaeb6d (bug 1817443)
Backed out changeset 2b39dee42948 (bug 1817443)
Backed out changeset a74a52e93af4 (bug 1817443)
Backed out changeset 827855beb033 (bug 1817443)
2023-02-23 17:30:23 +02:00
Gijs Kruitbosch
69ee51f8a4 Bug 1817443 - document all the params for openLinkIn, r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D170385
2023-02-23 14:49:29 +00:00
Gijs Kruitbosch
82c519e9bf Bug 1817443 - split window and current tab parts of openLinkIn out into helpers so it's actually readable, r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D170212
2023-02-23 14:49:29 +00:00
Gijs Kruitbosch
aad3f341bf Bug 1817443 - tidy up parameter handling in openLinkIn, r=mossop
When splitting out the window/tab/current cases, not all of them need all
these individual arguments. But it's hard to reason about which ones are used
where/how when we rename them all the time, and passing them all
individually is more verbose as a result of the renaming, so let's just not do
that at all.

There are a few "odd ones out" - `private` isn't a valid local variable name,
and both it and some of the other items were easier to deal with by just
referencing directly on `params`.

Differential Revision: https://phabricator.services.mozilla.com/D170211
2023-02-23 14:49:28 +00:00
Gijs Kruitbosch
4458f50681 Bug 1817443 - remove openUILinkIn entirely and rename fromChrome, r=mossop,extension-reviewers,rpl
'fromChrome' really meant "force tabs to open in the foreground", so let's
rename it accordingly.

This removes the attempt to document arguments for openUILinkIn.
I'll add documentation back on the end of this stack, for openLinkIn, when
various bits are reorganized anyway.

Depends on D170210

Differential Revision: https://phabricator.services.mozilla.com/D170384
2023-02-23 14:49:28 +00:00