Skip to main content

Bug Tracker

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:

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 jaubourg comment:1

component: unfiledajax
milestone: 1.next1.5.1
owner: → jaubourg
priority: undecidedlow
status: newassigned

Changed February 03, 2011 01:53AM UTC by jaubourg comment:2

resolution: → fixed
status: assignedclosed

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 jaubourg 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 anonymous 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"



url: "kkkmhDatabase.xml",

dataType: "xml",

success: function(xmlResponse){



error: function(jqxhr){




Both 1.4.4 and 1.5 will alert error.