diff --git a/special-pages/pages/new-tab/app/update-notification/components/UpdateNotification.js b/special-pages/pages/new-tab/app/update-notification/components/UpdateNotification.js
index e7d303f9b..5d47d7ed6 100644
--- a/special-pages/pages/new-tab/app/update-notification/components/UpdateNotification.js
+++ b/special-pages/pages/new-tab/app/update-notification/components/UpdateNotification.js
@@ -53,7 +53,17 @@ export function WithNotes({ notes, version }) {
{notes.map((note, index) => {
- return - {note}
;
+ /**
+ * Note: Doing this here as a very specific 'view' concern
+ * Note: using the `if` + `.slice` to avoid regex
+ * Note: `.slice` is safe on `•` because it is a single Unicode character
+ * and is represented by a single UTF-16 code unit.
+ */
+ let trimmed = note.trim();
+ if (trimmed.startsWith('•')) {
+ trimmed = trimmed.slice(1).trim();
+ }
+ return - {trimmed}
;
})}
diff --git a/special-pages/pages/new-tab/app/update-notification/integration-tests/update-notification.spec.js b/special-pages/pages/new-tab/app/update-notification/integration-tests/update-notification.spec.js
index b5349c522..a7a15d0a8 100644
--- a/special-pages/pages/new-tab/app/update-notification/integration-tests/update-notification.spec.js
+++ b/special-pages/pages/new-tab/app/update-notification/integration-tests/update-notification.spec.js
@@ -27,7 +27,9 @@ test.describe('newtab update notifications', () => {
await page.getByText("Browser Updated to version 1.91. See what's new in this release.").waitFor();
await page.getByRole('link', { name: "what's new" }).click();
- await page.getByText('Bug fixes and improvements').waitFor();
+ // this test was updated to add 'exact: true' which would fail if the bullet was not stripped
+ await page.getByText('Bug fixes and improvements', { exact: true }).waitFor();
+ await page.getByText('Optimized performance for faster load times', { exact: true }).waitFor();
await page.getByRole('button', { name: 'Dismiss' }).click();
await ntp.mocks.waitForCallCount({ method: 'updateNotification_dismiss', count: 1 });
});
diff --git a/special-pages/pages/new-tab/app/update-notification/mocks/update-notification.data.js b/special-pages/pages/new-tab/app/update-notification/mocks/update-notification.data.js
index 1a1f8d84d..12aa45894 100644
--- a/special-pages/pages/new-tab/app/update-notification/mocks/update-notification.data.js
+++ b/special-pages/pages/new-tab/app/update-notification/mocks/update-notification.data.js
@@ -10,7 +10,11 @@ export const updateNotificationExamples = {
},
populated: {
content: {
- notes: ['Bug fixes and improvements'],
+ // prettier-ignore
+ notes: [
+ '• Bug fixes and improvements',
+ 'Optimized performance for faster load times'
+ ],
version: '1.91',
},
},