Skip to main content

Bug Tracker

Side navigation

#11106 closed bug (invalid)

Opened December 27, 2011 05:02AM UTC

Closed January 11, 2012 08:02AM UTC

jsonp request may throw out browser error when use .abort()

Reported by: swain Owned by: swain
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.1
Keywords: Cc:
Blocked by: Blocking:
Description

Use ".abort()" before server response the jsonp request.

And the server response later, it throw an error. The gloabl function is not found.

Suggestion: Do not delete the global function, just refer it to "jQuery.noop".

Attachments (0)
Change History (4)

Changed December 27, 2011 06:53AM UTC by swain comment:1

jQuery 1.7.1 source: line 8128

delete xhrCallbacks[ handle ]; ===>> xhrCallbacks[ handle ] = jQuery.noop;

Changed December 27, 2011 04:12PM UTC by sindresorhus comment:2

owner: → swain
status: newpending

Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket.

Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, use this boilerplate: http://jsfiddle.net/FrKyN/ Open the link and click to "Fork" (in the top menu) to get started.

Changed December 27, 2011 04:12PM UTC by sindresorhus comment:3

Also let us know which browsers and versions you experience the problem with.

Changed January 11, 2012 08:02AM UTC by trac-o-bot comment:4

resolution: → invalid
status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!