--- trunk/doc/faq.html 2008/06/19 06:17:24 139 +++ trunk/doc/faq.html 2008/10/09 04:33:02 273 @@ -37,14 +37,29 @@
- Beta versions of Firefox 3 introduced 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".) - These restrictions are not present in the final release of Firefox 3. + 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.It is necessary to run JSCoverage in inverted mode. You will have to @@ -133,13 +148,14 @@