On 07/10/2024 08:35, Raj Kiran Grandhi wrote:
On Sun, Oct 6, 2024 at 8:32 AM Max Nikulin wrote:
Firefox generates events in response to connection changes in
NetworkManager:
<https://developer.mozilla.org/en-US/docs/Web/API/Navigator/onLine>
In this case, the network state is not changing. Other applications,
including wget, continue uninterrupted across vt-switches (Screen lock
or User switching or Ctrl+Alt+Fn).
The question is if Firefox for some reason believes that network state
is changed. A simple test (unrelated to downloads though) is to try in
dev tools console
window.addEventListener("online", e=>console.log("online", e))
window.addEventListener("offline", e=>console.log("offline", e))
and if events are logged then you may compare timestamps with user
switching. Mike wrote that in his case there is some delay.
Sometimes, the firefox gui is also
a bit sluggish after returning from a vt-swtich, almost as if it were
resumed from an earlier CTRL-Z.
Swap?
Browsers throttle JS running in inactive tabs, but it unlikely affects
the current tab or downloads.
You may try to ask on <https://support.mozilla.org/> or to search in
Firefox bugs. Behavior might depend on desktop environment.