Open
Bug 1029203
Opened 11 years ago
Updated 2 years ago
Emulate being offline
Categories
(DevTools :: Netmonitor, enhancement, P3)
Tracking
(Not tracked)
NEW
People
(Reporter: canuckistani, Unassigned)
References
(Blocks 3 open bugs)
Details
(Whiteboard: [difficulty=hard] )
Attachments
(1 file)
|
86.25 KB,
image/png
|
Details |
It would be useful to have a switch that completely emulates being offline, for the current tab. Chrome does this as part of their new network emulation feature.
Comment 1•11 years ago
|
||
There used to be an excellent addon that did this. Unfortunately it was Windows only and used it's own dll for the throttling service but maybe we could draw a little inspiration from it's implementation:
https://github.com/hkirsman/Firefox-Throttle/blob/master/src/components/FFThrWatcher.js#L71
Updated•10 years ago
|
Blocks: emulation-devtools
Updated•10 years ago
|
Whiteboard: [devedition-40]
| Reporter | ||
Comment 2•10 years ago
|
||
Assigning P1 priority for some devedition-40 bugs.
Filter on '148DD49E-D162-440B-AE28-E22632FC20AC'
Priority: -- → P1
Comment 3•10 years ago
|
||
I think `Services.io.offline = false` would do something similar, but the issue is that it is global to the whole browser.
FxOS implemented something better and supports toggling just one app into offline mode:
Services.io.setAppOffline()
http://mxr.mozilla.org/mozilla-central/source/netwerk/base/nsIIOService.idl#169
I tried to fake an app on a tab and used this setAppOffline API, but it doesn't seem to work.
Anyway, this features allows us to have an idea how hard it would be to have a per-docshell offline state:
http://mxr.mozilla.org/mozilla-central/ident?i=IsAppOffline
http://mxr.mozilla.org/mozilla-central/ident?i=NS_IsAppOffline
i.e. quite significant work!
For example:
http://mxr.mozilla.org/mozilla-central/source/netwerk/protocol/http/nsHttpChannel.cpp#2715
| Reporter | ||
Comment 4•10 years ago
|
||
Adding difficulty=hard whiteboard - please adjust if you disagree but I suspect this is what Alex means.
Alex - if you have some time while you're thinking about this issue, can you file a platform bug to represent the platform changes we would need to set a tab in an offline state? Please cc me.
Flags: needinfo?(poirot.alex)
Whiteboard: [devedition-40] → [devedition-40][difficulty=hard]
| Reporter | ||
Updated•10 years ago
|
Whiteboard: [devedition-40][difficulty=hard] → [difficulty=hard]
Comment 6•9 years ago
|
||
Triaging. Not a P1 anymore according to our new triage process, and not being actively worked on (filter on CLIMBING SHOES).
Priority: P1 → P3
Comment 7•8 years ago
|
||
Hey Honza, I think this has been implemented in another bug, right? If so, can you close it as a duplicate please?
Severity: normal → enhancement
Component: Developer Tools → Developer Tools: Netmonitor
Flags: needinfo?(odvarko)
Comment 8•8 years ago
|
||
(In reply to Patrick Brosset <:pbro> from comment #7)
> Hey Honza, I think this has been implemented in another bug, right? If so,
> can you close it as a duplicate please?
I don't know about any new net feature that would implement this.
Also, the platform bug 1156659 is still open.
Note, that we recently implemented pause/resume (bug 1005755), but it's different thing.
Honza
Flags: needinfo?(odvarko)
Updated•7 years ago
|
Product: Firefox → DevTools
Updated•6 years ago
|
Blocks: rdm-device
Comment 9•6 years ago
|
||
The offline option could be part of the Throttling drop down, as mentioned here:
https://mobile.twitter.com/nhoizey/status/1094871488707080192
https://pbs.twimg.com/media/DzHDz3QX0AALDPO.jpg
Honza
Updated•3 years ago
|
Severity: normal → S3
Comment 13•2 years ago
|
||
A request for this feature came up in my google alerts:
https://stackoverflow.com/questions/74805554/how-do-i-deactivate-the-internet-entirely-with-firefoxs-developer-tools
Comment 14•2 years ago
|
||
If someone is going to implement this, please also consider adding an option to the CLI so the browser can be started in offline mode (if a --set-pref won't do the trick)
You need to log in
before you can comment on or make changes to this bug.
Description
•