Closed Bug 473179 Opened 16 years ago Closed 15 years ago

Firefox go to offline mode everytime windows 7 (Build 7000) wake up from sleep

Categories

(Core :: Networking, defect)

x86
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: zayani82, Unassigned)

References

Details

Attachments

(1 file, 1 obsolete file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5 Firefox switch to offline mode everytime windows 7 (Build 7000) wake up from sleep Reproducible: Always Steps to Reproduce: 1. Open Firefox 2. Go to sleep mode in windows 3. wake up and try to browse any website Actual Results: Firefox switch to offline mode Expected Results: Firefox switch to online mode
OS: Windows NT → Windows 7
Blocks: win7support
Can you try in safe mode?
Version: unspecified → 3.0 Branch
Component: General → Networking
Product: Firefox → Core
QA Contact: general → networking
Version: 3.0 Branch → Trunk
I saw this briefly today when I left the Win 7 box in the lab for a moment and came back - I was running Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1) Gecko/20090624 Firefox/3.5 (.NET CLR 3.5.30729. Will investigate further and confirm if I can repro consistently.
This doens't just affect Windows 7. I see this every day on my Windows XP SP3 laptop which connects via wireless network. Steps to reproduce are as follows: 1. Hibernate machine with Firefox running 2. Wait about 12 hours (might not need to wait that long, but I leave it overnight) 3. Resume from hibernation and Firefox will be in offline mode. This may have something to do with some add-ons I have installed which poll web sites periodically (Yahoo Mail Notifier, Slashdotter, Update Notifier, TwitterFox, etc). If they (or Firefox) try to poll immediately on resumption from hibernation or standby before the wireless network is re-established, then Firefox will detect that the network is down and enable "offline" mode. See bug 502659 What's more annoying is that there's no indication that Firefox is in offline mode so sometimes it takes me 5 or 10 minutes to realize this.
I threw together a simple add-on which will prevent Firefox from automatically entering offline mode when it detects a loss of network. https://addons.mozilla.org/en-US/firefox/addon/13152
Attached file Network and offline status monitoring extension (obsolete) (deleted) —
I noticed that I don't see this issue for short period hibernation and standby (a few minutes), but I do for long period hibernations. I threw together an extension which dumps out network and offline status change notifications to the error console and console. I'm going to run it until I see this issue again to see whether Firefox simply missed the change to a network status of up or if Firefox knows the network status is up, but for whatever reason Firefox remained in offline mode.
Wouldn't ya know it, the moment after I uploaded the add-on, I found a bug. Here's the fixed version.
Attachment #389334 - Attachment is obsolete: true
Not seeing this with Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.3a1pre) Gecko/20090820 Minefield/3.7a1pre (.NET CLR 3.5.30729), 7100 x64.
Can you still reproduce this with the final Windows 7 build?
can't reproduce the bug on Windows 7 RTM (7600)
Resolving as WFM based on comment 9. Reporter please open if you can still reproduce.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → WORKSFORME
Cause of this problem is: In nsNotifyAddrListener::Run() is called method sNotifyAddrChange. In system when occur this bug, NotifyAddrChange will set event after hibernation and network is set offline. On systems where this bug doesnt occur no event from NotifyAddrChange is set.
I have this exact same problem and with me, as with Michael Kraft, I don't see it for shport periods of sleep, mostly long periods of sleep.
I should add this has been so for seeveral versions of firefox, I am now at latest firefox 16.01, and Windos 7 is up-to-date.
and it is safe mode, not offline.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: