--- trunk/doc/faq.html 2007/11/22 03:13:13 73 +++ trunk/doc/faq.html 2008/06/20 02:27:18 148 @@ -1,7 +1,7 @@
-jscoverage.html
file.)
+ + Firefox 3 introduces new + security restrictions on local files. Depending on the way your + test suite is organized, this may cause problems for JSCoverage. + (You may get the error "uncaught exception: Permission denied to get property Window._$jscoverage".) + There are several workarounds: +
+ +Place your files on a web server instead of loading them from the file system. + This is usually the simplest solution.
+Organize your HTML files in your test suite in a flat directory structure. For example, suppose that + you instrument your test suite with this command:
++jscoverage src instrumented ++
If all your HTML files are located directly under the src/
directory (i.e., not in a
+ subdirectory of src/
), then you should not have any problems using Firefox 3.
Set the Firefox preference named
+ security.fileuri.origin_policy
+ to 3.
file:///C:/foo/bar/jscoverage.html?foo/bar.html
and I'm getting all kinds of JavaScript errors.http:
URLs work fine.)
- bar.html
+ Place your files on a web server instead of loading them from the file system.
+ (http:
URLs work fine.)
Do not use a query string; enter your URL in the "URL" field in the "Browser" tab.
+Rearrange your directory structure so that bar.html
ends up in the same directory as jscoverage.html
; then
you can use the URL
file:///C:/foo/bar/jscoverage.html?bar.html
- with no slash in the query string.
-
Use a different browser. (IE 7 seems to work.)