When opening a tab who has location.reload(), it does not fire ajax request if not active

RESOLVED INCOMPLETE

Status

()

RESOLVED INCOMPLETE
4 years ago
3 years ago

People

(Reporter: effeesse, Unassigned)

Tracking

37 Branch
x86
Windows 7
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

4 years ago
User Agent: Mozilla/5.0 (Windows NT 6.1; rv:37.0) Gecko/20100101 Firefox/37.0
Build ID: 20150402191859

Steps to reproduce:

I open a tab with a reload feature after some time

code like this:

setInterval(function() {
	window.location.reload(true);
}, 300000); 


Actual results:

If the tab is not the active tab id does not fire an ajax request.
in my case i use d3 library for graph , so i use
d3.json() function for getting data from the server after the reload

haven't tried with other library o with native code, I assume the  result is the same cause id doesnt' work only whne the tab is not active



Expected results:

I expect to see my graph in all cases, but from the console I can see ff doesn't make any request to catch the data

it works good if the tab is active, 
and it works good if I open the page in a new window. in this case it works also if the windows hasn't the focus, and this is how I've solved my project by now
(Reporter)

Updated

4 years ago
Summary: When opening a tab whi has location.reload(), it does not fire ajax request if not active → When opening a tab who has location.reload(), it does not fire ajax request if not active
Hi reporter,


Can you please provide a link to a page where I could test this on my end? How does other browsers behave?

Also, please try to reproduce this on the latest release(43.0.1) and latest Nightly(46.0a1) and provide the results. When doing this, you can create a new clean Firefox profile, or maybe even test in safe mode, as some of this issues may be caused by third party installed add-ons or custom settings.
https://support.mozilla.org/en-US/kb/troubleshoot-and-diagnose-firefox-problems

Thanks,
Paul.
Flags: needinfo?(effeesse)
Since the reporter didn't provide the requested information, I will mark this issue as RESOLVED INCOMPLETE. If you still encounter this problem, please feel free to reopen this bug, or file a new one.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 3 years ago
Flags: needinfo?(effeesse)
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.