Commit Graph

163 Commits

Author SHA1 Message Date
Dave Townsend
35c104ff31 Bug 1864896: Autofix unused function arguments (browser/components/newtab). r=omc-reviewers,aminomancer,thecount
Differential Revision: https://phabricator.services.mozilla.com/D202950
2024-03-03 09:09:08 +00:00
Natalia Csoregi
66cb0e397f Backed out 2 changesets (bug 1864896) for causing node failures. CLOSED TREE
Backed out changeset adba0b352699 (bug 1864896)
Backed out changeset 153146ce081c (bug 1864896)
2024-03-01 18:25:05 +02:00
Dave Townsend
20b5d8c60f Bug 1864896: Autofix unused function arguments (browser/components/newtab). r=omc-reviewers,aminomancer,thecount
Differential Revision: https://phabricator.services.mozilla.com/D202950
2024-03-01 15:20:17 +00:00
Iulian Moraru
d067b329de Backed out 5 changesets (bug 1864896) for causing newtab failures related to bundles. CLOSED TREE
Backed out changeset 2cd1cc279f99 (bug 1864896)
Backed out changeset e48d6928bdcb (bug 1864896)
Backed out changeset 1abbcaf91693 (bug 1864896)
Backed out changeset 06a05e5257d5 (bug 1864896)
Backed out changeset b1955ae3e9e2 (bug 1864896)
2024-03-01 12:58:03 +02:00
Dave Townsend
d5beece355 Bug 1864896: Autofix unused function arguments (browser/components/newtab). r=omc-reviewers,aminomancer,thecount
Differential Revision: https://phabricator.services.mozilla.com/D202950
2024-03-01 10:10:08 +00:00
Mike Conley
523d9e2457 Bug 1868838 - Move messaging schemas into browser/components/asrouter. r=pdahiya,barret
Differential Revision: https://phabricator.services.mozilla.com/D198955
2024-01-29 18:52:27 +00:00
Gregory Pappas
8e0ae3e9ae Bug 1872922 - Replace last few uses of XPCOMUtils.defineLazyGetter with ChromeUtils.defineLazyGetter and add linter error for XPCOMUtils.defineLazyGetter r=extension-reviewers,credential-management-reviewers,devtools-reviewers,Standard8,arai,robwu,Gijs,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D198677
2024-01-17 15:54:00 +00:00
Glenda Leonard
e2b8610407 Bug 1862493 - add more telemetry to tiles RS-761 r=thecount,mconley
Differential Revision: https://phabricator.services.mozilla.com/D197103
2024-01-10 21:32:46 +00:00
Chris H-C
444d051000 Bug 1862670 - Submit "spoc" ping with shim for pocket impressions|saves|clicks r=thecount
Differential Revision: https://phabricator.services.mozilla.com/D192702
2023-11-30 16:13:51 +00:00
Karandeep
0a62881f9d Bug 1864496 - Add telemetry to determine how many users disabled the address bar search handoff pref. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D194124
2023-11-28 19:30:20 +00:00
Chris H-C
25f99594cd Bug 1857324 - Instrument topsites and sponsored topsites pref changes r=nanj
See Also DO-1293

We instrument solely the underlying preferences being changed.

Depends on D190856

Differential Revision: https://phabricator.services.mozilla.com/D190857
2023-10-26 07:20:42 +00:00
Chris H-C
4fa2bba2e4 Bug 1857324 - Instrument 'dismiss' actions for newtab topsites r=nanj
See Also DENG-1363

Depends on D190855

Differential Revision: https://phabricator.services.mozilla.com/D190856
2023-10-26 07:20:41 +00:00
Chris H-C
ed4d986946 Bug 1857324 - Instrument the 'about our sponsors' link r=nanj
See also: DENG-1364

Differential Revision: https://phabricator.services.mozilla.com/D190855
2023-10-26 07:20:41 +00:00
Mark Banner
3fc24054c0 Bug 1774888 - Remove XPCOMUtils.defineLazyModuleGetter. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D189722
2023-10-02 09:48:01 +00:00
Eemeli Aro
9bef605113 Bug 1834305 - Remove intl/locale/PluralForm.sys.mjs as unused. r=nordzilla,devtools-reviewers
This library is now completely unused in m-c.

Differential Revision: https://phabricator.services.mozilla.com/D185699
2023-08-10 20:39:20 +00:00
Tif Tran
44e44e642f Bug 1840311 - Record SOV (Share of Voice) partner assignment r=nanj
Differential Revision: https://phabricator.services.mozilla.com/D181954
2023-06-28 07:34:30 +00:00
Chris H-C
eca601ffd9 Bug 1836283 - Reinstrument contextual services PingCentre pings in parallel with Glean r=perry.mcmanis,nanj,wstuckey
Covers topsites and quicksuggest impressions, clicks, and blocks.

Removes unused and not-to-be-used topsites-in-urlbar pingcentre instrumentation
rather than reinstrumenting it.

Differential Revision: https://phabricator.services.mozilla.com/D179856
2023-06-26 19:02:46 +00:00
Perry McManis
5487344d67 Bug 1825863 - Add a Glean version of onboarding and ASRouter telemetry r=dmose,perry.mcmanis,omc-reviewers
We consolidate all the "messaging-system"-namespace pings into a single Glean
ping to provide a holistic view of all events in that system.

Differential Revision: https://phabricator.services.mozilla.com/D178477
2023-05-24 02:39:34 +00:00
Mark Banner
91fde42f7b Bug 1826062 - Automatic fixes for Prettier 2.0.5 upgrade. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,owlish
Differential Revision: https://phabricator.services.mozilla.com/D177025
2023-05-20 12:26:49 +00:00
Tif Tran
eca0af9a97 Bug 1828234 - Collect blocked advertisers in Glean New Tab metrics r=lina
Differential Revision: https://phabricator.services.mozilla.com/D176499
2023-04-27 22:37:10 +00:00
Dão Gottwald
995349acbb Bug 1828440 - BuiltInThemes cleanup: remove obsolete findActiveColorwayCollection, isColorwayFromCurrentCollection, isMonochromaticTheme, monochromaticSortIndices. r=amy,willdurand
Differential Revision: https://phabricator.services.mozilla.com/D175647
2023-04-19 11:05:28 +00:00
Lina Butler
0ea22d21eb Bug 1821556 - Collect the tile position and number of tile rows in newtab pings. r=nanj
This commit:

* Adds a `position` key to the `topsites.{impression, click}` events.
  This position is zero-based, to align with `pocket_position`.
* Refactors the impression stats actions in `TelemetryFeed` to receive
  the zero-based tile position, and adds one to the structured
  ingestion payloads and scalar values.
* Adds a new Glean metric, `topsites.rows`, to record the number of
  rows shown on the New Tab page.

Differential Revision: https://phabricator.services.mozilla.com/D172292
2023-03-31 05:21:20 +00:00
Lina Butler
bc74f5532e Bug 1825157 - Unify the fake pref implementations used in tests. r=nanj
Before this commit, the New Tab tests had two fake pref
implementations:

* The `Services.prefs` mock in `TEST_GLOBAL`, which stubbed out a
  handful of `nsIPrefBranch` methods.
* `FakensIPrefBranch`, which mocked a different handful of
  `nsIPrefBranch` methods.

This commit:

* Consolidates the two fake implementations into the mock
  `FakensIPrefBranch` class.
* Adds a `FakensIPrefService` subclass of `FakensIPrefBranch`, with
  additional methods specific to `nsIPrefService`.
* Replaces `FakensIPrefBranch.prototype.prefs` with a new
  `FAKE_GLOBAL_PREFS` map. The new approach still lets tests change and
  clear prefs on existing instances of `FakensIPrefBranch` and its
  subclasses, but makes the shared state explicit. The old approach of
  mutating `FakensIPrefBranch.prototype.prefs` relied on a subtle quirk
  of `prefs` being shared by all instances of `FakensIPrefBranch` and
  its subclasses, and broke when setting `prefs` to a new, empty
  object.
* Moves `{observe, ignore}Branch` into `FakePrefs`, since these are
  not part of the `nsIPrefBranch` interface.

Differential Revision: https://phabricator.services.mozilla.com/D173897
2023-03-30 05:15:26 +00:00
Travis Long
e5e92088ef Bug 1822726 - Remove expiring metric used for Server Knobs Validation. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D173474
2023-03-27 13:46:32 +00:00
Barret Rennie
0604905647 Bug 1818738 - Make the feature update event API more ergonomic r=aminomancer,settings-reviewers,search-reviewers,Gijs,daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D172035
2023-03-16 22:20:14 +00:00
Jason Prickett
3e83df4f60 Bug 1790424 - Adding functionality for onboarding and about welcome messages to be filtered with targeting r=omc-reviewers,barret,pdahiya
Differential Revision: https://phabricator.services.mozilla.com/D170719
2023-03-03 00:26:26 +00:00
DJ
e25b4a85ea Bug 1816688 - independently configure CBH doorhanger retargeting delay via Nimbus. r=omc-reviewers,mviar,aminomancer
Differential Revision: https://phabricator.services.mozilla.com/D170249
2023-02-23 20:07:27 +00:00
Shane Hughes
095143b123 Bug 1808441 - Add Cookie Banner Promo on PB new tab. r=omc-reviewers,flod,pdahiya,emcminn
Differential Revision: https://phabricator.services.mozilla.com/D165924
2023-02-18 01:14:11 +00:00
Travis Long
e04f138b53 Bug 1811561 - Add a test Glean event to validate the Server Knobs functionality. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D168578
2023-02-02 19:48:18 +00:00
scott
9d50f3d711 Bug 1804533 - Save to Pocket and Pocket newtab pass rollout metadata to Pocket links r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D164125
2022-12-08 17:39:36 +00:00
Mark Banner
5dad366a3e Bug 1803911 - Automatically replace Cu.reportError with console.error (newtab), and manually fix tests. r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D163770
2022-12-08 16:21:28 +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
Shane Hughes
f15f8a12bf Bug 1802333 - Idle trigger debug logging. r=barret
To debug the idle trigger's interaction with OS sleep state, it's
helpful to know whether sleep/wake notifications were sent. This allows
most of the idle trigger activity to be logged to the console, if the
pref `messaging-system.log` is set to `debug`. The new logging will also
be used to debug the behavior reported in bug 1801301.

Differential Revision: https://phabricator.services.mozilla.com/D163010
2022-11-25 10:42:25 +00:00
Mark Banner
9ecec1531f Bug 1800319 - Change newtab code so that the ESLint rule no-console is an error, except for console.error calls. r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D161942
2022-11-13 21:02:41 +00:00
Shane Hughes
9ee16ecf2d Bug 1786336 - Resolve some idle trigger issues. r=mviar
Differential Revision: https://phabricator.services.mozilla.com/D161237
2022-11-09 22:37:44 +00:00
Shane Hughes
3a879faacf Bug 1786336 - Add idle message surface trigger. r=mviar
This patch adds a new trigger that will be used to deliver messages to
the user without disrupting their work. The trigger will only fire when
the user starts interacting with the browser (e.g. moving the mouse or
pressing a key) after a given period of time has passed without any user
activity or audio playback. In the initial messages planned for this
trigger, the necessary period of idle time will be 20 minutes. The
trigger fires after a 2 second delay to ensure the user does not miss
the message. Putting the computer to sleep or waking it up from sleep
will reset the idle "timer" to avoid messages being delivered as soon as
the computer is woken up from sleep.

Differential Revision: https://phabricator.services.mozilla.com/D160454
2022-10-29 07:08:59 +00:00
Punam Dahiya
f332fca018 Bug 1789192 - MR Onboarding Mobile Cross promo QRCode for MozillaOnline partner repack r=jprickett,hectorz
Differential Revision: https://phabricator.services.mozilla.com/D157000
2022-09-13 18:35:01 +00:00
Iulian Moraru
dcf1f3817e Backed out changeset b81337fc9ed1 (bug 1789192) for causing multiple bc failures. CLOSED TREE 2022-09-13 19:44:44 +03:00
Punam Dahiya
31a79a1338 Bug 1789192 - MR Onboarding Mobile Cross promo QRCode for MozillaOnline partner repack r=jprickett,hectorz
Patch updates QR code svg as confirmed in https://bugzilla.mozilla.org/show_bug.cgi?id=1789192#c3

Differential Revision: https://phabricator.services.mozilla.com/D157000
2022-09-13 15:52:27 +00:00
Chris H-C
03ec4b9f67 Bug 1786612 - Instrument Pocket interactions with events r=thecount
Differential Revision: https://phabricator.services.mozilla.com/D155756
2022-09-07 17:28:36 +00:00
Chris H-C
589fc52a3e Bug 1786612 - Add topsites and top stories prefs to 'newtab' ping r=nanj,thecount
Also include pocket logged in status, which (because it's not a pref) is
sampled over time.

Also also, include the search field pref.

Differential Revision: https://phabricator.services.mozilla.com/D155755
2022-09-07 17:28:35 +00:00
Mark Banner
0263c56d1f Bug 1780825 - Allow defineESModuleGetters to be handed in newtab unit tests. r=daleharvey
Depends on D152253

Differential Revision: https://phabricator.services.mozilla.com/D152535
2022-08-02 15:07:48 +00:00
smolnar
a8099b19fc Bug 1780445 - Fix ES lint failure. a=lint-fix 2022-07-21 06:03:41 +03:00
Barret Rennie
f1d3a85827 Bug 1780445 - Fix Remote Settings server URL lookup in ASRouter and Remote Images r=pdahiya,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D152306
2022-07-21 02:28:59 +00:00
Barret Rennie
8fbde5b119 Bug 1775187 - Refactor out localizableText and localizedText from FxMS schemas r=nalexander,dmose
Several kinds of FxMS messages support a common pattern of taking either a
string or an object containing a string ID, allowing for both raw strings and
translated string IDs to be used in messages. This patch refactors that pattern
out into a common definition (localizedText and localizableText) in a common
schema which other schemas can then reference.

Our schema bundling script has been updated to bundle these definitions from
the common schema as top-level definitions (and subsequently rewrite the
references from FxMSCOmmon.schema.json to the generated schema) because Nimbus
and Experimenter only support a single schema file per feature.

To ensure compatability with Experimenter, all our in-tree messages have been
extracted into a test corpus that is validated with the Experimenter JSON
Schema validator. A future patch in this series will clean this up so we don't
need to have separate copies of messages in the tree.

We are now also validating all messages from the CFRMessageProvider with our
in-tree JSON Schema validator that Nimbus uses. The OnboardingMessageProvider
and PanelTestProvider tests have also been updated so that all three are using
the same testing infrastructure.

Differential Revision: https://phabricator.services.mozilla.com/D150704
2022-07-21 00:47:44 +00:00
Barret Rennie
d49d4f6987 Bug 1743570 - Remove FeatureAPI.isEnabled r=emcminn
Differential Revision: https://phabricator.services.mozilla.com/D150693
2022-07-12 10:04:38 +00:00
Tooru Fujisawa
e61dea0b36 Bug 1778336 - Support ChromeUtils.importESModule in newtab karma test. r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D151143
2022-07-07 09:33:17 +00:00
Chris H-C
b16d177a8c Bug 1766887 - Decorate handoff searches with newtab session ids r=nanj,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D146225
2022-06-17 20:21:50 +00:00
Chris H-C
dbda5399ca Bug 1766887 - Gate 'newtab' ping submission behind Nimbus feature variable r=TravisLong
Differential Revision: https://phabricator.services.mozilla.com/D146847
2022-06-17 20:21:50 +00:00
Chris H-C
69a594ce29 Bug 1766887 - Introduce a minimal "newtab" ping for holistic data collection r=nanj,Dexter
It doesn't actually collect anything new, but by collecting it all in one place
we should make analysis easier.

Can be shut off by setting `browser.newtabpage.ping.enabled` to `false`.

Differential Revision: https://phabricator.services.mozilla.com/D146224
2022-06-17 20:21:49 +00:00