Closed Bug 794262 Opened 7 years ago Closed 7 years ago

Navigator.onLine is true if the device is started with wifi disabled

Categories

(Core :: DOM: Device Interfaces, defect)

ARM
Gonk (Firefox OS)
defect
Not set

Tracking

()

RESOLVED FIXED
mozilla18
blocking-basecamp +

People

(Reporter: vingtetun, Assigned: vingtetun)

Details

Attachments

(1 file)

Steps to reproduce:
 - Start your b2g phone
 - Go to Settings -> wifi and disable wifi
 - restart the phone
 - Go to browser -> try to load a web page

Actual result:
 - the page fails to load with a error saying it can not such the target url

Expected result:
 - the page fails to load with the offline error message
Attached patch PatchSplinter Review
This patch just ensure this.setAndConfigureActive(); is called once and so Services.io.offline is set at startup.
Attachment #664670 - Flags: review?(philipp)
Comment on attachment 664670 [details] [diff] [review]
Patch

Review of attachment 664670 [details] [diff] [review]:
-----------------------------------------------------------------

Makes sense.
Attachment #664670 - Flags: review?(philipp) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/97e49e7a3326
Assignee: nobody → 21
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla18
blocking-basecamp: ? → +
https://hg.mozilla.org/mozilla-central/rev/97e49e7a3326
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Flags: in-testsuite?
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.