thanhlong203 / closure-library

Automatically exported from code.google.com/p/closure-library
0 stars 0 forks source link

XhrIo - isSuccess fails for local resource (status==0) and scheme (chrome-extension). #230

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Bundle a file within a chrome extension.
2.Load your extension as Unpacked.
3.Try to get the file with
   var url = chrome.extension.getUrl(filename); // such as 'manifest.json'
   console.log('requested url: ' + url);
   goog.net.XhrIo.send(url,
       function(e) {
         console.log('status: ' + e.target.getStatus());
         console.log('success: ' + e.target.isSuccess());
         console.log('contents: ' + e.target.getResponseText());
       });

What is the expected output? What do you see instead?
I see success: false
I expect to see success: true

All the other output is correct.  It still retrieves the file and I can access 
it.

What version of the product are you using? On what operating system?
I am working on Corp Linux and Chrome.

Please provide any additional information below.

Thanks,
Jason Stredwick

Original issue reported on code.google.com by jasonstr...@google.com on 1 Nov 2010 at 10:55

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r414.

Original comment by Nicholas.J.Santos on 4 Nov 2010 at 6:52