--- 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 @@-
+ 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.
http:URLs work fine.) -
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
ends up in the same directory as
you can use the URL
- with no slash in the query string.
Use a different browser. (IE 7 seems to work.)