typeface.js
User / Developer Forum
No longer works locally on firefox 3.6
John
|
6 Feb 2010 11:10
I am having a really weird issue with typeface. I was coding a template to move over to a cms locally on windows machine. I used yahoo's css reset. Now no matter what I do the font I used when first using this script will no longer render locally in firefox 3.6. If I post it to a live site it works though. Locally I get the following errors. The first one is typeface.js is not defined. The second error is this:

Error: uncaught exception: [Exception... "Security error"  code: "1000" nsresult: "0x805303e8 (NS_ERROR_DOM_SECURITY_ERR)"  location: "Removed For Client Privacy By Me Not part of error/typeface-0.14.js Line: 791"]

Then on the live site it works perfectly. I've read elsewhere that the yahoo css reset can be a problem that causes this error but I have removed it completely. I even went as far as uninstalling firefox and deleting all settings because I figured that it was something cached. 

Any help would be appreciated because I would like to work on it locally first.

- On a side note it also works if I put it in my Xampp wamp testing server. This is the first time I have used the script since I updated Firefox to 3.6 so I am not sure if it is something to do with a new security implementation in firefox or what.
Bryan
|
8 Feb 2010 16:09
I have the same type of problem and here is what I found:

For security reasons, Opera and Mozilla will not allow you to access the cssRules collection of a stylesheet from another domain or protocol. Attempting to access it will throw a security violation error. If your script is likely to encounter a stylesheet like this, you should use a try...catch structure to prevent your script from halting. - http://www.howtocreate.co.uk/tutorials/javascript/combinedpage/
Post a Reply
YOUR NAME
YOUR COMMENT
We don't support HTML, but please use [quote] ... [/quote] tags around quotes.