Closed Bug 1547211 Opened 5 years ago Closed 5 years ago

Better fallback states for DS for offline mode

Categories

(Firefox :: New Tab Page, enhancement, P1)

enhancement

Tracking

()

VERIFIED FIXED
Firefox 68
Iteration:
68.4 - Apr 29 - May 12
Tracking Status
firefox68 --- verified

People

(Reporter: andreio, Assigned: gsuntop)

References

Details

(Keywords: github-merged)

Attachments

(2 files)

Attached image Screenshot 2019-04-26 at 12.13.19.png (deleted) —

If I start a profile with DS enabled but no internet connection we throw some unexpected errors

Failed to fetch https://getpocket.cdn.mozilla.net/v3/firefox/global-recs?topic_id=1&duration=2592000&end_time_offset=172800&version=3&consumer_key=40249-e88c401e1b1f2242d9e441c4&locale_lang=en-US&feed_variant=OptimalCuratedLinksForLocaleFeed&model_id=external_time_live: NetworkError when attempting to fetch resource. DiscoveryStreamFeed.jsm:124
No response for feed DiscoveryStreamFeed.jsm:564
Error trying to load component feed https://getpocket.cdn.mozilla.net/v3/firefox/global-recs?topic_id=1&duration=2592000&end_time_offset=172800&version=3&consumer_key=$apiKey&locale_lang=en-US&feed_variant=OptimalCuratedLinksForLocaleFeed&model_id=external_time_live: TypeError: feed is null DiscoveryStreamFeed.jsm:259
Error trying to load component feeds: TypeError: newFeeds[currentValue] is null DiscoveryStreamFeed.jsm:606

And if I then enable the internet connection we don't do a retry but wait for the next system tick.
Also attached in the screenshot if the feed is loaded but then I lose connectivity the images show a "broken loaded state".

Iteration: --- → 68.4 - Apr 29 - May 12
Priority: -- → P1
Assignee: nobody → gsuntop

topstories used css background-image while the discoverystream uses <picture>/<img> (resulting in the error icon) so might need to add an onerror handler here

Blocks: 1548952
Status: NEW → RESOLVED
Closed: 5 years ago
Keywords: github-merged
Resolution: --- → FIXED
Target Milestone: --- → Firefox 68

I have verified that this issue is no longer reproducible with the latest Firefox Nightly (68.0a1 Build ID - 20190506214617) installed, on Windows 10 x64, Arch Linux and Mac 10.13.3. Now, the "broken loaded state" is no longer displayed on the images anymore.

Status: RESOLVED → VERIFIED
Component: Activity Streams: Newtab → New Tab Page
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: