Commit Graph

1104 Commits

Author SHA1 Message Date
Meg Viar
1db2a0f1c1 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
Meg Viar
d58d6f81ba Bug 1761249 - The outline of the marketplace buttons from the “Get Firefox Focus” spotlight modal is not fully visible when the Dark theme is enable r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D142270
2022-03-29 14:48:52 +00:00
Barret Rennie
af694af439 Bug 1752665 - Make the Spotlight schema less strict with respect to images r=emcminn
The previous changes to the Spotlight schema made one of the logo.imageURL or
logo.imageId required. However, this is not backwards compatible with the older
Firefoxen, so we have to support the case where `logo` is present (e.g., for
`image.size`) without either of those properties, but `logoImageURL` *is*
present.

Differential Revision: https://phabricator.services.mozilla.com/D140761
2022-03-25 00:01:21 +00:00
Barret Rennie
4db190e51d Bug 1752665 - Rewrite PanelTestProvider test as xpcshell test with new json schema validator r=andreio
Differential Revision: https://phabricator.services.mozilla.com/D138927
2022-03-25 00:01:20 +00:00
Barret Rennie
570a0f103e Bug 1757809 - Provide a JsonSchema module that supports additional Mozilla-specific formats r=mossop,emcminn
In migrating from Ajv 6 to @cfworker/json-schema, some schemas will no longer
validate due to the `format: uri` annotation only being a suggestion for
strings in Ajv 6. Our URLs that use %PLACEHOLDERS% (e.g., `%LOCALE%`) will not
pass validation as URIs due to being interpreted as invalid URL encoding.

Here we add a facade in front of @cfworker/json-schema which defines a
`moz-url-format` format for strings, which runs them through
Services.urlFormatter.formatURL before attempting to validate them as URIs. We
don't simply find-replace all %PLACEHOLDERS% because the URL formatter service
only supports certain variables and will leave undefined variables as-is,
leading to a validation error (which is what we want).

Differential Revision: https://phabricator.services.mozilla.com/D138926
2022-03-25 00:01:18 +00:00
Meg Viar
9e6c3b20df Bug 1758028 - Implement PBM modal content as per finalized design r=pdahiya,preferences-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D140739
2022-03-23 14:03:18 +00:00
smolnar
a741da5d02 Backed out changeset f6577528fc15 (bug 1758028) for causing xpc failures in xpcshell/test_BrowserUtils.js CLOSED TREE 2022-03-22 21:54:22 +02:00
Meg Viar
e6c366cc05 Bug 1758028 - Implement PBM modal content as per finalized design r=pdahiya,preferences-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D140739
2022-03-22 19:19:02 +00:00
Emilio Cobos Álvarez
811ecde56b Bug 1759925 - Allow aria-description as a globally safe l10n attribute. r=Gijs
We had precedents for this and it is safe to allow it everywhere.

Depends on D141276

Differential Revision: https://phabricator.services.mozilla.com/D141277
2022-03-16 23:03:49 +00:00
Marian-Vasile Laza
7cd6c33676 Backed out 3 changesets (bug 1757809, bug 1755599) for causing bc failures on browser_all_files_referenced.js. CLOSED TREE
Backed out changeset 63ae4c9485e9 (bug 1757809)
Backed out changeset 2297b7533b97 (bug 1755599)
Backed out changeset e021f9e97c76 (bug 1755599)
2022-03-10 12:08:13 -08:00
Barret Rennie
7fc61d9b42 Bug 1757809 - Provide a JsonSchema module that supports additional Mozilla-specific formats r=mossop,emcminn
In migrating from Ajv 6 to @cfworker/json-schema, some schemas will no longer
validate due to the `format: uri` annotation only being a suggestion for
strings in Ajv 6. Our URLs that use %PLACEHOLDERS% (e.g., `%LOCALE%`) will not
pass validation as URIs due to being interpreted as invalid URL encoding.

Here we add a facade in front of @cfworker/json-schema which defines a
`moz-url-format` format for strings, which runs them through
Services.urlFormatter.formatURL before attempting to validate them as URIs. We
don't simply find-replace all %PLACEHOLDERS% because the URL formatter service
only supports certain variables and will leave undefined variables as-is,
leading to a validation error (which is what we want).

Differential Revision: https://phabricator.services.mozilla.com/D138926
2022-03-10 18:53:32 +00:00
Meg Viar
1c10bc409e Bug 1758340 - RTAMO onboarding page does not fetch the extension/theme name on Nightly r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D140504
2022-03-08 03:03:43 +00:00
Meg Viar
a818b7875f Bug 1741923 - Add/update template to show large photograph/background image r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D139064
2022-03-05 02:19:58 +00:00
Iulian Moraru
b63a919c5a Backed out changeset 1f27d80f3ad1 (bug 1741923) for causing multiple mochitest failures. CLOSED TREE 2022-03-05 03:59:31 +02:00
Meg Viar
deddf67e0c Bug 1741923 - Add/update template to show large photograph/background image r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D139064
2022-03-05 00:28:30 +00:00
Csoregi Natalia
eb26fa9098 Backed out changeset b9007c68e8ff (bug 1741923) for causing multiple failures e.g.browser_parsable_css.js. CLOSED TREE 2022-03-05 00:42:05 +02:00
Meg Viar
9aec3475b1 Bug 1741923 - Add/update template to show large photograph/background image r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D139064
2022-03-04 21:46:16 +00:00
Barret Rennie
d9ec0379f0 Bug 1757714 - Update ASRouter docs link, again r=emcminn
Differential Revision: https://phabricator.services.mozilla.com/D140230
2022-03-04 02:46:28 +00:00
Butkovits Atila
8f2e80d86d Backed out changeset de7f88e226a1 (bug 1757714) for causing node failures. CLOSED TREE 2022-03-04 04:37:02 +02:00
Barret Rennie
9d15b4aa33 Bug 1757714 - Update ASRouter docs link, again r=emcminn
Differential Revision: https://phabricator.services.mozilla.com/D140230
2022-03-04 01:55:45 +00:00
Greg Tatum
80525762c6 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
5d89a24073 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
efdc727635 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
Meg Viar
f917000764 Bug 1754069 - Convert autoClose configuration to support spotlight and about:welcome r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D138573
2022-02-28 15:14:27 +00:00
Punam Dahiya
e63e57f8d2 Bug 1754089 - Update Messaging System source docs r=andreio
Differential Revision: https://phabricator.services.mozilla.com/D138074
2022-02-22 16:40:04 +00:00
Ed Lee
44942cfc9a Bug 1752935 - Reuse welcome bundle from Spotlight for multistage template r=pdahiya,andreio
Detect about:welcome template usage and move modal shadow styling to content. Remove 93-backwards-compatible logoImageURL and update schema. Only basic functionality for initial testing.

Differential Revision: https://phabricator.services.mozilla.com/D138866
2022-02-16 19:05:22 +00:00
Meg Viar
9d3226ede4 Bug 1752937 - Allow configuring each screen position for corner vs center styling r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D137879
2022-02-15 21:40:26 +00:00
Meg Viar
e512afe4c0 Bug 1755538 Update ReturnToAMO Component to use backdrop r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D138844
2022-02-15 21:17:48 +00:00
Meg Viar
bccd410d4b Bug 1752936 - Allow setting more types of backdrops behind screens r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D138045
2022-02-15 15:03:03 +00:00
Meg Viar
396af297fc Bug 1752829 - Make decorative noodles and logo style configurable in AboutWelcome r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D137452
2022-02-14 21:39:59 +00:00
Cosmin Sabou
5a63cfb671 Backed out changeset c75cbdfcdde8 (bug 1752829) for causing bcc failures on browser_aboutwelcome_rtamo.js. 2022-02-13 19:14:25 +02:00
Meg Viar
0b723cf950 Bug 1752829 - Make decorative noodles and logo style configurable in AboutWelcome r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D137452
2022-02-13 16:18:19 +00:00
Emily McMinn
63ae0f6a1e Bug 1751424 - Add theme previews to RTAMO r=pdahiya
Differential Revision: https://phabricator.services.mozilla.com/D137688
2022-02-09 21:39:22 +00:00
Sylvestre Ledru
aa55fd2be8 Bug 1753413 - fx doc: Remove whitespaces, trailing lines & windows CR r=andi,perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D137741
2022-02-03 18:34:58 +00:00
Barret Rennie
2762bdaa49 Bug 1752183 - Support remote images in Spotlight r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D137210
2022-02-03 18:16:05 +00:00
Iulian Moraru
43e96c0e53 Backed out 2 changesets (bug 1752183) for causing multiple failures. CLOSED TREE
Backed out changeset b85880f20aa5 (bug 1752183)
Backed out changeset c4bd523a463a (bug 1752183)
2022-02-03 07:33:40 +02:00
Barret Rennie
c36b2cd877 Bug 1752183 - Support remote images in Spotlight r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D137210
2022-02-03 04:39:42 +00:00
Scott
2d3b92c513 Bug 1750622 - Pocket newtab hybrid layout for compact cards on certain breakpoints. r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D136201
2022-01-27 16:40:48 +00:00
Bernard Igiri
fdb9f84a83 Bug 1749583 - Colorway Closet Placeholder r=dao
Added placeholder for Colorway Closet.
It is enabled by toggling the pref `browser.newtabpage.activity-stream.colorway-closet.enabled`

Differential Revision: https://phabricator.services.mozilla.com/D136761
2022-01-25 21:34:02 +00:00
Andrei Oprea
f64147a52f Bug 1746598 - Route MS messages to PB newtab r=dmose,extension-reviewers,rpl
Differential Revision: https://phabricator.services.mozilla.com/D134157
2022-01-25 13:02:30 +00:00
Sandor Molnar
3e20f2d917 Backed out changeset ea22083f5525 (bug 1746598) for causing bc failures in browser/components/extensions/test/browser/browser_ext_menus_incognito.js CLOSED TREE 2022-01-24 10:53:24 +02:00
Andrei Oprea
96287321db Bug 1746598 - Route MS messages to PB newtab r=dmose
Differential Revision: https://phabricator.services.mozilla.com/D134157
2022-01-24 07:49:45 +00:00
Scott
c78f0a7eb5 Bug 1750607 - Pocket newtab card background and compact configs. r=gvn,andreio
Differential Revision: https://phabricator.services.mozilla.com/D136160
2022-01-21 21:52:42 +00:00
Barret Rennie
d366543c53 Bug 1746113 - Update ASRouterAdmin docs link r=emcminn
Differential Revision: https://phabricator.services.mozilla.com/D135523
2022-01-14 20:17:16 +00:00
Emily McMinn
5e3abb1aac Bug 1726426 - Update the RTAMO page to render through MultistageAboutWelcome and match Proton style r=pdahiya,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D133679
2022-01-13 17:05:02 +00:00
Sandor Molnar
2f48913b4d Backed out changeset f147eb9f3c26 (bug 1746113) for causing node-new tab unit test failure. CLOSED TREE 2022-01-12 00:37:17 +02:00
Barret Rennie
c0498f62d3 Bug 1746113 - Update ASRouterAdmin docs link r=emcminn
Differential Revision: https://phabricator.services.mozilla.com/D135523
2022-01-11 21:49:49 +00:00
Scott
b6fa96d839 Bug 1747969 - Fixing Pocket newtab descriptions for remote layouts. r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D134859
2021-12-30 18:52:59 +00:00
Scott
d9c349b757 Bug 1746649 - Pocket newtab some new layout prefs r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D134219
2021-12-28 22:16:45 +00:00
Gijs Kruitbosch
1e142f4319 Bug 1719939 - remove browser.proton.enabled from new tab code, r=mviar
Differential Revision: https://phabricator.services.mozilla.com/D134308
2021-12-22 21:41:40 +00:00