Side navigation
#8152 closed bug (fixed)
Opened February 02, 2011 11:06PM UTC
Closed February 03, 2011 01:53AM UTC
Last modified March 09, 2012 09:38AM UTC
Local ajax requests through chrome-extension:// protocol are not working
Reported by: | anonymous | Owned by: | jaubourg |
---|---|---|---|
Priority: | low | Milestone: | 1.5.1 |
Component: | ajax | Version: | 1.5 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Ajax calls to local files inside Chrome extension are not working. I think this is related to #8125 bug.
When making local ajax calls from a Chrome extension they are mapped through chrome-extension:// protocol. I think you need to apply the same treatment to it as to file://
Attachments (0)
Change History (4)
Changed February 03, 2011 01:51AM UTC by comment:1
component: | unfiled → ajax |
---|---|
milestone: | 1.next → 1.5.1 |
owner: | → jaubourg |
priority: | undecided → low |
status: | new → assigned |
Changed February 03, 2011 01:53AM UTC by comment:2
resolution: | → fixed |
---|---|
status: | assigned → closed |
Fixes #8152 by applying the same special cases for protocol "chrome-extension:" as were for "file:" (needs tests). Re-organizes and fixes the handling of special cases for HTTP status code in the xhr transport. Also re-organizes the handling of document.location in ajax.js.
Changeset: d77a2a2274d34033da8609a26c9cc1f2bd14c879
Changed February 03, 2011 01:55AM UTC by comment:3
I marked this as fixed seeing as I applied the same tricks for the chrome-extension protocol as was in place for file. However, I cannot test it so I'd very much appreciate if somebody could confirm or infirm the fix, in which case I'll set up a test environment to look a little further.
Changed February 11, 2011 04:34AM UTC by comment:4
I met a similar problem today.
My browser is firefox 4.0pre11.
I run the following code in "chrome://helloworld/content/index/index.html"
$.ajax({
type:"GET",
url: "kkkmhDatabase.xml",
dataType: "xml",
success: function(xmlResponse){
alert("success");
},
error: function(jqxhr){
alert("error");
}
});
Both 1.4.4 and 1.5 will alert error.