Open Bug 1868383 Opened 2 years ago Updated 4 months ago

Changing network to offline in debugger tools does not trigger online/offline event listeners

Categories

(DevTools :: DOM, defect, P2)

Firefox 120
defect

Tracking

(Not tracked)

People

(Reporter: dargis.jokubas583, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:120.0) Gecko/20100101 Firefox/120.0

Steps to reproduce:

simplified version to reproduce:

paste this into debugger console:
window.addEventListener('offline', () => {console.log('offline')})

change Network status from "No Throttling" to "Offline"

Actual results:

Event "offline" is is not triggered, "offline" is not logged to console.

Note: it does work, when manually turning off internet connection (manually turning off wifi, plugging out ethernet cable, etc.)

Expected results:

Event "offline" should trigger, and "offline" should be logged to console

The Bugbug bot thinks this bug should belong to the 'DevTools::Debugger' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Debugger
Product: Firefox → DevTools

Thanks for reporting.

I think this was fixed in Bug 1855129 which landed in Firefox 121.

Could you update and test again?

Flags: needinfo?(dargis.jokubas583)

Retested using 121.0b7 on this machine and another Windows machine - the behavior did not change

Flags: needinfo?(dargis.jokubas583)

Ah yeah .. i can confirm that. Looks like the fixes missed that.

Thanks for filing.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Component: Debugger → DOM
Ever confirmed: true
Priority: -- → P2
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: