Merge remote-tracking branch 'origin/main' into release/v1.47.5

This commit is contained in:
Marc-André Bombeck committed 2026-11-12 15:46:29 +01:00
commit 6994cb5ce8
6 files changed
+63 -17

No files matched your search

+4 -2
View File
@@ -482,13 +482,15 @@ describe("sw.js — activate", () => {
expect(harness.navPreload.enabled).toBe(true);
});
it("clears the dose count an earlier release left on the app icon", async () => {
it("leaves the app icon badge to the page, never touches it while activating", async () => {
// A badge call from the worker can stall Chromium's worker thread, so the
// activation never claims its pages. The page clears a leftover count.
const harness = bootServiceWorker();
const { badge } = swFakes(harness);
await dispatchActivate(harness);
expect(badge.cleared).toBe(true);
expect(badge.cleared).toBe(false);
});
});