Commit Graph

148 Commits

Author SHA1 Message Date
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
Cristian Tuns
b967cfd2bb Backed out 8 changesets (bug 1766887) for causing mochitest failures on browser_newtab_ping.js CLOSED TREE
Backed out changeset a6b01c1e8823 (bug 1766887)
Backed out changeset 1ef2dd2b779e (bug 1766887)
Backed out changeset f248baea014a (bug 1766887)
Backed out changeset 3f3066906403 (bug 1766887)
Backed out changeset 3ad63b0fa7b8 (bug 1766887)
Backed out changeset 06a0a6ef295a (bug 1766887)
Backed out changeset abe659b175cb (bug 1766887)
Backed out changeset f90e9e70f6d4 (bug 1766887)
2022-06-17 10:49:00 -04:00
Chris H-C
86f5e18f2f Bug 1766887 - Decorate handoff searches with newtab session ids r=nanj,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D146225
2022-06-17 13:47:05 +00:00
Chris H-C
522825441b Bug 1766887 - Gate 'newtab' ping submission behind Nimbus feature variable r=TravisLong
Differential Revision: https://phabricator.services.mozilla.com/D146847
2022-06-17 13:47:04 +00:00
Chris H-C
3e21f3e2ba 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 13:47:04 +00:00
Dan Mosedale
b2502351c9 Bug 1753915 - Add logging to ASRouter, r=barret
Differential Revision: https://phabricator.services.mozilla.com/D137968
2022-06-10 14:16:24 +00:00
Tooru Fujisawa
a535834d86 Bug 1771930 - Part 3: Add a workaround to support plain object in lazy getter API. r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D147798
2022-06-01 21:31:20 +00:00
Tooru Fujisawa
d1bd5e4401 Bug 1771463 - Do not export lazy getter "fxAccounts" from services/fxaccounts/FxAccounts.jsm. r=markh,preferences-reviewers,Mardak
Instead of exporting lazy getter, export a function that returns the FxAccount
singleton, lazily creating on the first call, and define the lazy getter on the
consumer side that calls the function.

Differential Revision: https://phabricator.services.mozilla.com/D147634
2022-05-31 14:09:10 +00:00
Scott
207f8eb326 Bug 1746066 - Fixing Pocket newtab Nimbus update event removal r=andreio,gvn
Differential Revision: https://phabricator.services.mozilla.com/D133784
2021-12-16 16:38:37 +00:00
Scott
7808e0a62e Bug 1624481 - Pocket newtab personalization hash checker for remote settings attachments r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D133292
2021-12-09 18:46:25 +00:00
Scott
cc3020fbe8 Bug 1724984 - Remove OS.File from PersonalityProviderWorkerClass r=barret,emcminn
Differential Revision: https://phabricator.services.mozilla.com/D131427
2021-11-23 21:56:31 +00:00
Emily McMinn
327b48eac3 Bug 1724985 - Remove OS.File from RemoteL10n.jsm and associated tests r=andreio
Differential Revision: https://phabricator.services.mozilla.com/D129871
2021-11-09 16:10:27 +00:00
Cristian Tuns
91a8623198 Backed out changeset 781b6946a619 (bug 1724985) for causing mochitest failures. CLOSED TREE 2021-11-03 12:20:35 -04:00
Emily McMinn
d657f0e201 Bug 1724985 - Remove OS.File from RemoteL10n.jsm and associated tests r=andreio
Differential Revision: https://phabricator.services.mozilla.com/D129871
2021-11-03 14:27:15 +00:00
Mark Banner
f321dfd6b1 Bug 1729460 - Change users of defineLazyServiceGetter(s) to use Services.* where appropriate. r=mossop,webdriver-reviewers,extension-reviewers,whimboo,robwu
Differential Revision: https://phabricator.services.mozilla.com/D124838
2021-09-10 12:09:49 +00:00
Nan Jiang
a19595d894 Bug 1721525 - Replace Cu.reportError with log warnings for Contile r=mythmon
Differential Revision: https://phabricator.services.mozilla.com/D122285
2021-08-10 20:07:24 +00:00