JSCoverage
code coverage for JavaScript

Bug #24 - XMLHttpRequest error in Chrome

Submitted by: Andrew Schaefer
Date submitted: 2010-06-03 04:02:57 UTC
Status: Open
Using Google Chrome 5.0.375.55

After storing reports from jscoverage-server, I am able to open the jscoverage-
report/jscoverage.html file in IE8 and FireFox 3.5.8. When opening the same file 
in Chrome the following error is displayed

Error: Error: NETWORK_ERR: XMLHttpRequest Exception 101

The error is displayed below 'show missing statements column' and above 
'File|Statements|Executed|Coverage' row
Attachment: xmlhttprequest.jpg
Submitted by: Ed
Date submitted: 2010-06-03 16:37:29 UTC
It appears that Google Chrome no longer allows XMLHttpRequest for local files:

http://code.google.com/p/chromium/issues/detail?id=40787

There may be a workaround for this that can be included in the next version of
JSCoverage, but in the meantime, you could try one of the following:

1. Store the coverage report on an ordinary web server and use that to view the
jscoverage-report/jscoverage.html file.

2. Start Google Chrome with the --allow-file-access-from-files option.
Submitted by: Anonymous
Date submitted: 2012-03-15 09:44:27 UTC
how to start chrome with that option !?

Add a comment

Your name:
Your email address (optional - will never be displayed):
Comment:
Attachment (optional - maximum 64 KiB):
Copyright © 2008 Silicon Forks siliconforks.com
siliconforks@siliconforks.com