Javascript problems with Firefox and not with IE

View: New views
6 Messages — Rating Filter:   Alert me  

Javascript problems with Firefox and not with IE

by R-24 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

why is this javascript error coming when I run the open(http://localhost) in Firefox 1.5

Error: [Exception... "'Permission denied to call method Location.toString' when calling method: [nsIDOMEventListener::handleEvent]"  nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)"  location: "<unknown>"  data: no]


It works perfectly fine with IE
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=1072&messageID=2991#2991

---------------------------------------------------------------------
To unsubscribe, e-mail: selenium-dev-unsubscribe@...
For additional commands, e-mail: selenium-dev-help@...


Re: Javascript problems with Firefox and not with IE

by R-24 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This usually means that you have run into cross-site scripting problems. Selenium has to be run from the same domain and port as your application (in this case: http://localhost/some/path/to/Selenium). You can find more information about that in the Wiki.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=1072&messageID=3015#3015

---------------------------------------------------------------------
To unsubscribe, e-mail: selenium-dev-unsubscribe@...
For additional commands, e-mail: selenium-dev-help@...


Parent Message unknown RE: Javascript problems with Firefox and not with IE

by Mike Taber :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I've been encountering this same problem...
It appears from my little bit of "digging" to be specific to Firefox
1.5.
Drop back a version and your tests should run.

Now to figure out why this is an issue with Firefox 1.5 ?

-----Original Message-----
From: Tarun Khurana [mailto:forum-selenium-dev@...]
Sent: Monday, January 23, 2006 4:17 AM
To: selenium-dev@...
Subject: Javascript problems with Firefox and not with IE

why is this javascript error coming when I run the
open(http://localhost) in Firefox 1.5

Error: [Exception... "'Permission denied to call method
Location.toString' when calling method:
[nsIDOMEventListener::handleEvent]"  nsresult: "0x8057001e
(NS_ERROR_XPC_JS_THREW_STRING)"  location: "<unknown>"  data: no]


It works perfectly fine with IE
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=1072&messageID=2991#2991

---------------------------------------------------------------------
To unsubscribe, e-mail: selenium-dev-unsubscribe@...
For additional commands, e-mail: selenium-dev-help@...


Re: Javascript problems with Firefox and not with IE

by R-24 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

If i continue with the method that u r telling, i am able to access the localhost, but then i get the same exception when I access the public domian site.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=1072&messageID=3042#3042

---------------------------------------------------------------------
To unsubscribe, e-mail: selenium-dev-unsubscribe@...
For additional commands, e-mail: selenium-dev-help@...


Re: Javascript problems with Firefox and not with IE

by R-24 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes, that is because localhost and the public domain are considered different domains. We are working on some very simple proxies (that you can configure your browser to use) that will make "/selenium" available to all domains.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=1072&messageID=3047#3047

---------------------------------------------------------------------
To unsubscribe, e-mail: selenium-dev-unsubscribe@...
For additional commands, e-mail: selenium-dev-help@...


Re: Javascript problems with Firefox and not with IE

by goldenbolt :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have just run into the same error in firefox 3.03 I'm attempting to login and view the quote list at the following site. http://netdania.com/Products/QuoteList/QuoteList.aspx and receive the same error message:  Error: [Exception... "'Permission denied to call method Location.toString' when calling method: "

I did confirm that it is working just fine in IE.  Any ideas on how to fix.

Godenbolt
R-24 wrote:
why is this javascript error coming when I run the open(http://localhost) in Firefox 1.5

Error: [Exception... "'Permission denied to call method Location.toString' when calling method: [nsIDOMEventListener::handleEvent]"  nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)"  location: "<unknown>"  data: no]


It works perfectly fine with IE
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=1072&messageID=2991#2991

---------------------------------------------------------------------
To unsubscribe, e-mail: selenium-dev-unsubscribe@openqa.org
For additional commands, e-mail: selenium-dev-help@openqa.org