Changing network to offline in debugger tools does not trigger online/offline event listeners
Categories
(DevTools :: DOM, defect, P2)
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
Comment 1•2 years ago
|
||
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.
Comment 2•2 years ago
|
||
Thanks for reporting.
I think this was fixed in Bug 1855129 which landed in Firefox 121.
Could you update and test again?
| Reporter | ||
Comment 3•2 years ago
|
||
Retested using 121.0b7 on this machine and another Windows machine - the behavior did not change
Comment 4•2 years ago
|
||
Ah yeah .. i can confirm that. Looks like the fixes missed that.
Thanks for filing.
Comment 5•2 years ago
|
||
Description
•