Backed out changeset 7afc6bac547c (bug 1616280) for browser-chrome failures at dom/l10n/DOMLocalization.cpp on a CLOSED TREE

This commit is contained in:
Coroiu Cristina 2020-04-17 19:55:25 +03:00
parent b4207bcf20
commit a5e2e552ba
7 changed files with 211 additions and 247 deletions

View File

@ -1,68 +0,0 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
// This is loaded into all XUL windows. Wrap in a block to prevent
// leaking to window scope.
{
const { RemoteL10n } = ChromeUtils.import(
"resource://activity-stream/lib/RemoteL10n.jsm"
);
class MozTextParagraph extends HTMLElement {
constructor() {
super();
this._content = null;
}
get fluentAttributeValues() {
const attributes = {};
for (let name of this.getAttributeNames()) {
if (name.startsWith("fluent-variable-")) {
attributes[name.replace(/^fluent-variable-/, "")] = this.getAttribute(
name
);
}
}
return attributes;
}
render() {
if (this.getAttribute("fluent-remote-id") && this._content) {
RemoteL10n.l10n.setAttributes(
this._content,
this.getAttribute("fluent-remote-id"),
this.fluentAttributeValues
);
}
}
static get observedAttributes() {
return ["fluent-remote-id"];
}
attributeChangedCallback(name, oldValue, newValue) {
this.render();
}
connectedCallback() {
if (this.shadowRoot) {
this.render();
return;
}
const shadowRoot = this.attachShadow({ mode: "open" });
this._content = document.createElement("span");
shadowRoot.appendChild(this._content);
this.render();
RemoteL10n.l10n.connectRoot(shadowRoot);
RemoteL10n.l10n.translateRoots();
}
}
customElements.define("remote-text", MozTextParagraph);
}

View File

@ -26,7 +26,6 @@ browser.jar:
res/activity-stream/data/content/tippytop/ (./data/content/tippytop/*)
res/activity-stream/data/content/activity-stream.bundle.js (./data/content/activity-stream.bundle.js)
res/activity-stream/data/content/newtab-render.js (./data/content/newtab-render.js)
res/activity-stream/data/custom-elements/ (./components/CustomElements/*)
#ifdef XP_MACOSX
res/activity-stream/css/activity-stream.css (./css/activity-stream-mac.css)
#elifdef XP_WIN

View File

@ -10,6 +10,7 @@ XPCOMUtils.defineLazyModuleGetters(this, {
Services: "resource://gre/modules/Services.jsm",
EveryWindow: "resource:///modules/EveryWindow.jsm",
PrivateBrowsingUtils: "resource://gre/modules/PrivateBrowsingUtils.jsm",
RemoteL10n: "resource://activity-stream/lib/RemoteL10n.jsm",
});
XPCOMUtils.defineLazyServiceGetter(
this,
@ -107,15 +108,6 @@ class _ToolbarPanelHub {
win.MozXULElement.insertFTLIfNeeded("browser/branding/sync-brand.ftl");
}
maybeLoadCustomElement(win) {
if (!win.customElements.get("remote-text")) {
Services.scriptloader.loadSubScript(
"resource://activity-stream/data/custom-elements/paragraph.js",
win
);
}
}
// Turns on the Appmenu (hamburger menu) button for all open windows and future windows.
async enableAppmenuButton() {
if ((await this.messages).length) {
@ -178,7 +170,6 @@ class _ToolbarPanelHub {
// Render what's new messages into the panel.
async renderMessages(win, doc, containerId, options = {}) {
this.maybeLoadCustomElement(win);
const messages =
(options.force && options.messages) ||
(await this.messages).sort(this._sortWhatsNewMessages);
@ -187,13 +178,17 @@ class _ToolbarPanelHub {
if (messages) {
// Targeting attribute state might have changed making new messages
// available and old messages invalid, we need to refresh
this.removeMessages(win, containerId);
for (const prevMessageEl of container.querySelectorAll(
".whatsNew-message"
)) {
container.removeChild(prevMessageEl);
}
let previousDate = 0;
// Get and store any variable part of the message content
this.state.contentArguments = await this._contentArguments();
for (let message of messages) {
container.appendChild(
this._createMessageElements(win, doc, message, previousDate)
await this._createMessageElements(win, doc, message, previousDate)
);
previousDate = message.content.published_date;
}
@ -272,15 +267,15 @@ class _ToolbarPanelHub {
});
}
_createMessageElements(win, doc, message, previousDate) {
async _createMessageElements(win, doc, message, previousDate) {
const { content } = message;
const messageEl = this._createElement(doc, "div");
const messageEl = await this._createElement(doc, "div");
messageEl.classList.add("whatsNew-message");
// Only render date if it is different from the one rendered before.
if (content.published_date !== previousDate) {
messageEl.appendChild(
this._createElement(doc, "p", {
await this._createElement(doc, "p", {
classList: "whatsNew-message-date",
content: new Date(content.published_date).toLocaleDateString(
"default",
@ -294,28 +289,24 @@ class _ToolbarPanelHub {
);
}
const wrapperEl = this._createElement(doc, "button");
const wrapperEl = await this._createElement(doc, "button");
wrapperEl.doCommand = () => this._dispatchUserAction(win, message);
wrapperEl.classList.add("whatsNew-message-body");
messageEl.appendChild(wrapperEl);
if (content.icon_url) {
wrapperEl.classList.add("has-icon");
const iconEl = this._createElement(doc, "img");
const iconEl = await this._createElement(doc, "img");
iconEl.src = content.icon_url;
iconEl.classList.add("whatsNew-message-icon");
if (content.icon_alt && content.icon_alt.string_id) {
doc.l10n.setAttributes(iconEl, content.icon_alt.string_id);
} else {
iconEl.setAttribute("alt", content.icon_alt);
}
await this._setTextAttribute(iconEl, "alt", content.icon_alt);
wrapperEl.appendChild(iconEl);
}
wrapperEl.appendChild(this._createMessageContent(win, doc, content));
wrapperEl.appendChild(await this._createMessageContent(win, doc, content));
if (content.link_text) {
const anchorEl = this._createElement(doc, "a", {
const anchorEl = await this._createElement(doc, "a", {
classList: "text-link",
content: content.link_text,
});
@ -332,11 +323,11 @@ class _ToolbarPanelHub {
/**
* Return message title (optional subtitle) and body
*/
_createMessageContent(win, doc, content) {
async _createMessageContent(win, doc, content) {
const wrapperEl = new win.DocumentFragment();
wrapperEl.appendChild(
this._createElement(doc, "h2", {
await this._createElement(doc, "h2", {
classList: "whatsNew-message-title",
content: content.title,
})
@ -344,14 +335,14 @@ class _ToolbarPanelHub {
switch (content.layout) {
case "tracking-protections":
wrapperEl.appendChild(
this._createElement(doc, "h4", {
await wrapperEl.appendChild(
await this._createElement(doc, "h4", {
classList: "whatsNew-message-subtitle",
content: content.subtitle,
})
);
wrapperEl.appendChild(
this._createElement(doc, "h2", {
await this._createElement(doc, "h2", {
classList: "whatsNew-message-title-large",
content: this.state.contentArguments[
content.layout_title_content_variable
@ -362,40 +353,32 @@ class _ToolbarPanelHub {
}
wrapperEl.appendChild(
this._createElement(doc, "p", {
content: content.body,
classList: "whatsNew-message-content",
})
await this._createElement(doc, "p", { content: content.body })
);
return wrapperEl;
}
_createHeroElement(win, doc, message) {
this.maybeLoadCustomElement(win);
const messageEl = this._createElement(doc, "div");
async _createHeroElement(win, doc, message) {
const messageEl = await this._createElement(doc, "div");
messageEl.setAttribute("id", "protections-popup-message");
messageEl.classList.add("whatsNew-hero-message");
const wrapperEl = this._createElement(doc, "div");
const wrapperEl = await this._createElement(doc, "div");
wrapperEl.classList.add("whatsNew-message-body");
messageEl.appendChild(wrapperEl);
wrapperEl.appendChild(
this._createElement(doc, "h2", {
await this._createElement(doc, "h2", {
classList: "whatsNew-message-title",
content: message.content.title,
})
);
wrapperEl.appendChild(
this._createElement(doc, "p", {
classList: "protections-popup-content",
content: message.content.body,
})
await this._createElement(doc, "p", { content: message.content.body })
);
if (message.content.link_text) {
let linkEl = this._createElement(doc, "a", {
let linkEl = await this._createElement(doc, "a", {
classList: "text-link",
content: message.content.link_text,
});
@ -409,17 +392,14 @@ class _ToolbarPanelHub {
return messageEl;
}
_createElement(doc, elem, options = {}) {
let node;
if (options.content && options.content.string_id) {
node = doc.createElement("remote-text");
} else {
node = doc.createElementNS("http://www.w3.org/1999/xhtml", elem);
}
async _createElement(doc, elem, options = {}) {
const node = doc.createElementNS("http://www.w3.org/1999/xhtml", elem);
if (options.classList) {
node.classList.add(options.classList);
}
this._setString(node, options.content);
if (options.content) {
await this._setString(node, options.content);
}
return node;
}
@ -467,19 +447,41 @@ class _ToolbarPanelHub {
// If `string_id` is present it means we are relying on fluent for translations.
// Otherwise, we have a vanilla string.
_setString(el, stringObj) {
async _setString(el, stringObj) {
if (stringObj && stringObj.string_id) {
for (let [fluentId, value] of Object.entries(
this.state.contentArguments || {}
)) {
el.setAttribute(`fluent-variable-${fluentId}`, value);
}
el.setAttribute("fluent-remote-id", stringObj.string_id);
const [{ value }] = await RemoteL10n.l10n.formatMessages([
{
id: stringObj.string_id,
// Pass all available arguments to Fluent
args: this.state.contentArguments,
},
]);
el.textContent = value;
} else {
el.textContent = stringObj;
}
}
// If `string_id` is present it means we are relying on fluent for translations.
// Otherwise, we have a vanilla string.
async _setTextAttribute(el, attr, stringObj) {
if (stringObj && stringObj.string_id) {
const [{ attributes }] = await RemoteL10n.l10n.formatMessages([
{
id: stringObj.string_id,
// Pass all available arguments to Fluent
args: this.state.contentArguments,
},
]);
if (attributes) {
const { value } = attributes.find(({ name }) => name === attr);
el.setAttribute(attr, value);
}
} else {
el.setAttribute(attr, stringObj);
}
}
async _showAppmenuButton(win) {
this.maybeInsertFTL(win);
await this._showElement(
@ -503,9 +505,10 @@ class _ToolbarPanelHub {
this._hideElement(win.browser.ownerDocument, TOOLBAR_BUTTON_ID);
}
_showElement(document, id, string_id) {
async _showElement(document, id, string_id) {
const el = document.getElementById(id);
document.l10n.setAttributes(el, string_id);
await this._setTextAttribute(el, "label", { string_id });
await this._setTextAttribute(el, "tooltiptext", { string_id });
el.removeAttribute("hidden");
}
@ -565,7 +568,7 @@ class _ToolbarPanelHub {
triggerId: "protectionsPanelOpen",
});
if (message) {
const messageEl = this._createHeroElement(win, doc, message);
const messageEl = await this._createHeroElement(win, doc, message);
container.appendChild(messageEl);
infoButton.addEventListener("click", toggleMessage);
this.sendUserEventTelemetry(win, "IMPRESSION", message);

View File

@ -77,14 +77,6 @@ add_task(async function test_with_rs_messages() {
"The message container was not populated with the expected number of msgs"
);
await BrowserTestUtils.waitForCondition(
() =>
document.querySelector(
"#PanelUI-whatsNew-message-container .whatsNew-message-body remote-text"
).shadowRoot.innerHTML,
"Ensure messages have content"
);
UITour.hideMenu(window, "appMenu");
// Clean up and remove messages
ToolbarPanelHub.disableAppmenuButton();

View File

@ -12,7 +12,6 @@ describe("ToolbarPanelHub", () => {
let fakeWindow;
let fakeElementById;
let createdElements = [];
let createdCustomElements = [];
let eventListeners = {};
let addObserverStub;
let removeObserverStub;
@ -25,7 +24,6 @@ describe("ToolbarPanelHub", () => {
let getEventsByDateRangeStub;
let handleUserActionStub;
let defaultSearchStub;
let scriptloaderStub;
beforeEach(async () => {
sandbox = sinon.createSandbox();
@ -58,34 +56,10 @@ describe("ToolbarPanelHub", () => {
},
appendChild: sandbox.stub(),
setAttribute: sandbox.stub(),
textContent: "",
};
createdElements.push(element);
return element;
},
createElement: tagName => {
const element = {
tagName,
classList: {},
addEventListener: (ev, fn) => {
eventListeners[ev] = fn;
},
appendChild: sandbox.stub(),
setAttribute: sandbox.stub(),
textContent: "",
};
element.classList.add = sandbox.stub();
element.classList.includes = className =>
element.classList.add.firstCall.args[0] === className;
createdCustomElements.push(element);
return element;
},
l10n: {
translateElements: sandbox.stub(),
translateFragment: sandbox.stub(),
formatMessages: sandbox.stub().resolves([{}]),
setAttributes: sandbox.stub(),
},
};
fakeWindow = {
// eslint-disable-next-line object-shorthand
@ -105,13 +79,11 @@ describe("ToolbarPanelHub", () => {
panel: fakeElementById,
whatsNewPanel: fakeElementById,
},
customElements: { get: sandbox.stub() },
};
everyWindowStub = {
registerCallback: sandbox.stub(),
unregisterCallback: sandbox.stub(),
};
scriptloaderStub = { loadSubScript: sandbox.stub() };
addObserverStub = sandbox.stub();
removeObserverStub = sandbox.stub();
getBoolPrefStub = sandbox.stub();
@ -136,7 +108,6 @@ describe("ToolbarPanelHub", () => {
setBoolPref: setBoolPrefStub,
},
search: defaultSearchStub,
scriptloader: scriptloaderStub,
},
PrivateBrowsingUtils: {
isBrowserPrivate: isBrowserPrivateStub,
@ -145,6 +116,13 @@ describe("ToolbarPanelHub", () => {
getEarliestRecordedDate: getEarliestRecordedDateStub,
getEventsByDateRange: getEventsByDateRangeStub,
},
RemoteL10n: {
l10n: {
translateElements: sandbox.stub(),
translateFragment: sandbox.stub(),
formatMessages: sandbox.stub().resolves([{}]),
},
},
});
});
afterEach(() => {
@ -153,7 +131,6 @@ describe("ToolbarPanelHub", () => {
globals.restore();
eventListeners = {};
createdElements = [];
createdCustomElements = [];
});
it("should create an instance", () => {
assert.ok(instance);
@ -313,32 +290,6 @@ describe("ToolbarPanelHub", () => {
handleUserAction: handleUserActionStub,
});
});
it("should have correct state", async () => {
const messages = (await PanelTestProvider.getMessages()).filter(
m => m.template === "whatsnew_panel_message"
);
getMessagesStub.returns(messages);
const ev1 = sandbox.stub();
ev1.withArgs("type").returns(1); // tracker
ev1.withArgs("count").returns(4);
const ev2 = sandbox.stub();
ev2.withArgs("type").returns(4); // fingerprinter
ev2.withArgs("count").returns(3);
getEventsByDateRangeStub.returns([
{ getResultByName: ev1 },
{ getResultByName: ev2 },
]);
await instance.renderMessages(fakeWindow, fakeDocument, "container-id");
assert.propertyVal(instance.state.contentArguments, "trackerCount", 4);
assert.propertyVal(
instance.state.contentArguments,
"fingerprinterCount",
3
);
});
it("should render messages to the panel on renderMessages()", async () => {
const messages = (await PanelTestProvider.getMessages()).filter(
m => m.template === "whatsnew_panel_message"
@ -360,30 +311,19 @@ describe("ToolbarPanelHub", () => {
await instance.renderMessages(fakeWindow, fakeDocument, "container-id");
for (let message of messages) {
assert.ok(
createdCustomElements.find(el =>
el.classList.includes("whatsNew-message-title")
)
);
assert.ok(createdElements.find(el => el.tagName === "h2"));
if (message.content.layout === "tracking-protections") {
assert.ok(
createdCustomElements.find(el =>
el.classList.includes("whatsNew-message-subtitle")
)
);
assert.ok(createdElements.find(el => el.tagName === "h4"));
}
if (message.id === "WHATS_NEW_FINGERPRINTER_COUNTER_72") {
assert.ok(createdElements.find(el => el.tagName === "h4"));
assert.ok(
createdElements.find(
el => el.tagName === "h2" && el.textContent === 3
)
);
}
assert.ok(
createdCustomElements.find(el =>
el.classList.includes("whatsNew-message-content")
)
);
assert.ok(createdElements.find(el => el.tagName === "p"));
}
// Call the click handler to make coverage happy.
eventListeners.mouseup();
@ -393,18 +333,17 @@ describe("ToolbarPanelHub", () => {
const messages = (await PanelTestProvider.getMessages()).filter(
m => m.template === "whatsnew_panel_message"
);
const removeStub = sandbox.stub();
fakeElementById.querySelectorAll.onCall(0).returns([]);
fakeElementById.querySelectorAll
.onCall(1)
.returns([{ remove: removeStub }, { remove: removeStub }]);
fakeElementById.querySelectorAll.onCall(1).returns(["a", "b", "c"]);
getMessagesStub.returns(messages);
await instance.renderMessages(fakeWindow, fakeDocument, "container-id");
await instance.renderMessages(fakeWindow, fakeDocument, "container-id");
assert.calledTwice(removeStub);
assert.calledThrice(fakeElementById.removeChild);
assert.equal(fakeElementById.removeChild.firstCall.args[0], "a");
assert.equal(fakeElementById.removeChild.secondCall.args[0], "b");
});
it("should sort based on order field value", async () => {
const messages = (await PanelTestProvider.getMessages()).filter(
@ -446,7 +385,38 @@ describe("ToolbarPanelHub", () => {
"Firefox Send Logo"
);
});
it("should set state values as data-attribute", async () => {
it("should accept fluent ids for image attributes", async () => {
const messages = (await PanelTestProvider.getMessages()).filter(
m => m.id === "WHATS_NEW_70_1"
);
messages[0].content.icon_alt = { string_id: "foo" };
getMessagesStub.returns(messages);
await instance.renderMessages(fakeWindow, fakeDocument, "container-id");
assert.calledWithExactly(global.RemoteL10n.l10n.formatMessages, [
{
id: "foo",
args: instance.state.contentArguments,
},
]);
});
it("handle fluent attributes", async () => {
const messages = (await PanelTestProvider.getMessages()).filter(
m => m.id === "WHATS_NEW_70_1"
);
messages[0].content.icon_alt = { string_id: "foo" };
getMessagesStub.returns(messages);
global.RemoteL10n.l10n.formatMessages
.withArgs([{ id: "foo", args: sinon.match.object }])
.resolves([{ attributes: [{ name: "alt", value: "bar" }] }]);
await instance.renderMessages(fakeWindow, fakeDocument, "container-id");
const imgEl = createdElements.find(e => e.tagName === "img");
assert.calledWithExactly(imgEl.setAttribute, "alt", "bar");
});
it("should accept fluent ids for elements attributes", async () => {
const [message] = (await PanelTestProvider.getMessages()).filter(
m =>
m.template === "whatsnew_panel_message" &&
@ -457,13 +427,102 @@ describe("ToolbarPanelHub", () => {
await instance.renderMessages(fakeWindow, fakeDocument, "container-id");
// Currently this.state.contentArguments has 9 different entries
assert.callCount(createdCustomElements[0].setAttribute, 9);
assert.calledWithExactly(
createdCustomElements[0].setAttribute,
"fluent-variable-searchEngineName",
defaultSearchStub.defaultEngine.name
assert.calledWithExactly(global.RemoteL10n.l10n.formatMessages, [
{
id: message.content.subtitle.string_id,
args: instance.state.contentArguments,
},
]);
});
it("should correctly compute blocker trackers and date", async () => {
const messages = (await PanelTestProvider.getMessages()).filter(
m => m.template === "whatsnew_panel_message"
);
getMessagesStub.returns(messages);
const ev1 = sandbox.stub();
ev1.withArgs("type").returns(2); // cookie
ev1.withArgs("count").returns(4);
const ev2 = sandbox.stub();
ev2.withArgs("type").returns(2); // cookie
ev2.withArgs("count").returns(3);
getEventsByDateRangeStub.returns([
{ getResultByName: ev1 },
{ getResultByName: ev2 },
]);
await instance.renderMessages(fakeWindow, fakeDocument, "container-id");
assert.calledWithExactly(global.RemoteL10n.l10n.formatMessages, [
{
id: sinon.match.string,
args: {
blockedCount: 7,
earliestDate: getEarliestRecordedDateStub(),
cookieCount: 7,
cryptominerCount: 0,
socialCount: 0,
trackerCount: 0,
fingerprinterCount: 0,
searchEngineName: Services.search.defaultEngine.name,
},
},
]);
});
it("should correctly compute event counts per type", async () => {
const messages = (await PanelTestProvider.getMessages()).filter(
m => m.template === "whatsnew_panel_message"
);
getMessagesStub.returns(messages);
const ev1 = sandbox.stub();
ev1.withArgs("type").returns(1); // tracker
ev1.withArgs("count").returns(4);
const ev2 = sandbox.stub();
ev2.withArgs("type").returns(4); // fingerprinter
ev2.withArgs("count").returns(3);
getEventsByDateRangeStub.returns([
{ getResultByName: ev1 },
{ getResultByName: ev2 },
]);
await instance.renderMessages(fakeWindow, fakeDocument, "container-id");
assert.calledWithExactly(global.RemoteL10n.l10n.formatMessages, [
{
id: sinon.match.string,
args: {
blockedCount: 7,
earliestDate: getEarliestRecordedDateStub(),
trackerCount: 4,
fingerprinterCount: 3,
cookieCount: 0,
cryptominerCount: 0,
socialCount: 0,
searchEngineName: Services.search.defaultEngine.name,
},
},
]);
});
it("should fallback to undefined search engine name", async () => {
globals.set("Services", {
...global.Services,
search: { defaultEngine: null },
});
const messages = (await PanelTestProvider.getMessages()).filter(
m => m.template === "whatsnew_panel_message"
);
getMessagesStub.returns(messages);
await instance.renderMessages(fakeWindow, fakeDocument, "container-id");
assert.calledWithExactly(global.RemoteL10n.l10n.formatMessages, [
{
id: sinon.match.string,
args: {
...instance.state.contentArguments,
searchEngineName: "undefined",
},
},
]);
});
it("should only render unique dates (no duplicates)", async () => {
const messages = (await PanelTestProvider.getMessages()).filter(
@ -686,6 +745,7 @@ describe("ToolbarPanelHub", () => {
it("should call removeMessages when forcing a message to show", () => {
instance.forceShowMessage(browser, messages);
assert.calledOnce(removeMessagesSpy);
assert.calledWithExactly(removeMessagesSpy, fakeWindow, panelSelector);
});
it("should call renderMessages when forcing a message to show", () => {

View File

@ -345,7 +345,6 @@ const TEST_GLOBAL = {
},
ww: { registerNotification() {}, unregisterNotification() {} },
appinfo: { appBuildID: "20180710100040", version: "69.0a1" },
scriptloader: { loadSubScript: () => {} },
},
XPCOMUtils: {
defineLazyGetter(object, name, f) {

View File

@ -1854,11 +1854,6 @@ toolbarpaletteitem[place="menu-panel"] > .subviewbutton-nav::after {
text-decoration: underline;
}
#protections-popup-message .protections-popup-content {
display: block;
margin: 12px 0;
}
panelview[mainview] #PanelUI-whatsNew-content {
height: 43em;
}
@ -1873,23 +1868,13 @@ panelview[mainview] #PanelUI-whatsNew-content {
padding: 0;
}
/* The following 2 rules show a 1 pixel line separator between What's New
* messages while at the same time ensuring that the first message (which has
* a date header) will not show the separator
*/
#PanelUI-whatsNew .whatsNew-message-body::before {
#PanelUI-whatsNew .whatsNew-message:not(:first-child)::before {
content: "";
display: block;
height: 1px;
width: 104%;
margin-inline-start: -2%;
background: var(--panel-separator-color);
}
#PanelUI-whatsNew .whatsNew-message-date + .whatsNew-message-body::before {
display: none;
}
#PanelUI-whatsNew .whatsNew-message-date {
font-size: .85em;
margin: 0 -12px;
@ -1923,18 +1908,17 @@ panelview[mainview] #PanelUI-whatsNew-content {
inset-inline-end: 6px;
height: 32px;
position: absolute;
top: 16px;
top: 10px;
width: 32px;
}
#PanelUI-whatsNew .whatsNew-message-title,
#protections-popup-message .whatsNew-message-title {
display: block;
padding-inline-end: 46px;
font-size: 1.3em;
font-weight: 600;
line-height: 1.4em;
margin: 8px 0 2px;
margin: 2px 0;
}
#PanelUI-whatsNew .whatsNew-message-title-large {
@ -1950,11 +1934,6 @@ panelview[mainview] #PanelUI-whatsNew-content {
font-weight: normal;
}
#PanelUI-whatsNew .whatsNew-message-content {
display: block;
margin: 13px 0;
}
#PanelUI-whatsNew .text-link {
background: none;
border: 0;