We have been using JSONP (http://code.google.com/p/jquery-jsonp/) to do some localhost calls to retrieve JSON objects... I have upgraded to Firefox 4 today and now the code we were using doesn't work in Firefox 4, but it still works in IE, Chrome and Safari.
With the JSONP plugin it appends a script tag with a load of stuff in it... effectively it is like XSS... So I wondered if Firefox were trying to prevent this now.
Code:
$.jsonp({
url: "http://localhost:2020/wsService/LocalResources/All",
callback: "callback",
success: function(data) {
// some success code
},
complete: function(xOptions, textStatus) {
// this code doesn't alert in firefox 4
alert("Complete");
},
error: function(xOptions, textStatus) {
// error code
}
});
And then it appends this string
<script id="_jqjsp1" async="" src="http://localhost:2020/wsService/LocalResources/All?_1300967068015=">
Failed to load source for: http://localhost:2020/wsService/LocalResources/All?_1300967068015=