PDA

View Full Version : Ext.MessageBox and Exception 0x8057001e, possible cause...


czschech
04-20-2007, 06:30 AM
I get this error, when I close a MessageBox with any button (ok, cancel, etc.)

[Exception... "'Die Erlaubnis für das Lesen der Eigenschaft HTMLDivElement.nodeType wurde verweigert' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no]

Line 0

I traced the Problem to Ext.Shadow.

When I comment out this:
if(this.shadow){
this.shadow.hide();
}
in Ext.BasicDialog.hide(), I don't get the error.
The problem comes from setting the style.display property of the shadow div to none...

changing:
this.shadow.hide()
to
this.shadow.hide.defer(100, this.shadow)
solved the problem for me...

jarrednicholls
04-20-2007, 09:59 AM
I also receive this exception, but it's not specific to MessageBox. I have a BasicDialog with a simple form in it and an added button. When I click on the button (whose handler just does an alert('hi');), I get this exception:

Error: [Exception... "'Permission denied to get property HTMLDivElement.nodeType' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame :: http://localhost:58096/Default.aspx :: anonymous :: line 39" data: no]
Source File: http://localhost:58096/Default.aspx
Line: 39

Granted, it's not always being thrown at the same line or same JS file...but it's the same error claiming access is denied to the nodeType property of a DIV. If I defer the alert() for 1000ms, it doesn't occur. Note, this only happens to me in Firefox (2.0.0.3), doesn't happen in IE7 or Safari 2.

blubbi
06-22-2007, 03:53 AM
Hello, is a little Bug into your Profile from Firefox ...
Change a Profile, then works fine.
Its a Firefox Bug ... It's not a bug, it's a feature! :)) ... :-?

I Have found this in a Firefox Bug - Blog ...