Just an update: as of today's master, the right link should be: https://github.com/angular/angular.js/blob/1d2414ca93a0340840ea1e80c48edb51ec55cd48/src/ng/httpBackend.js#l148
and I guess the change should be from: status = response ? 200 : urlResolve(url).protocol == 'file' ? 404 : 0; to: var protocol = urlResolve(url).protocol; status = response ? 200 : (protocol == 'file' || protocol == 'chrome') ? 404 : 0; Warning: we haven't tested this. Il giorno martedì 25 settembre 2012 21:07:13 UTC+2, Godmar Back ha scritto: > > > Answer: angularjs's XHR doesn't handle it correctly, see > https://github.com/angular/angular.js/blob/master/src/ng/httpBackend.js#l96-97 > > Which should read: > > status = (protocol == 'file' || protocol == 'chrome') ? (response ? 200 : > 404) : status; > > On Sat, Sep 22, 2012 at 11:01 AM, Godmar Back <[email protected]<javascript:> > > wrote: > >> >> Hi, >> >> quick question: has anyone used Angular in a Firefox extension? >> >> If so, did you have trouble referencing <ng-include with a src that >> points to a chrome:// URL? >> >> - Godmar >> >> > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
