Bug Tracker

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#8136 closed bug (duplicate)

$.aiax() internal exception

Reported by: paolo.marani@… Owned by:
Priority: high Milestone: 1.next
Component: ajax Version: 1.5
Keywords: Cc:
Blocked by: Blocking:


$.ajax() is seriously flawed after the 1.4.3 rewrite !!!

Please find this line in jQuery 1.5:


protocol = loc.protocol


protocol property may be WRITEONLY, thus this will generate an uncaught exception (access denied) even without a cross-site domain attempts.

effectively, 'document.location.protocol' is not always safe to read, so it's better to completely error protect that line.

We have lost days tracking down this nasty problem.

Please fix it !!!!! Please fix it !!!!! Please fix it !!!!!

Change History (4)

comment:1 Changed 13 years ago by anonymous

Sorry, the double pipe appear to be interpreted as special code in this editor, i'll try to rewrite the offending line using code blocks

protocol = loc.protocol || "http:",

comment:2 Changed 13 years ago by marantz

Duplicate of Ticket #8138

comment:3 Changed 13 years ago by jitter

Component: unfiledajax
Priority: undecidedhigh
Resolution: duplicate
Status: newclosed

comment:8 Changed 13 years ago by jitter

Duplicate of #8138.

Note: See TracTickets for help on using tickets.