[Webkit-unassigned] [Bug 14169] AJAX/JavaScript crash bug

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jul 16 03:19:01 PDT 2008


------- Comment #8 from ac at alastc.com  2008-07-16 03:19 PDT -------
We've gotten to the bottom of this using a proxy to check the requests:

During a call with jQuery we were attempting to run the following line so the
server could assess wither the request was an AJAX one or not:

xhr.setRequestHeader("USER-AGENT", "XMLHttp");

Apparently Safari only allows changing of user-agent within debug mode which is
obviously not going to work for most people!

Our solution was to use the header value of X-Requested-With instead.

It seems likely that this is not a bug (I'll leave other to set the
resolution), but I'd be interested to know if using X-Requested-With is safe?

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the webkit-unassigned mailing list