Commit Graph

365 Commits

Author SHA1 Message Date
Yoen Zhang
09ab9d0425 Bug 1845388 - Update Experimenter Link to Messaging surfaces used in source doc. r=omc-reviewers,aminomancer
Differential Revision: https://phabricator.services.mozilla.com/D184624
2023-07-31 19:50:17 +00:00
Yoen Zhang
bd6f90155a Bug 1831211 - Add more detailed documentation for FxMS templates, overall message structure r=pdahiya,omc-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D178895
2023-07-18 19:30:07 +00:00
Nick Alexander
bd3b0949b0 Bug 1805514 - Part 1: Support launch_action in Windows native toast notifications. r=barret
`launch_action` is both top-level (when the toast is clicked) and
per-action (when a button is clicked).

Differential Revision: https://phabricator.services.mozilla.com/D182312
2023-07-15 02:34:05 +00:00
Cristina Horotan
326373b54e Backed out changeset c22d4f75d4fe (bug 1831211) for causing generate failure 2023-07-08 01:36:33 +03:00
Yoen Zhang
165b403e56 Bug 1831211 - Add more detailed documentation for FxMS templates, overall message structure r=pdahiya,omc-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D178895
2023-07-07 22:07:18 +00:00
Mike Conley
e8864ee16f Bug 1838926 - Add ASRouter targeting for whether or not the user has ever used the migration wizard to import passwords from a CSV file. r=emcminn
Differential Revision: https://phabricator.services.mozilla.com/D181287
2023-06-23 14:14:26 +00:00
Iulian Moraru
7725c61610 Backed out changeset 11d0cb525f1d (bug 1835212) for causing bc failures on browser_feature_callout.js. CLOSED TREE 2023-06-13 00:34:23 +03:00
hanna alemu
6890b0f07f Bug 1835212 - Create method to set custom time limits for feature-callout to close after N seconds r=omc-reviewers,negin
Differential Revision: https://phabricator.services.mozilla.com/D179839
2023-06-12 20:24:08 +00:00
Cristina Horotan
00b07ba633 Backed out changeset a79a0225de72 (bug 1835212) for causing bc failures at browser_feature_callout.js on a CLOSED TREE 2023-06-09 01:31:13 +03:00
hanna alemu
bdfd7be5bc Bug 1835212 - Create method to set custom time limits for feature-callout to close after N seconds r=omc-reviewers,negin
Differential Revision: https://phabricator.services.mozilla.com/D179839
2023-06-08 19:33:29 +00:00
Shane Hughes
075092d296 Bug 1832715 - Allow multistage spotlight OPEN_URL actions to include UTM params. r=omc-reviewers,negin
Differential Revision: https://phabricator.services.mozilla.com/D177848
2023-06-08 19:20:07 +00:00
Katherine Patenio
a408bb9d46 Bug 1834115 - migrate newtab/lib JSMs that do not import modules to ESMs r=Standard8,fxview-reviewers,omc-reviewers,aminomancer,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D178568
2023-05-30 22:44:42 +00:00
Mark Banner
0666077666 Bug 1826062 - Automatic fixes for upgrading Prettier to 2.8.8. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,calu
Differential Revision: https://phabricator.services.mozilla.com/D177027
2023-05-20 12:26:53 +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
Shane Hughes
d779f112c6 Bug 1818249 - Add a message property to allow CFRs in Private Browsing. r=omc-reviewers,pdahiya
Also, because the data collection policy now allows Category 1 and 2
data collection in Private Browsing Mode, these CFRs will record
telemetry in PBM according to the existing CFR policy, which allows
Cat1-3 data for pre-release builds and experiments, and Cat1-2 data for
release builds. PBM windows will be treated in the same way that release
builds treat normal windows. When not enrolled in a CFR experiment, the
PBM window will only collect Cat1-2 data. When enrolled in a CFR
experiment, the PBM window may collect Cat3 data. This patch also adds a
new option to PopupNotifications that allows its usual interaction
probes to be recorded in PBM. That means, outside of an experiment,
pings from a PBM window will look just like pings from a release build
non-PBM window. And inside an experiment, pings from a PBM window will
look just like pings from a non-PBM window in any build. This ensures
that the PBM pings do not intrinsically confer any identifying
information, since their privateness cannot be known with certainty.

Differential Revision: https://phabricator.services.mozilla.com/D174200
2023-05-18 16:26:49 +00:00
Barret Rennie
935952aa19 Bug 1832827 - Improve Experimenter error messages for FxMS schemas r=aminomancer
Previously, when a `TemplatedMessage` was missing a required field, the error
on Experimenter would be that the message's template field was expected to be
`multi`. This happens because the `oneOf` doesn't match `TemplatedMessage` due
to required fields missing, so it infers it must be a `MultiMessage`.

Now instead of using a `oneOf` to match against either a `MultiMessage` or a
`TemplatedMessage`, we use an `if`/`then`/`else`, predicated by the `template`
key so that if `template != "multi"`, the errors will come form the
`TemplatedMessage` definition.

Differential Revision: https://phabricator.services.mozilla.com/D177914
2023-05-12 15:20:47 +00:00
Mark Banner
0fadbc1ec4 Bug 1829618 - Enable Prettier on json files (automatic fixes). r=perftest-reviewers,webcompat-reviewers,extension-reviewers,andi,desktop-theme-reviewers,pip-reviewers,devtools-reviewers,sync-reviewers,mossop,denschub,dao,sparky,robwu,geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D176336
2023-05-09 16:14:51 +00:00
Shane Hughes
268b8b6c64 Bug 1619842 - Migrate from sass-lint to stylelint. r=omc-reviewers,thecount,emcminn
Fix a bug where VS Code's eslint integration does not work for the
newtab project because of a conflict caused by sass-lint's eslint
dependency. Switching over to stylelint eliminates that dependency and
generally modernizes our SCSS linting. stylelint doesn't have a 1 to 1
replacement for every sass-lint rule, so a few rules have been changed.

Differential Revision: https://phabricator.services.mozilla.com/D173605
2023-05-09 15:37:15 +00:00
hanna alemu
2ac6135d00 Bug 1816511 - Allow messaging about:welcome users by screen usage r=omc-reviewers,pdahiya,jprickett,aminomancer
Differential Revision: https://phabricator.services.mozilla.com/D172836
2023-05-02 13:53:07 +00:00
Mike Conley
b0e076cb45 Bug 1828117 - Add a convenient ASRouterTargeting attribute for clients installed via guided device migration from SUMO. r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D176185
2023-04-24 15:38:41 +00:00
Mike Conley
711b1c4d9a Bug 1820640 - Add a card to about:welcome that embeds the Migration Wizard if configured to do so. r=pdahiya,omc-reviewers
This adds a card to the about:welcome defaults that embeds the new Migration Wizard
if  browser.migrate.content-modal.about-welcome-behavior is set to "embedded".

This requires adding a useEmbeddedMigrationWizard targeting attribute to
ASRouterTargeting.

Differential Revision: https://phabricator.services.mozilla.com/D175945
2023-04-21 03:18:12 +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
hanna alemu
306343134d Bug 1825658 - Modify "addon_recommendation" CFR template to support Facebook container experiment r=jprickett,barret
Differential Revision: https://phabricator.services.mozilla.com/D174844
2023-04-14 15:36:39 +00:00
William Durand
ad508fc1aa Bug 1828074 - Add new targeting attribute for RTAMO in ASRouter. r=omc-reviewers,aminomancer
Differential Revision: https://phabricator.services.mozilla.com/D175463
2023-04-14 14:11:36 +00:00
Noemi Erli
100160f533 Backed out changeset e054b7d5f984 (bug 1825658) for causing newtab failures CLOSED TREE 2023-04-13 18:36:23 +03:00
hanna alemu
f004fa7c10 Bug 1825658 - Modify "addon_recommendation" CFR template to support Facebook container experiment r=jprickett,barret
Differential Revision: https://phabricator.services.mozilla.com/D174844
2023-04-13 15:03:33 +00:00
Mike Conley
f0a43e9d62 Bug 1794617 - Add ASRouter targeting for whether or not the user has ever migrated bookmarks, history, or passwords. r=dmose,omc-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D173579
2023-04-03 20:47:12 +00:00
ogiorgis
0c5d75ef6a Bug 1621950 - fix some myst ref warnings r=firefox-source-docs-reviewers,devtools-reviewers,sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D173843
2023-03-30 08:01:22 +00:00
Shane Hughes
3301924585 Bug 1822893 - Add formAutofill trigger and targeting attributes creditCardsSaved and addressesSaved. r=omc-reviewers,jprickett
Differential Revision: https://phabricator.services.mozilla.com/D172842
2023-03-29 07:07:42 +00:00
Shane Hughes
6595d7a3b6 Bug 1786582 - Update fluent and fluent-react in newtab. r=barret
Differential Revision: https://phabricator.services.mozilla.com/D172720
2023-03-22 04:15:39 +00:00
Barret Rennie
921eb4cb30 Bug 1821243 - Do not require content and template if id is present in message schema r=omc-reviewers,aminomancer
The schema still imposes the following restrictions:

- Having "template" present makes "content" and "id" required.
- Having "content" present makes "template" and "id" required.

Template and content are dependent on eachother because we do not know how to
interpret content without a template and we a template with no content to
interpret is useless.

If we have a template and content, then we also need an ID for the message
because we cannot reference the message content except by its ID.

Differential Revision: https://phabricator.services.mozilla.com/D172458
2023-03-16 20:27:01 +00:00
Cristian Tuns
837b5ca4e5 Backed out 2 changesets (bug 1821243) for causing xpcshell failures on test_RemoteSettingsExperimentLoader_updateRecipes.js CLOSED TREE
Backed out changeset 39df97ca8253 (bug 1821243)
Backed out changeset bbb8006a0784 (bug 1821243)
2023-03-16 15:16:58 -04:00
Barret Rennie
3d403fb8c2 Bug 1821243 - Do not require content and template if id is present in message schema r=omc-reviewers,aminomancer
The schema still imposes the following restrictions:

- Having "template" present makes "content" and "id" required.
- Having "content" present makes "template" and "id" required.

Template and content are dependent on eachother because we do not know how to
interpret content without a template and we a template with no content to
interpret is useless.

If we have a template and content, then we also need an ID for the message
because we cannot reference the message content except by its ID.

Differential Revision: https://phabricator.services.mozilla.com/D172458
2023-03-16 17:50:22 +00:00
Marian-Vasile Laza
46bfe444e2 Backed out 2 changesets (bug 1821243) for xpcshell failures on test_reach_experiments.js. CLOSED TREE
Backed out changeset 44a860152c39 (bug 1821243)
Backed out changeset e34a680accf0 (bug 1821243)
2023-03-16 03:42:46 +02:00
Barret Rennie
d8878a91e4 Bug 1821243 - Do not require content and template if id is present in message schema r=omc-reviewers,aminomancer
The schema still imposes the following restrictions:

- Having "template" present makes "content" and "id" required.
- Having "content" present makes "template" and "id" required.

Template and content are dependent on eachother because we do not know how to
interpret content without a template and we a template with no content to
interpret is useless.

If we have a template and content, then we also need an ID for the message
because we cannot reference the message content except by its ID.

Differential Revision: https://phabricator.services.mozilla.com/D172458
2023-03-16 00:23:56 +00:00
Barret Rennie
975ae348dd Bug 1805511 - Add targeting for default PDF and HTML handlers r=nalexander,omc-reviewers,emcminn
This also fixes a bug in ASRouter devtools that prevented evaluation of
expressions containing nested promises. Objects containing promises are now
correctly serialized to the ASRouter devtools and expressions evaluate
correctly.

Differential Revision: https://phabricator.services.mozilla.com/D169408
2023-03-06 20:10:55 +00:00
Sandor Molnar
ffa80a3221 Backed out 4 changesets (bug 1805511, bug 1805509) for causing bc and xpc failures. CLOSED TREE
Backed out changeset 31a8dcad0d88 (bug 1805509)
Backed out changeset 3dd1735b85fa (bug 1805509)
Backed out changeset 87641a6eee2b (bug 1805509)
Backed out changeset e5bd4ad558f2 (bug 1805511)
2023-03-02 23:26:06 +02:00
Barret Rennie
716e5614da Bug 1805511 - Add targeting for default PDF and HTML handlers r=nalexander,omc-reviewers,emcminn
This also fixes a bug in ASRouter devtools that prevented evaluation of
expressions containing nested promises. Objects containing promises are now
correctly serialized to the ASRouter devtools and expressions evaluate
correctly.

Differential Revision: https://phabricator.services.mozilla.com/D169408
2023-03-02 20:33:21 +00:00
Shane Hughes
ff74b1e79b Bug 1804480 - Support multi-message treatment branches in desktop experiments. r=omc-reviewers,barret
Differential Revision: https://phabricator.services.mozilla.com/D169540
2023-02-23 21:39:15 +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
Barret Rennie
69f143c160 Bug 1816636 - Correctly validate reach experiment messages in make-schemas.py r=omc-reviewers,emcminn
Differential Revision: https://phabricator.services.mozilla.com/D169822
2023-02-14 16:22:59 +00:00
Barret Rennie
17b69c4607 Bug 1813597 - Support reach experiments in the FxMS schemas r=omc-reviewers,emcminn
Differential Revision: https://phabricator.services.mozilla.com/D168322
2023-02-13 18:42:36 +00:00
hanna alemu
33657f726d Bug 1768730 - [Cleanup] Remove legacy spotlight messaging surface r=Mardak,fluent-reviewers,desktop-theme-reviewers,barret
Differential Revision: https://phabricator.services.mozilla.com/D165254
2023-02-06 22:36:28 +00:00
Marian-Vasile Laza
046569807c Backed out changeset 7931cc7f97d9 (bug 1768730) for causing bc failures on browser_browserGlue_upgradeDialog_trigger.js and browser_aboutwelcome_upgrade_multistage_mr.js. CLOSED TREE 2023-01-20 00:17:14 +02:00
hanna alemu
0a3886816d Bug 1768730 - [Cleanup] Remove legacy spotlight messaging surface r=Mardak,fluent-reviewers,barret
Differential Revision: https://phabricator.services.mozilla.com/D165254
2023-01-19 20:07:16 +00:00
Artur Iunusov
0c3dca4f67 Bug 1671548 - Remove fission experiment support code and prefs, r=smaug,
r=tritter

- backed out changesets: 1660057, 1667426, 1674214,
1669749, 1685801, 1667381
- fission.experiment support removed everywhere, including telemetry

Differential Revision: https://phabricator.services.mozilla.com/D165169
2023-01-17 10:05:36 +00:00
Butkovits Atila
c78e806a19 Backed out changeset 2dcea9f0eb7e (bug 1768730) for causing python failures. CLOSED TREE 2023-01-10 10:13:31 +02:00
hanna alemu
78b16c7240 Bug 1768730 - [Cleanup] Remove legacy spotlight messaging surface r=Mardak,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D165254
2023-01-10 07:15:56 +00:00
Mark Banner
00abf03e4f Bug 1808202 - Convert newtab DeDupe.jsm, ActorConstants.jsm and Actions.jsm to ES modules and update imports. r=Mardak
Depends on D165820

Differential Revision: https://phabricator.services.mozilla.com/D165821
2023-01-05 09:58:30 +00:00
Sylvestre Ledru
d2b8ba7f8a Bug 1750450 - Fix 'Non-consecutive header level increase' DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D165655
2022-12-31 16:33:30 +00:00