Commit Graph

104 Commits

Author SHA1 Message Date
Cristian Tuns
b34c0a9879 Backed out changeset 71a0bfc10512 (bug 1803367) for causing xpcshell failures in test_PanelTestProvider.js CLOSED TREE 2022-12-01 23:40:36 -05:00
hanna alemu
9cb780b2e9 Bug 1803367 - [Cleanup] Remove test messages and Strings used for the TCP rollout r=aminomancer,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D163520
2022-12-02 00:25:16 +00:00
Ed Lee
655ad8b48c Bug 1782944 - The marketplace buttons from the “Get Firefox Klar” modal no longer redirect to the Firefox Klar on App Store/Google Play using de locale and region r=pdahiya
Remove image_overrides custom replacing the QR code for FOCUS message and instead use a separate message for de locale that also configures the links correctly like the KLAR message.

Differential Revision: https://phabricator.services.mozilla.com/D157518
2022-09-16 05:26:14 +00:00
Nick Alexander
e0bf9e65d7 Bug 1790444 - Allow to localize action title in Toast Notification actions messages. r=barret
Differential Revision: https://phabricator.services.mozilla.com/D157165
2022-09-14 17:47:24 +00:00
Nick Alexander
b85602e1a7 Bug 1788960 - Part 1: Round trip name for privileged alerts through Firefox restart. r=nrishel
On Windows, when an alert is privileged and `name` is non-empty, round
trip its `name` (as `privilegedName`) through the Windows notification
mechanism, and provide it to the "relaunch" callback.

Differential Revision: https://phabricator.services.mozilla.com/D156636
2022-09-13 02:43:17 +00:00
Ben Hearsum
5f9ef20b27 Bug 1782295: Rename private window separation pref. r=pbz
I don't see any reason to keep this under the same namespace as the other former `privacySegmentation` prefs - but perhaps I'm missing something here.

Depends on D156733

Differential Revision: https://phabricator.services.mozilla.com/D156734
2022-09-08 13:09:11 +00:00
Nick Alexander
665fecfa56 Bug 1787962 - Add launch_url to ToastNotification message surface. r=barret
Everything here is Windows-only for now, since that's the immediate
use case and these implementation details are specific to Windows
native notifications relaunching Firefox when it is not running --
functionality not supported by the other system alert backends at this
time.

This commit adds a `launch_url` parameter to `ToastNotification`.
This should be viewed as the simplest possible "action" that a toast
notification can take when it is clicked, namely navigating to the
given URL.  In the future, we might generalize this to describe more
of the existing actions (like opening settings, snoozing or dismissing
the toast, etc), but for now, this handles my use case.

In addition, this uses `content.tag` as the alert `name`, allowing to
replace existing toast notifications.

Differential Revision: https://phabricator.services.mozilla.com/D155912
2022-09-01 22:48:22 +00:00
Shane Hughes
726a6398de Bug 1780218 - Add reduced motion logo properties to ProtonScreen. r=mviar
Add new properties to ProtonScreen logos: reducedMotionImageURL and
darkModeReducedMotionImageURL. These are intended to be used when
imageURL and/or darkModeImageURL is an animated image such as a GIF. If
reduced motion images are passed, they will be used instead of
imageURL/darkModeImageURL if the user has enabled a reduced motion
preference through their OS or Firefox settings. So, consumers can pass
up to 4 logo URLs to be matched with the following media queries:
1. imageURL: not (prefers-color-scheme: dark)
2. darkModeImageURL: (prefers-color-scheme: dark)
3. reducedMotionImageURL: (prefers-reduced-motion: reduce)
4. darkModeReducedMotionImageURL: (prefers-color-scheme: dark) and (prefers-reduced-motion: reduce)

Differential Revision: https://phabricator.services.mozilla.com/D155037
2022-08-25 20:33:33 +00:00
Sandor Molnar
0099da006e Backed out changeset 4db4c006400a (bug 1780218) for causing browser-chrome failures in browser/components/newtab/test/browser/browser_multistage_spotlight.js 2022-08-24 20:38:27 +03:00
Shane Hughes
3a191bce61 Bug 1780218 - Add reduced motion logo properties to ProtonScreen. r=mviar
Add new properties to ProtonScreen logos: reducedMotionImageURL and
darkModeReducedMotionImageURL. These are intended to be used when
imageURL and/or darkModeImageURL is an animated image such as a GIF. If
reduced motion images are passed, they will be used instead of
imageURL/darkModeImageURL if the user has enabled a reduced motion
preference through their OS or Firefox settings. So, consumers can pass
up to 4 logo URLs to be matched with the following media queries:
1. imageURL: not (prefers-color-scheme: dark)
2. darkModeImageURL: (prefers-color-scheme: dark)
3. reducedMotionImageURL: (prefers-reduced-motion: reduce)
4. darkModeReducedMotionImageURL: (prefers-color-scheme: dark) and (prefers-reduced-motion: reduce)

Differential Revision: https://phabricator.services.mozilla.com/D155037
2022-08-24 13:38:37 +00:00
Meg Viar
b6de2b22f9 Bug 1758506 - Enable configuration of dark mode graphics in AboutWelcome r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D153758
2022-08-11 13:32:48 +00:00
negin
302ae51f52 Bug 1780429 - Display Pin Private Browsing Promo based off Pref r=emcminn,flod
Differential Revision: https://phabricator.services.mozilla.com/D152663
2022-08-09 01:38:28 +00:00
Sandor Molnar
ef5507201a Backed out changeset c64e5592dc67 (bug 1780429) for causing xpc failures in toolkit/modules/tests/xpcshell/test_BrowserUtils.js CLOSED TREE 2022-08-03 23:49:25 +03:00
negin
453537b30f Bug 1780429 - Display Pin Private Browsing Promo based off Pref r=pdahiya,flod
Differential Revision: https://phabricator.services.mozilla.com/D152663
2022-08-03 18:50:56 +00:00
negin
dcfe503354 Bug 1774070 - Add asset needed for about:privatebrowsing pin promo r=emcminn
Differential Revision: https://phabricator.services.mozilla.com/D152107
2022-07-20 16:32:34 +00:00
Iulian Moraru
df431be6b8 Backed out 3 changesets (bug 1780074, bug 1780347) for causing multiple failures. CLOSED TREE
Backed out changeset ee4c4d34816c (bug 1780347)
Backed out changeset a13d3939b98a (bug 1780074)
Backed out changeset 3bc739f7de43 (bug 1780074)
2022-07-20 14:57:48 +03:00
Mark Banner
f399fc3c21 Bug 1780074 - Migrate browser/components/newtab to ESM. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D152113
2022-07-20 10:36:52 +00:00
Nick Alexander
6e9303448d Bug 1775128 - Add toast_notification message template for displaying (native) toast notifications. r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D150073
2022-07-20 02:58:42 +00:00
Punam Dahiya
86153c8869 Bug 1779654- Add SpecialMessageAction BLOCK_MESSAGE that allows to block message r=jprickett
To be used in about:privatebrowsing Pin Private Window promo message. BLOCK_MESSAGE will be used in a multi action call after user clicks 'Pin To taskbar'. This will help in hiding Pin promo message on current and preloaded tabs

Differential Revision: https://phabricator.services.mozilla.com/D151888
2022-07-19 23:11:31 +00:00
Jason Prickett
e31905c4cb Bug 1779048 - Adding PIN and OTHER as promo types in PbNewTab message schema r=pdahiya,barret
Differential Revision: https://phabricator.services.mozilla.com/D151664
2022-07-15 15:52:04 +00:00
Meg Viar
5435e7b1c9 Bug 1776686 - Add progress bar style to step indicator for MR new user onboarding r=emcminn
Differential Revision: https://phabricator.services.mozilla.com/D150399
2022-07-06 20:05:42 +00:00
Barret Rennie
b3e2605f2b Bug 1771073 - Correct FxMS features and keep them up to date with tests r=dmose,pdahiya
The Nimbus Features corresponding to FxMS messaging surfaces are actually
intended to map to FxMS message groups, which can accept *any* FxMS message.
The features have been updated with schemas that accept any FxMS message.

As part of this, all FxMS schemas have been updated with an `$id` so that they
can be bundled into feature schemas and have their internal `$ref`s work.
(Otherwise, a `$ref` would be relative to the top-level schema instead of the
sub-schema).

Schemas for individual message types are no longer exposed as resource:// URIs,
except in tests, as indivual schemas are no longer required at runtime.

Additionally, each FxMS schema has had its `template` field become required and
requires a constant value for that schema (e.g., Spotlight requires a template
value of "spotlight").

A test has been added to ensure that if any of the messaging surfaces schemas
change that the feature schemas are also updated. The feature schemas can be
regenerated via:

```
cd ./browser/components/newtab/content-src/asrouter/schemas
../../../../../../mach make-schemas.py
```

Differential Revision: https://phabricator.services.mozilla.com/D147332
2022-06-29 23:01:37 +00:00
Ed Lee
073938556e Bug 1775758 - Thank you message for TCP early adopters r=pdahiya,fluent-reviewers,flod
Replace early adopter spotlight with thank you cfr.

Differential Revision: https://phabricator.services.mozilla.com/D150186
2022-06-24 23:07:44 +00:00
Tooru Fujisawa
ec12e735ac Bug 1610653 - Part 13: Do not store lexical variable also to global this property in browser/components/newtab. r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D144120
2022-05-30 15:19:40 +00:00
Barret Rennie
f726644db9 Bug 1766430 - Allow additional properties in Spotlight content r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D144722
2022-04-26 16:22:50 +00:00
Ed Lee
d2a49d9482 Bug 1766051 - Replace some title styles with more configuration, e.g., font weight, line height, margin r=mviar
Differential Revision: https://phabricator.services.mozilla.com/D144474
2022-04-22 21:48:11 +00:00
Ed Lee
252724ac00 Bug 1765411 - Allow configuring logo and background images using firefox-settings-attachments r=mviar
Differential Revision: https://phabricator.services.mozilla.com/D144054
2022-04-19 19:39:36 +00:00
Meg Viar
e3ec61e716 Bug 1762471 - For AboutWelcome screens, use screen index rather than setting screen order explicitly in the config r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D142860
2022-04-11 14:53:38 +00:00
Meg Viar
9bf58262eb Bug 1762273 - Adjust thank you screen square-ish sizing with noodles, transitions, auto advance without showing Home r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D142839
2022-04-04 17:27:24 +00:00
Meg Viar
48fd34f067 Bug 1762242 - Conditionally show Private Browsing page Focus promo r=dmose
Differential Revision: https://phabricator.services.mozilla.com/D142551
2022-04-01 12:36:30 +00:00
Meg Viar
c1236a3d66 Bug 1762194 - Update schema in for mobile downloads in Spotlight/AboutWelcome r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D142456
2022-03-31 11:52:22 +00:00
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
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
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
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
Ed Lee
7db8a50a79 Bug 1758187 - Tighten up spotlight for smaller modal and less spacing r=mviar
Differential Revision: https://phabricator.services.mozilla.com/D140399
2022-03-05 00:28:33 +00: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
Ed Lee
5a1e94bcf4 Bug 1757830 - Land strings and assets for ECO Global Rollout H1 2022 r=pdahiya,flod
Convert 100% en-* rollout strings to fluent and expose for testing.

Differential Revision: https://phabricator.services.mozilla.com/D140114
2022-03-03 18:20:58 +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
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
Dan Mosedale
f3325b6750 Bug 1731101 - Polish CFR doorhanger & fix PanelTestProvider to help debug, r=Mardak
Make the width and font sizes match the spec. Clean up button sizing.  Remove lots of
unnecessary font-size overrides.  Fix the margin for large size icons.  Fix
the test PERSONALIZED_CFR_MESSAGE doorhanger and update it with a large
size icon to make it possible to test and debug.

Differential Revision: https://phabricator.services.mozilla.com/D129281
2022-01-19 17:13:57 +00:00
Andrei Oprea
02d7dc18a9 Bug 1740718 - Switch Messaging System to use the NimbusFeatures API r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D131241
2021-11-26 11:34:50 +00:00
Paul Zuehlcke
1621cfe926 Bug 1739619 - Set study prefs for TCP rollout on opt in/out. r=Mardak,anti-tracking-reviewers,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D130466
2021-11-08 13:11:15 +00:00