#14379 closed bug (fixed)
Issue with xhr.js
Reported by: | Sabran | Owned by: | gibson042 |
---|---|---|---|
Priority: | undecided | Milestone: | 1.11/2.1 |
Component: | ajax | Version: | 1.10.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
I’m trying to use the latest version of jQuery and the latest version of jquery.signalR. I’m running into a problem in IE9 specifically. On window.unload, signalR is firing off an AJAX request. This fails in jquery with the error: Unable to set value of the property 'x': object is null or undefined. The ‘x’ is actually a number, but it varies.
I’ve traced the issue down to line 104 in xhr.js:
callback = xhrCallbacks[( id = xhrId++ )] = callback("abort");
The problem is that xhrCallbacks is undefined at the time of this call. The reason it is undefined is because earlier, on line 32, it is explicitly set to undefined on the window.unload event.
Change History (10)
comment:1 follow-up: 2 Changed 10 years ago by
comment:2 follow-up: 3 Changed 10 years ago by
Owner: | set to Sabran |
---|---|
Status: | new → pending |
Replying to Sabran:
Since this is a problem related to window.unload being called, I don't think it's reproducible using jsFiddle. Sorry.
I recommend a reduced test case that either manually triggers "unload" or leverages iframes.
comment:3 Changed 10 years ago by
Status: | pending → new |
---|
comment:4 Changed 10 years ago by
Just a reminder, I'm only able to reproduce the error in IE9. It seems to work fine in Chrome and Firefox.
comment:5 Changed 10 years ago by
Is there anything else needed from me to verify that this is a legitimate issue with jQuery?
comment:6 Changed 10 years ago by
Owner: | changed from Sabran to gibson042 |
---|---|
Status: | new → assigned |
No; that'll do. Thanks!
comment:8 Changed 9 years ago by
Milestone: | None → 1.11/2.1 |
---|
comment:9 Changed 9 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Fix #14379: AJAX requests on unload
Changeset: f9d41ac641dcb5a93ba8a9027476b160d8f41111
comment:10 Changed 9 years ago by
Component: | unfiled → ajax |
---|
Since this is a problem related to window.unload being called, I don't think it's reproducible using jsFiddle. Sorry.