Commit graph

76 commits

Author SHA1 Message Date
Mike Conley
da108723df Bug 1715158 - Remove ASRouterUISurface, snippet templates, and associated tests. r=pdahiya
Depends on D193853

Differential Revision: https://phabricator.services.mozilla.com/D193854
2023-12-06 16:15:15 +00:00
Karandeep
1b76f53076 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
Mike Conley
8f2ec8be56 Bug 1863400 - Part 7: Move about:welcome Karma unit tests to browser/components/aboutwelcome folder. r=pdahiya
Depends on D193121

Differential Revision: https://phabricator.services.mozilla.com/D193122
2023-11-28 01:37:38 +00:00
Mike Conley
db89203526 Bug 1860668 - Adjust Istanbul coverage thresholds for Store.jsm and TopSitesFeed.jsm. r=thecount
These are now tested via xpcshell, and their coverage is no longer reported
up through Istanbul.

Depends on D193488

Differential Revision: https://phabricator.services.mozilla.com/D193489
2023-11-27 16:42:20 +00:00
Mike Conley
9fd4e217d0 Bug 1860668 - Remove TopStoriesFeed.test.js. r=thecount
This feed is no longer in use by the main distribution of Firefox, and we're
not doing manual QA on it nor changing it. It's blocking our ability to migrate
to ESMs, so we're removing the test altogether. Someday soon, we can hopefully
remove TopStoriesFeed.jsm itself.

Depends on D193473

Differential Revision: https://phabricator.services.mozilla.com/D193488
2023-11-27 16:42:20 +00:00
Emily McMinn
00664a54e8 Bug 1840517 - Render addons screen & tiles, and allow addons to be intalled from addonspicker component r=desktop-theme-reviewers,omc-reviewers,dao,aminomancer
Differential Revision: https://phabricator.services.mozilla.com/D182128
2023-07-24 18:59:03 +00:00
Narcis Beleuzu
a90bacaa51 Backed out changeset 949ab6d791cd (bug 1840517) for bc failure on browser_aboutwelcome_multistage_mr.js 2023-07-14 01:37:54 +03:00
Emily McMinn
e140f35ce0 Bug 1840517 - Render addons screen & tiles, and allow addons to be intalled from addonspicker component r=desktop-theme-reviewers,omc-reviewers,dao,aminomancer
Differential Revision: https://phabricator.services.mozilla.com/D182128
2023-07-13 21:30:07 +00:00
Katherine Patenio
0c1a6fdd6a 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
8219a5c503 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
b7ca905921 Bug 1829043 - Add actions for AboutWelcome embedded migration wizard. r=pdahiya,mconley
Add some properties to the migration wizard screen JSON to specify what
action to perform when CTAs inside the embedded migration wizard are
clicked. This lets us advance screens when the cancel or finish button
is clicked, and send telemetry when the start button is clicked. In
theory we could perform any special message actions too, but for now we
only need telemetry and screen navigation.

Differential Revision: https://phabricator.services.mozilla.com/D176358
2023-05-08 18:23:47 +00:00
Emily McMinn
960eace06d Bug 1825144 - Replace istanbul-instrumenter-loader with coverage-istanbul-loader in browser/components/newtab r=mhoye,omc-reviewers,barret
`Istanbul-instrumenter-loader` has started to block updates to our other npm packages and is no longer being maintained.

`coverage-istanbul-loader` is pretty seamless but is stricter in regards to coverage for functions; I’ve opted to adjust the coverage requirements down for the affected files and file a followup to improve test coverage later.

Differential Revision: https://phabricator.services.mozilla.com/D175284
2023-05-04 17:36:35 +00:00
Shane Hughes
28f77a18d0 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
Lina Butler
24c46422d8 Bug 1820707 - Record impressions and clicks for organic tiles. r=nanj
Currently, the Glean `newtab` ping and legacy scalars collect
impressions and clicks for sponsored (Pocket and Contile) tiles, but
not organic tiles from Places.

This commit adds:

* Support for recording organic impressions to the
  `TopSiteImpressionWrapper` component.
* Support for recording organic clicks to the `TopSiteLink`
  component.
* Instrumentation for recording organic impressions and clicks,
  separate from sponsored ones, to `TelemetryFeed`.

Differential Revision: https://phabricator.services.mozilla.com/D171830
2023-03-11 05:24:03 +00:00
Mark Banner
7d55311805 Bug 1815224 - Migrate ASRouterChild/Parent.jsm to ES modules. r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D168954
2023-02-06 19:11:47 +00:00
Mark Banner
ac4e3298fb Bug 1808202 - Add babel-plugin-jsm-to-commonjs directly into the tree rather than importing. r=Mardak
This will allow easier development/changes as we proceed to migrate newtab code to ES modules.

The file was imported from 3fefb99f27/plugin.js
with LICENSE added, and formatted/fixed to ESLint standards.

Differential Revision: https://phabricator.services.mozilla.com/D165819
2023-01-05 09:58:29 +00:00
Shane Hughes
9a1101ae29 Bug 1783070 - Use safe navigators for About Welcome window functions. r=mviar
Update About Welcome's invocations of window functions to use optional
chaining to avoid errors when they are undefined. Then, the surfaces
that load the About Welcome bundle will no longer need to define those
references as empty functions.

Differential Revision: https://phabricator.services.mozilla.com/D155011
2022-08-26 21:43:54 +00:00
Jason Prickett
bffaa61b3d Bug 1781378 - Adding final MR onboarding strings r=pdahiya,fluent-reviewers,flod,Mardak
Differential Revision: https://phabricator.services.mozilla.com/D154681
2022-08-19 20:42:45 +00:00
Dan Mosedale
307e28b907 Bug 1612986 - fix about:welcome/newtab/asrouter unit-test code-cov info, r=emcminn
This is a follow-on fix for the bug in question.  It changes the options used for building lcov.info so that the full m-c path gets included, so that https://coverage.moz.tools/ will start reflecting our unit test coverage.

Differential Revision: https://phabricator.services.mozilla.com/D144069
2022-04-20 17:36:35 +00:00
Meg Viar
9480f3270e Bug 1761250 - Enable showing Klar QR to users with de locale in Focus promos using Spotlight in PBM r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D141965
2022-03-29 17:24:11 +00:00
Andrei Oprea
be7dfb461d Bug 1748215 - Upgrade newtab component to use webpack 5 r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D134956
2022-03-28 20:38:37 +00:00
Greg Tatum
7890042033 Bug 1755519 - Add language switching to about:welcome; r=pdahiya,platform-i18n-reviewers,flod,dminor
This patch ended up adding some complexity to about:welcome, as the
language switching needs to eagerly perform fallible asynchronous
actions. Specifically it needs to get the list of addons and
pre-emptively install the langpack, which can take time, and can fail.

This necessitated building a custom React components and custom hooks to
be able to deal with these requirements.

The following command will allow for the testing of this feature.

./mach run \
  --temp-profile \
  --setpref "extensions.getAddons.langpacks.url=https://mock-amo-language-tools.glitch.me/?app=firefox&type=language&appversion=%VERSION%" \
  --setpref "intl.multilingual.aboutWelcome.languageMismatchEnabled=true" \
  --setpref "intl.multilingual.aboutWelcome.systemLocaleOverride=es-ES" `#(optional)` \
  -- --new-tab about:welcome

Differential Revision: https://phabricator.services.mozilla.com/D138831
2022-03-02 15:52:43 +00:00
Iulian Moraru
51fd8df2e2 Backed out 2 changesets (bug 1755519) for causing node test failures (About:welcome bundle out of date). CLOSED TREE
Backed out changeset 67e6561012ad (bug 1755519)
Backed out changeset 873d83eaa24e (bug 1755519)
2022-03-02 17:08:47 +02:00
Greg Tatum
d30370b190 Bug 1755519 - Add language switching to about:welcome; r=pdahiya,platform-i18n-reviewers,flod,dminor
This patch ended up adding some complexity to about:welcome, as the
language switching needs to eagerly perform fallible asynchronous
actions. Specifically it needs to get the list of addons and
pre-emptively install the langpack, which can take time, and can fail.

This necessitated building a custom React components and custom hooks to
be able to deal with these requirements.

The following command will allow for the testing of this feature.

./mach run \
  --temp-profile \
  --setpref "extensions.getAddons.langpacks.url=https://mock-amo-language-tools.glitch.me/?app=firefox&type=language&appversion=%VERSION%" \
  --setpref "intl.multilingual.aboutWelcome.languageMismatchEnabled=true" \
  --setpref "intl.multilingual.aboutWelcome.systemLocaleOverride=es-ES" `#(optional)` \
  -- --new-tab about:welcome

Differential Revision: https://phabricator.services.mozilla.com/D138831
2022-03-02 13:54:17 +00:00
Dan Mosedale
164216f79b Bug 1612986 - add newtab mocha code coverage info, r=andreio,marco
Differential Revision: https://phabricator.services.mozilla.com/D135525
2022-01-31 23:57:21 +00:00
Punam Dahiya
c20f9ebf4f Bug 1728852 - Add monochromatic themes to about:welcome r=Mardak,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D126346
2021-09-30 22:32:58 +00:00
Dão Gottwald
9cbc52bfae Bug 1707700 - Implement getting sponsored top sites from Contile server rather than remote settings. r=nanj
Differential Revision: https://phabricator.services.mozilla.com/D115346
2021-05-20 11:17:57 +00:00
Punam Dahiya
e58cb54afd Bug 1700729 - Implement multistage proton onboarding screens r=emcminn,Mardak
Differential Revision: https://phabricator.services.mozilla.com/D110360
2021-04-02 20:36:05 +00:00
Butkovits Atila
13501a91e1 Backed out changeset 746e470d41f1 (bug 1700729) for causing failures at browser_parsable_css.js. CLOSED TREE 2021-04-02 22:58:13 +03:00
Punam Dahiya
ce5edda499 Bug 1700729 - Implement multistage proton onboarding screens r=emcminn,Mardak
Differential Revision: https://phabricator.services.mozilla.com/D110360
2021-04-02 18:51:31 +00:00
Punam Dahiya
9624bcba17 Bug 1696547 - Refactor MultiStageAboutWelcome to support Proton onboarding r=Mardak,emcminn
Differential Revision: https://phabricator.services.mozilla.com/D107954
2021-03-25 20:28:39 +00:00
Ed Lee
f348f8d342 Bug 1686343 - Ask user to pin Firefox during windows about:welcome onboarding r=pdahiya
Support pin special action and add a new action property to wait for default browser that changes styles and content.

Differential Revision: https://phabricator.services.mozilla.com/D105653
2021-02-19 10:25:54 +00:00
prathiksha
6262988d7c Bug 1671937 - Create a fly-out customization menu component for the newtab page. r=ewright,thecount
Differential Revision: https://phabricator.services.mozilla.com/D95044
2020-11-18 17:31:07 +00:00
Mike Conley
f0bb48e1de Bug 1673109 - Get rid of unused dismissById function on ASRouterUtils. r=andreio
Differential Revision: https://phabricator.services.mozilla.com/D95792
2020-11-06 20:45:52 +00:00
Dão Gottwald
6098d48cca Bug 1675050 - "Sponsored Top Sites" checkbox shouldn't need a restart to show up after enabling the remote settings backend. r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D95753
2020-11-05 01:25:42 +00:00
Dão Gottwald
b0b180ea44 Bug 1672144 - Sponsored top sites: Make "Our sponsors & your privacy" a direct link to SUMO. r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D94098
2020-10-22 16:37:43 +00:00
Bernard Igiri
24f9294ade Bug 1614465 - Replacing ASRouter calls to MessageChannel with JSWindowActors to eliminate ASRouterFeed r=k88hudson
Patch by Bernard Igiri <bigiri@mozilla.com>

Replacing async events with async method calls that use JSWindowActors to communicate with the parent process.
This will simplify these calls, bring the relevant code into local scope, and eliminate the need for MessageChannel.
Eliminating the MessageChannel dependency allows us to move the ASRouter initialization out of ASRouterFeed and into
JSWindowActors.

Differential Revision: https://phabricator.services.mozilla.com/D71796
2020-10-21 20:04:13 +00:00
Csoregi Natalia
bae8e05348 Bug 1671196 - Fixing newtab failure. r=fix 2020-10-15 17:26:10 +03:00
Dão Gottwald
5a77fbdb57 Bug 1668496 - Support sponsored_position attribute. r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D93224
2020-10-13 13:35:40 +00:00
Narcis Beleuzu
dd9a84879a Backed out 2 changesets (bug 1668496, bug 1670916) for causing bc failures on browser_topsites_section.js CLOSED TREE
Backed out changeset 4c2c0252027c (bug 1670916)
Backed out changeset a45a9a67003b (bug 1668496)
2020-10-13 16:12:02 +03:00
Dão Gottwald
db6f319f29 Bug 1668496 - Support sponsored_position attribute. r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D93224
2020-10-13 12:26:18 +00:00
Dan Mosedale
7c620f2a94 Bug 1654122 - Support displaying theme selection state, r=pdahiya
Differential Revision: https://phabricator.services.mozilla.com/D90946
2020-09-24 19:09:34 +00:00
Dão Gottwald
d18553c963 Bug 1664402 - Support migrating browser.topsites.useRemoteSetting true to false and back to true. r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D89891
2020-09-11 10:52:31 +00:00
Dão Gottwald
eb7356b0b9 Bug 1661008 - Implement pinning of search shortcut tiles from remote settings. r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D89146
2020-09-03 15:39:35 +00:00
Dão Gottwald
cade61bc40 Bug 1660966 - Implement basic region filtering for remote top site defaults. r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D88120
2020-08-25 09:27:18 +00:00
Dão Gottwald
ef05580c13 Bug 1653937 - Read top site defaults from remote settings. r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D88041
2020-08-24 20:57:53 +00:00
Dão Gottwald
b393a28c08 Bug 1657083 - Make sendTopSiteAttributionRequest optional. r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D87599
2020-08-20 14:46:11 +00:00
Dão Gottwald
cfa8eb9c8b Bug 1653932 - Add pref for top site defaults from remote settings. r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D84532
2020-07-24 16:41:04 +00:00
Dão Gottwald
a360110c6e Bug 1642606 - Support date tag in search top site override URL. r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D78277
2020-06-05 10:46:21 +00:00
Dão Gottwald
c8f4e4b5d4 Bug 1637218 - Allow for registering overridden search top site usage with an extra request. r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D76831
2020-06-03 10:42:47 +00:00