Closed Bug 560594 Opened 16 years ago Closed 10 years ago

XmlHttpRequest via jQuery.ajax dont raises callback function on localhost

Categories

(Core :: Networking, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: dkomanov, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.3a5pre) Gecko/20100420 Minefield/3.7a5pre Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.3a5pre) Gecko/20100420 Minefield/3.7a5pre This bug affects only localhost-hosted sites. The same code from a remote machine working perfectly. Reproducible: Always Steps to Reproduce: 1. Make a simple web-service and host it on local machine; 2. Make a XMLHttpRequest to this service from the local maching; 3. Make sure that callback function was not raised. Actual Results: Callback not raised. Expected Results: Callback raised. jQuery.get('http://localhost/MyService', function(data) { alert('data'); }); Alert will never be raised. Info: Application Basics Name Firefox Version 3.7a5pre Profile Directory Open Containing Folder Installed Plugins about:plugins Build Configuration about:buildconfig Extensions Name Version Enabled ID Firebug 1.6X.0a9 true firebug@software.joehewitt.com NoScript 1.9.9.63 true {73a6fe31-595d-460b-a920-fcc0f8843232} Echofon 1.9.6.2 true twitternotifier@naan.net Modified Preferences Name Value accessibility.typeaheadfind.flashBar 0 browser.places.importBookmarksHTML false browser.places.smartBookmarksVersion 2 browser.startup.homepage_override.mstone rv:1.9.3a5pre extensions.lastAppVersion 3.7a5pre network.cookie.prefsMigrated true places.history.expiration.transient_current_max_pages 127812 places.last_vacuum 1270709084 privacy.sanitize.migrateFx3Prefs true security.warn_viewing_mixed false
XMLHttpRequest most definitely works for localhost, so a more detailed description is needed. Can you provide a real testcase (i.e. a small page you reproduce this with and the real server-side code)? Can you reproduce this on a clean profile? Or is this a regression (i.e. this works if you try it in a previous release)?
Component: General → Networking
Product: Firefox → Core
QA Contact: general → networking
Version: unspecified → Trunk
The same code works in production (not localhost) but not works on localhost. I'm using ASP.NET MVC, sample returns a string "1". On non-localhost hosting everything is ok (local area network or Internet). But on my maching asynchronous callback isn't raised. IE8 and Chrome works fine. So i desided that problem is in Minefield...
That's really not enough information to do anything with.... I assume localhost is running an HTTP server? Does an XHR not using JQuery work for you?
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.