Bug 1964116 - Update infobar schema to reflect that 'text' can be an array r=jprickett,omc-reviewers

Differential Revision: https://phabricator.services.mozilla.com/D247646
This commit is contained in:
Meg Viar
2025-05-02 22:38:39 +00:00
committed by mviar@mozilla.com
parent b61f8c3281
commit d42d78e05a
4 changed files with 192 additions and 4 deletions

View File

@@ -1570,6 +1570,48 @@ const MESSAGES = () => [
},
groups: [],
},
{
id: "UNIVERSAL_INFOBAR_WITH_EMBEDDED_LINKS",
content: {
text: [
"Read the release notes ",
{
raw: "here. ",
href: "https://www.mozilla.org/en-US/firefox/releases/",
},
{
string_id: "cookie-banner-blocker-onboarding-learn-more",
href: "https://mozilla.org/privacy/firefox/?v=product",
},
"!",
],
type: "universal",
dismissable: false,
buttons: [
{
label: "Continue",
action: {
type: "SET_PREF",
data: {
pref: {
name: "universal-infobar-test-pref",
value: true,
},
},
},
primary: true,
accessKey: "C",
},
],
},
trigger: {
id: "defaultBrowserCheck",
},
template: "infobar",
frequency: {
lifetime: 100,
},
},
];
export const PanelTestProvider = {