Closed Bug 1899562 Opened 10 months ago Closed 2 months ago

Do not include the weather widget for about:home startup cache

Categories

(Firefox :: New Tab Page, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
136 Branch
Tracking Status
firefox136 --- fixed

People

(Reporter: nanj, Assigned: rhamoui)

References

(Blocks 1 open bug)

Details

(Whiteboard: [hnt])

Attachments

(1 file, 1 obsolete file)

The weather widget should not be cached in the startup cache as it could show out-of-date weather info on the homepage.

Whiteboard: [disco]

This might be a helpful pattern for fixing this: https://phabricator.services.mozilla.com/D174646

Whiteboard: [hnt]
Whiteboard: [hnt]
Whiteboard: [hnt]
Assignee: nobody → achurchwell
Assignee: achurchwell → nobody
Assignee: nobody → rhamoui
Attachment #9445498 - Attachment is obsolete: true
Attachment #9459254 - Attachment description: WIP: Bug 1899562 - Remove weather widget from startup cache. → Bug 1899562 - Remove weather widget from startup cache. r=#home-newtab-reviewers
Pushed by sdowne@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ece25e71d623 Remove weather widget from startup cache. r=home-newtab-reviewers,thecount

We've been working on removing the weather widget from cache, but found the process to have more complexity than anticipated. Upon removing it from cache, we've noticed that other parts of the new tab page were also being affected by not "rehydrating" after initial load, specifically the sponsored topsites content, making them not load on a fresh cache.

To address this, we've opted to only remove the isStartup variable from the weather dispatch call to the Redux store. Previously, this variable allowed to handle weather updates differently during startup. By removing it however, the fetch function no longer differentiates whether the weather data is being loaded as part of a startup process. This change means the weather feed loads without any startup-specific behavior.

Now, when cache loads, sponsored topsites content will load as expected. However, the weather widget will flicker with new data after showing cached data for a brief period. We've landed this patch for now as it solves the problem of showing old cached weather data on startup.

We're currently working around for a fix for this, but seems that we are on the right path and will work on landing a fix soon

cc: :thecount

Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: