Results 1 to 4 of 4

Thread: Permission denied to call method Location.toString

  1. #1
    Join Date
    Mar 2009
    Posts
    1,221

    Permission denied to call method Location.toString

    I am getting a strange error whenever I open my office website on Firefox. The error message that comes up:

    Error: uncaught exception: Permission denied to call method Location.toString
    Does any one know what this error means? Where the problem comes from? According to the message, I don't have rights to access something but I don't know what that something is. Can I ignore this message?

  2. #2
    Join Date
    Jan 2008
    Posts
    1,521

    Re: Permission denied to call method Location.toString

    This is a cross-site scripting security restriction. Basically the domains of the frames are from different domains, so the script(s) on one frame cannot read the url of the other. To read the url from each other, it need the websites userids and/or password. Thus the browser rejects it.

  3. #3
    Join Date
    Oct 2005
    Posts
    2,393

    Re: Permission denied to call method Location.toString

    It happens when iframe's Flash files tries to get information from a place where they do not have permissions. It could happen with Firefox 2 and Firefox 3. In some other cases this message can be related to event handlers running in
    closed windows.

  4. #4
    Join Date
    May 2008
    Posts
    271

    Re: Permission denied to call method Location.toString

    Steps to resolve this issue:

    1. Create an iframe on a page that has a different location (domain) than the parent page.
    2. Load *any* flash file (regardless of publish-version target, EI, javascript, etc) into the iframe
    3. Note the cryptic error in the Firefox Error Console. Ignore the cryptic error in the Error Console.

Similar Threads

  1. Urgent Help with return method toString() Java!!
    By vizu in forum Software Development
    Replies: 3
    Last Post: 01-05-2011, 11:48 PM
  2. No permission to save in this location.
    By Indratej in forum Operating Systems
    Replies: 5
    Last Post: 02-04-2011, 10:53 PM
  3. How to override ToString() method in C#?
    By Linoo in forum Software Development
    Replies: 5
    Last Post: 23-02-2010, 07:54 PM
  4. What is toString() method in java?
    By Juany in forum Software Development
    Replies: 4
    Last Post: 10-02-2010, 05:12 PM
  5. Is it possible to call destroy() method within init() Method?
    By Level8 in forum Software Development
    Replies: 3
    Last Post: 10-12-2009, 08:36 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,751,668,594.34618 seconds with 16 queries