Bug Tracker

Opened 9 years ago

Closed 9 years ago

Last modified 7 years ago

#6399 closed bug (invalid)

Jsonp ajax request errors on success callback when doing a redirect

Reported by: cblaze22 Owned by:
Priority: undecided Milestone: 1.4.3
Component: ajax Version: 1.4.2
Keywords: Cc:
Blocked by: Blocking:

Description (last modified by addyosmani)

There is a bug in the jquery ajax jsonp request on success when doing a redirect from http to https. The error happens on this line.

window[ jsonp ] = undefined;

I am making a https ajax call and doing a redirect in the success page with http.

window.location = window.location.toString().replace('https://', 'http://') + '?success';

The jquery success method finishes up, but still tries to finish by trying to access the window in the dom, but can't because it was originally from an https page, and now its on a http page.

Change History (2)

comment:1 Changed 9 years ago by dmethvin

Component: unfiledajax
Description: modified (diff)

comment:2 Changed 9 years ago by addyosmani

Description: modified (diff)
Priority: undecided
Resolution: invalid
Status: newclosed

Please re-submit your ticket with a valid test case (code) where this bug is replicated so we can further investigate. At the moment we have no way of establishing whether the redirect issue is due to your server-side/app code's method of redirection or whether this is due to the way the ajax request is completing.

Note: See TracTickets for help on using tickets.