Permission denied for calling Location.toString method

I use YUI,

and sometimes I will see the error "Allow the call to the Location.toString method to fail",

Reported in connection.js,

I did not find a clue why this error occurred.

Very strange

+3
javascript yui
May 23, '09 at 21:10
source share
4 answers

If you are dealing with any Flash through a cross-domain iframe, then it is quite possible that you see an error in Adobe Flash Player that occurs with FF2 and FF3.

Error in Adobe public JIRA here: http://bugs.adobe.com/jira/browse/FP-561

There seems to be no motivation to fix this, unfortunately.

+5
Jun 16 '09 at 19:25
source share

If the script is executed from another domain or you are trying to access the contents of the frame / window / iframe of another domain, you will see this error. Safari's behavior was slightly different, at least in the v1-2 (iirc) era, so you probably want to check that out as well.

If you include scripts through another domain, you need to make sure that your actual triggers / events are linked and executed from the built-in scripts or from a script file loaded from the same domain as your html for best results.

+1
May 23 '09 at 21:35
source share

Hi, I answered a similar question

why / where is the error "Permission denied for to call the Location.toString method".

This is because firebug shows errors from other windows in the console. In short, these errors are likely to have nothing to do with your code at all.

If you want to test this theory, you can close all other windows in firebug, clear the console and test only your site.

+1
Apr 15 '11 at 10:16
source share

Do you see this in Firebug, by any chance?

I get the same in Firefox, no matter how I add jQuery to my site. I call jQuery js from another site (in a different domain completely), which, in my opinion, is not very different from calling it from Google servers.

I don't have code using jQuery at all from the moment. And, although Firebug reports this as an error, it does not do this all the time. Although I turned it on, I see no errors in IE.

Although there are different libraries, I assume that Firebug generates false positives.

Now, if you are not using Firebug when you see this ... do you use YUI on your server? Which browser are you using? Etcetera.

~ James

0
May 25 '09 at 21:43
source share



All Articles