Permission denied to call method Location.toString

201 views
Skip to first unread message

Geuis

unread,
Feb 17, 2009, 4:21:55 PM2/17/09
to Firebug
I get this error in Firebug quite often and it never seems to be
related to any of my code in a page. Has anyone ever tracked down what
causes this?

Mike Ratcliffe

unread,
Feb 18, 2009, 7:49:18 AM2/18/09
to Firebug
This is usually related to Flash files in iframes trying to get
information that they have no permission to obtain (from another
domain etc.).

Which version of Firebug and Firefox are you using?

Warlock

unread,
Feb 18, 2009, 8:28:52 AM2/18/09
to Firebug
I am confirm this problem.
No flash or iframes on my page.
Firefox 3.0.6, Firebug 1.3.2

gabriel munteanu

unread,
Feb 18, 2009, 8:55:01 AM2/18/09
to fir...@googlegroups.com
it could be, there are some ad buttons on the website i work on that are flash.
firefox 2.0.0.20 and firebug 1.3.0.

gabi

gabriel munteanu

unread,
Feb 18, 2009, 2:38:05 AM2/18/09
to fir...@googlegroups.com
i can say that i saw this too. the error was related to totally something else, solved that error in my code and Location.toString vanished.
but very weird indeed.

jgabios

John J Barton

unread,
Feb 18, 2009, 7:22:52 PM2/18/09
to Firebug
In some cases this message can be related to event handlers running in
closed windows. So window A sets a callback on window B, then later
window A is closed (or reloaded or src= changed or...). When window B
calls A, the call goes through, but the global scope of A is broken.
And the location object has been erased so you get errors if you try
to print window.location (which firebug does a lot to to error
tracking).

So its possible that this is caused by FIrebug or anyone else.

jjb

On Feb 17, 11:38 pm, gabriel munteanu <jajali...@gmail.com> wrote:
> i can say that i saw this too. the error was related to totally something
> else, solved that error in my code and Location.toString vanished.
> but very weird indeed.
>
> jgabios
>

EnvyGeeks

unread,
Feb 18, 2009, 8:00:23 PM2/18/09
to Firebug
This could be many things, in Firebug 1.2 somebody reproduced the
error as a simplistic add on causing it. It could be a XSRF/CSRF or
even you trying to embed too many windows and iframes in your script,
it happened commonly back before JavaScript libraries got smart. This
is most commonly caused by the XSRF/CSRF protection for both
Javascript and Actionscript in Flash. You might need to adjust your
crossdomain.xml to:

<cross-domain-policy>
<site-control permitted-cross-domain-policies="all"/>
<allow-access-from domain="*" />
<allow-http-request-headers-from domain="*" headers="*"/>
</cross-domain-policy>
Reply all
Reply to author
Forward
0 new messages