Closed Bug 1942095 Opened 1 year ago Closed 8 months ago

Newtab startupcache race condition

Categories

(Firefox :: New Tab Page, defect, P2)

defect

Tracking

()

RESOLVED FIXED
141 Branch
Tracking Status
firefox141 --- fixed

People

(Reporter: thecount, Assigned: thecount, NeedInfo)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [hnt-trainhop-project])

Attachments

(1 file)

Seeing a couple race conditions with the startup cache.

The big one being:

  1. If the events that flip isForStartupCache happen before startup cached page has rehydrated, the rehydrated page doesn't have the updated state from those events.

Other race condition I have found:
2. If sponsored topsites finishes before sponsored stories, or vice versa, and flips isForStartupCache, the other section displays a cached ad.

Severity: -- → S4
Priority: -- → P2
Attachment #9459954 - Attachment description: WIP: Bug 1942095 - Newtab fixing startupcache race conditions. → Bug 1942095 - Newtab fixing startupcache race conditions.

It turns out that bundling as a built-in addon makes these kinds of races more likely to occur, so we should get this landed before bug 1949511 changes our default packaging to be as a built-in addon.

Blocks: 1949511
Whiteboard: [hnt-trainhop]
Attachment #9459954 - Attachment description: Bug 1942095 - Newtab fixing startupcache race conditions. → WIP: Bug 1942095 - Newtab fixing startupcache race conditions.
No longer blocks: 1949511
Attachment #9459954 - Attachment description: WIP: Bug 1942095 - Newtab fixing startupcache race conditions. → Bug 1942095 - Newtab fixing startupcache race conditions.
Blocks: 1968574
Blocks: 1968575
Pushed by sdowne@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/32108159b296 Newtab fixing startupcache race conditions. r=home-newtab-reviewers,mconley
Pushed by smolnar@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ee89e21f7e66 Revert "Bug 1942095 - Newtab fixing startupcache race conditions. r=home-newtab-reviewers,mconley" for causing bc failures @ browser_overwrite_cache.js
Attachment #9459954 - Attachment description: Bug 1942095 - Newtab fixing startupcache race conditions. → Bug 1942095 - Newtab fixing startupcache race conditions
Pushed by sdowne@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4cb26c054a29 Newtab fixing startupcache race conditions r=home-newtab-reviewers,mconley
Status: NEW → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 141 Branch
QA Whiteboard: [qa-triage-done-c142/b141]

Mass moving from [hnt-trainhop] to [hnt-trainhop-project] for better JIRA book-keeping.

Whiteboard: [hnt-trainhop] → [hnt-trainhop-project]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: