jquery/jquery — pull request #1340 by njhamann (2013-08-24 21:03:41+00:00)
Title: Fix #14036 - ajaxLocation Includes HTTP Basic Authentication Info

Fixed the issues mentioned in http://bugs.jquery.com/ticket/14036

Issue occurs when using HTTP Basic Authentication in Chrome and checking for crossdomain. Because chrome includes username:password@ when using ```location.href```, ```s.crossDomain``` is true.

You can see an example of this behavior by visiting http://username:password@example.com/ in Chrome and running ```location.href```. Running the following with this address
```
ajaxLocParts = rurl.exec( ajaxLocation.toLowerCase() ) || [];
```
will produce username as the domain instead of example.com

As mentioned by paulie4 in the ticket using ```location.protocol + "//" + location.host``` will alleviate the problem.