browser.js shouldn't send "fromCache":true flag when device is offline for tabs that couldn't load correctly (server not found, etc)

NEW
Unassigned

Status

()

Firefox for Android
General
P3
normal
2 years ago
a year ago

People

(Reporter: Grisha, Unassigned)

Tracking

(Blocks: 1 bug)

unspecified
Points:
---

Firefox Tracking Flags

(fennec+)

Details

(Reporter)

Description

2 years ago
This is a follow up for Bug 1304914, which ensures we won't display "offline version" notifications on error pages while device is offline. Ideally, we want to fix the root of the problem, which is that currently if tab loaded in an error state while device is offline, we attach "fromCache":true flag with the PageShow and StateChange messages that are sent to javaland.

Currently the "error state" covers both types of events:
1) 404 on the server (couldn't locate a page on a site)
2) "server not found" type events

We want to display "offline version" notifications for the first type (content is available), but not for the second (no content!).

Current solution doesn't display the notification on either one of those, which is better than displaying it on both, but far from ideal.
(Reporter)

Comment 1

a year ago
Flagging this for triage. Offline browsing is now enabled for the whole population, so it would be good to fix up these edge cases.
tracking-fennec: --- → ?
[triage]
P3 as a backlog feature enhancement.
tracking-fennec: ? → +
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.