Open Bug 1906323 Opened 1 year ago Updated 8 months ago

Fenix can silently fails to load links on network failure with no error notification (loss of connection, loss of WAN connectivity

Categories

(Firefox for Android :: Browser Engine, defect)

All
Android
defect

Tracking

()

People

(Reporter: acreskey, Unassigned)

References

(Blocks 4 open bugs)

Details

Attachments

(2 files)

On a network with no WAN link,Fenix will silently fail to load links with no error notification.

For comparison, Chrome will generally display an error page, e.g. "This site can't be reached".

Steps to reproduce

  1. Load a top news site (e.g. bbc.com, cnn.com, ) in Fenix
  2. Disconnect your wireless access point from the WAN
  3. Click on a link

Expected behavior

An error is displayed or other indication that the pageload failed
In Chrome, the error page displayed is generally "This site can't be reached"

Actual behavior

The pageload progress bar disappears and thus the pageload silently fails without notification

Here's an example profile with nsHttp:5,nsSocketTransport:5,profilermarkers logs as markers.
https://share.firefox.dev/3XL4yil

From the user's perspective, the page load silently fails after about 47 seconds.

Note that while these particular steps to reproduce are artificial (i.e. disconnecting the access point from the WAN), scenarios in which the access point loses connection to WAN are common for mobile users.
e.g.
• wifi on a public transit as it travels between areas of coverage,
• events/venues: device may be able to connect to venue's wifi network, but there may not be stable WAN uplink to handle all users

Device information

  • Firefox version: Fx129, also seeing same behaviour in Fx127, release channel
  • Android device model: Samsung A54
  • Android OS version: 14
Blocks: perf-android

We likely will need to move this bug to the ideal product/component.

See Also: → 1879387

The severity field is not set for this bug.
:boek, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(jboek)
See Also: → 1909562
Severity: -- → S3
Flags: needinfo?(jboek)

Updated title because the silent failure can also occur on loss of connection to network.

In this example the connection to the access point was lost.
https://share.firefox.dev/4cyn9ll

nsHttp logs included as profiler markers.

Summary: Fenix silently fails to load links without WAN connectivity, with no error notification → Fenix can silently fails to load links on network failure with no error notification (loss of connection, loss of WAN connectivity
Blocks: 1913418

In this recording I clicked on the link for the main article.
We can see the pageload starts (progress bar at about 25%).
But as the network transitions, the pageload silently fails.

For comparison, we can see how Chrome handles the same scenario:

The pageload is initiated, progress bar displayed
Chrome displays "No internet" page on loss of connection to initial interface
Chrome automatically resumes pageload on change of network
Page successfully completes load

A profile (with nsHttp and related logs) where we have the pageload silently fail
https://share.firefox.dev/3SXbVQw

And one where we do actually get the "No internet" error page
https://share.firefox.dev/3SU6uC0

The request is "https://www.nytimes.com/2024/08/21/business/economy/harris-price-gouging-ban-groceries.html"

If I have this right, the request fails here with this status:

nsHttpChannel::OnStopRequest [this=6bfdf74600 request=6bac822880 status=804b0002]

NS_BINDING_ABORTED = 0x804B0002

Blocks: 1879387
Blocks: 1951764

Verified that this bug is still happening in the latest Fenix nightly.
It looks like it's often taking 60 seconds for the link-click load to silently fail.
Chrome is displaying an error page within 6-30 seconds.

For the necko side, let's first verify that we are correctly returning the failure.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: