Commit Graph

4431 Commits

Author SHA1 Message Date
aniket
aa471d15f4 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
c15ff9d17a 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
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
Gijs Kruitbosch
431a56be8a 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
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
Lata
86dbcea07e 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
1fcb289cb9 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
4e3121c527 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
488fe6df9c 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
9870cf2f73 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
da06db2037 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
5da163ee8d 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
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
Mike Conley
82cbfb2466 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
a9c88ddfdd 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
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
Gijs Kruitbosch
000df26733 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
fa700e247c 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
bdb0fc1f81 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
69b27ae717 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
a85bb5e778 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
acc6a18e5e 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
3e6f280d3c 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
72be80253a 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
49e14160bf 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
2fbd8150f1 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
Gijs Kruitbosch
36269bcede 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 14:49:27 +00:00
Florian Quèze
aa3f67100a Bug 1818158 - Add an nsINamed implementation on nsITimer callbacks implemented in JS encountered during startup, r=Gijs.
Differential Revision: https://phabricator.services.mozilla.com/D170583
2023-02-22 19:43:42 +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
Andreas Pehrson
3157fca95e Bug 1816436 - For webrtcIndicator use dialog everywhere. r=mconley
GTK will no longer draw a border and titlebar with titlebar=no.

Differential Revision: https://phabricator.services.mozilla.com/D169782
2023-02-16 14:50:23 +00:00
Andreas Pehrson
93388a8398 Bug 1816436 - Don't accidentally make webrtcIndicators dialogs. r=mconley
OpenWindow sets a dialog flag when non-empty args are passed in. However, for
multiple args it checks nsArray and nsIArray. A js-array it does not consider an
array and therefore makes it the only element in the array of parsed args, *and*
sets the dialog flag, more or less equivalent to dialog=yes.

Differential Revision: https://phabricator.services.mozilla.com/D169781
2023-02-16 14:50:22 +00:00
Marian-Vasile Laza
5d1b4404c7 Backed out 2 changesets (bug 1578273, bug 1806620) as req for causing Bug 1816279. CLOSED TREE
Backed out changeset a34115b334e2 (bug 1806620)
Backed out changeset 733f6ba8c1c6 (bug 1578273)
2023-02-16 13:01:02 +02:00
Jason Prickett
cc1b46af45 Bug 1788996 - Add telemetry call when feature callout parent doesn't exist r=mviar
Differential Revision: https://phabricator.services.mozilla.com/D157750
2023-02-15 02:23:54 +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
Gijs Kruitbosch
a396f8a867 Bug 1810141 - fix loadURI callers that already have an nsIURI reference or where creating one is clearly safe, r=mossop,geckoview-reviewers,extension-reviewers,settings-reviewers,mconley,m_kato
There are 3 types of changes in this commit:

- from `loadURI(foo.spec)` to `loadURI(foo)`, as there's already a URI
- from `loadURI("string")` to `loadURI(Services.io.newURI("string"))` as the URL is hardcoded
- one or two where there is perhaps an intermediate variable but the patch
  context should still make it trivial to ascertain the change is correct.

Depends on D168393

Differential Revision: https://phabricator.services.mozilla.com/D168394
2023-02-13 23:50:40 +00:00
Cristina Horotan
f062495d94 Backed out 9 changesets (bug 1810141) for several test failures on a CLOSED TREE
Backed out changeset 8781a0d1254d (bug 1810141)
Backed out changeset 131037295784 (bug 1810141)
Backed out changeset 3852fbe290f4 (bug 1810141)
Backed out changeset 118f131a524a (bug 1810141)
Backed out changeset ab5d76846e10 (bug 1810141)
Backed out changeset dce3aa683445 (bug 1810141)
Backed out changeset 4dc41d90dbb3 (bug 1810141)
Backed out changeset 50b57ba1a061 (bug 1810141)
Backed out changeset 569de94781e4 (bug 1810141)
2023-02-13 16:05:30 +02:00
Gijs Kruitbosch
6122444136 Bug 1810141 - fix loadURI callers that already have an nsIURI reference or where creating one is clearly safe, r=mossop,geckoview-reviewers,extension-reviewers,settings-reviewers,mconley,m_kato
There are 3 types of changes in this commit:

- from `loadURI(foo.spec)` to `loadURI(foo)`, as there's already a URI
- from `loadURI("string")` to `loadURI(Services.io.newURI("string"))` as the URL is hardcoded
- one or two where there is perhaps an intermediate variable but the patch
  context should still make it trivial to ascertain the change is correct.

Depends on D168393

Differential Revision: https://phabricator.services.mozilla.com/D168394
2023-02-13 12:55:24 +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
Emilio Cobos Álvarez
32ac4e1c95 Bug 1814696 - Standardize on crop="start/end" rather than supporting that and left/right. r=Gijs,settings-reviewers,application-update-reviewers,bytesized
Also cleanup a bit the CSS while at it.

Differential Revision: https://phabricator.services.mozilla.com/D168792
2023-02-03 19:20: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
Shane Hughes
7f19e919fb Bug 1805177 - Make Escape key dismiss Feature Callouts. r=mviar
Set up event handlers so that pressing Escape dismisses Feature
Callouts. If an interactive element outside of the Callout is focused,
then the Escape key will not be consumed. Also consolidate all the event
handlers into a single switch statement so we won't need to continue
adding more callback bindings (they were only necessary before
encapsulation was implemented). Also change the names of a couple
formerly pseudo-private methods that we're now referencing externally.

Differential Revision: https://phabricator.services.mozilla.com/D168307
2023-02-01 17:52:12 +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
Florian Quèze
3cce2d99c5 Bug 1813496 - Include the window id in profiler markers added in AsyncTabSwitcher.jsm, r=Gijs.
Differential Revision: https://phabricator.services.mozilla.com/D168237
2023-01-30 16:53:04 +00:00
William Durand
2a16a072a0 Bug 1813275 - Fix extension installation doorhanger position. r=rpl
This was regressed by mistake in Bug 1799009.

Differential Revision: https://phabricator.services.mozilla.com/D168226
2023-01-30 10:37:20 +00:00