From: Dan W. <dy...@da...> - 2003-07-24 02:11:00
|
I really should use the email address im signed up for on the list -----Forwarded Message----- To: dyn...@li... Subject: Re: [Dynapi-Dev] Permission denied in Mozilla 1.4 Date: 23 Jul 2003 21:10:08 -0500 Well, using the attached html file, i found out a little bit more about this issue, but it appears to get more and more confusing. The file attached basically dumps the entire dom name/value pairs of r/r.parentNode/... onto the screen to be examined. (this has been edited a few times, so it might not flow very well) i finally got it working using the same code as raymond first used, and using the below change when i made sure that the scan function was only called once. I think we probably have a race condition happening somewhere here. (for those not familiar with threading, more than one thread/process/piece of code, etc manipulating a single variable at the same time) To get the error to go away, i just declared a new global variable named numb to 0, then in the onmouseout(i removed the onmouseover for testing) i checked to see if it was still zero, if it was, i assigned 1 to it, and called the function. When i changed the javascript code to read: var r = elm; instead of: var r = e.relatedTarget; it appears to work correctly, but mozilla also adds some intermediate wrappers for the html elements, for example there is a node named INPUT, and then a node named HTMLInputElement part of the problems i was having debugging this is that the scan function is called multiple times OK, some of the above might be incorrect now that i have played with this further, but the bad results started coming back up(it displays the HTML node first) when i added the onmouseover handler back in. This tells me that we have more of a race condition than i first thought, and it might actually be a bug on the mozilla side. I think that the scan function is being called multiple times, even though i tried to prevent that. probably has something to do with the global variable 'event' being changed as we are operating on it in the scan function. Before i screw this up further im sending this to the list. Hope someone can benefit from this, Dan Willemsen On Mon, 2003-07-21 at 08:57, Raymond Irving wrote: > Hello, > > Here's how we can simulate the error in Mozilla 1.4: > > Error: uncaught exception: Permission denied to get > property HTMLDivElement.parentNode > > Is this an error in moz 1.4 or an I doing something > wrong in the following code? > > <script> > function scan(e,elm) { > var r = e.relatedTarget; > while(r && r.parentNode){ > r = r.parentNode > //alert(r) > } > } > </script> > <div id="dv" > style="position:absolute;left:100;top:100"> > <form name="frm"> > <input type="textbox" name="tbox" value="test..." > onmouseover="scan(event,this)" > onmouseout="scan(event,this)"> > </form> > </div> > > > -- > Raymond Irving > > > __________________________________ > Do you Yahoo!? > SBC Yahoo! DSL - Now only $29.95 per month! > http://sbc.yahoo.com > > > ------------------------------------------------------- > This SF.net email is sponsored by: VM Ware > With VMware you can run multiple operating systems on a single machine. > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the > same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://www.mail-archive.com/dyn...@li.../ -- Dan Willemsen <dy...@da...> |
From: Jeremy W. <je...@ma...> - 2003-07-29 20:04:44
|
> Can anyone offer some help with this or post a message > to mozilla? I've sumbitted a bug report on http://bugzilla.mozilla.com about this error. I did a search on the bugzilla system and was unable to find the exact bug, although there are several similar 'Permission Denied' bugs listed. Hopefully, someone from Mozilla will get back to me on this. Jeremy Wanamaker |
From: Jeremy W. <je...@ma...> - 2003-07-30 11:22:02
|
I posted the bug to bugzilla.mozilla.org. Here is their reply with a link to the bug report URL. Jeremy ----- Original Message ----- From: <bug...@mo...> To: <je...@ma...> Sent: Tuesday, July 29, 2003 7:26 PM Subject: [Bug 214340] Error: uncaught exception: Permission denied to get property HTMLDivElement.parentNode > http://bugzilla.mozilla.org/show_bug.cgi?id=214340 > > > bzb...@mi... changed: > > What |Removed |Added > -------------------------------------------------------------------------- -- > CC| |bzb...@mi... > Status Whiteboard| |DUPEME > > > > > ------- Additional Comments From bzb...@mi... 2003-07-29 16:26 ------- > That's because the relatedTarget is the anonymous <div> inside the editor widget... > > This is a duplicate of the bug on that <div> being generally visible to events. > > > -- > Configure bugmail: http://bugzilla.mozilla.org/userprefs.cgi?tab=email > |
From: Raymond I. <xw...@ya...> - 2003-07-30 14:06:24
|
I'm not sure I understand the response from the bugzilla group. Are they acknowledging this to be a mozilla bug? Or is it that we're doing something wrong? -- Raymond Irving --- Jeremy Wanamaker <je...@ma...> wrote: > I posted the bug to bugzilla.mozilla.org. Here is > their reply with a link to > the bug report URL. > > Jeremy > > ----- Original Message ----- > From: <bug...@mo...> > To: <je...@ma...> > Sent: Tuesday, July 29, 2003 7:26 PM > Subject: [Bug 214340] Error: uncaught exception: > Permission denied to get > property HTMLDivElement.parentNode > > > > http://bugzilla.mozilla.org/show_bug.cgi?id=214340 > > > > > > bzb...@mi... changed: > > > > What |Removed > |Added > > > -------------------------------------------------------------------------- > -- > > CC| > |bzb...@mi... > > Status Whiteboard| > |DUPEME > > > > > > > > > > ------- Additional Comments From bzb...@mi... > 2003-07-29 > 16:26 ------- > > That's because the relatedTarget is the anonymous > <div> inside the editor > widget... > > > > This is a duplicate of the bug on that <div> being > generally visible to > events. > > > > > > -- > > Configure bugmail: > http://bugzilla.mozilla.org/userprefs.cgi?tab=email > > > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built > ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are > available now. > Download today and enter to win an XBOX or Visual > Studio .NET. > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://www.mail-archive.com/dyn...@li.../ __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com |
From: Jeremy W. <je...@ma...> - 2003-07-30 17:24:49
|
I also found the comment to be a little vague. After further inquiry, I believe the error is related to a bug in Mozilla. The bug I submitted has been marked as a duplicate. Here is the link to the original bug: http://bugzilla.mozilla.org/show_bug.cgi?id=208427 Jeremy ----- Original Message ----- From: "Raymond Irving" <xw...@ya...> To: <dyn...@li...> Sent: Wednesday, July 30, 2003 10:06 AM Subject: Re: [Dynapi-Dev] Permission denied in Mozilla 1.4 > > I'm not sure I understand the response from the > bugzilla group. Are they acknowledging this to be a > mozilla bug? Or is it that we're doing something > wrong? > > -- > Raymond Irving > > --- Jeremy Wanamaker <je...@ma...> wrote: > > I posted the bug to bugzilla.mozilla.org. Here is > > their reply with a link to > > the bug report URL. > > > > Jeremy > > > > ----- Original Message ----- > > From: <bug...@mo...> > > To: <je...@ma...> > > Sent: Tuesday, July 29, 2003 7:26 PM > > Subject: [Bug 214340] Error: uncaught exception: > > Permission denied to get > > property HTMLDivElement.parentNode > > > > > > > http://bugzilla.mozilla.org/show_bug.cgi?id=214340 > > > > > > > > > bzb...@mi... changed: > > > > > > What |Removed > > |Added > > > > > > -------------------------------------------------------------------------- > > -- > > > CC| > > |bzb...@mi... > > > Status Whiteboard| > > |DUPEME > > > > > > > > > > > > > > > ------- Additional Comments From bzb...@mi... > > 2003-07-29 > > 16:26 ------- > > > That's because the relatedTarget is the anonymous > > <div> inside the editor > > widget... > > > > > > This is a duplicate of the bug on that <div> being > > generally visible to > > events. > > > > > > > > > -- > > > Configure bugmail: > > http://bugzilla.mozilla.org/userprefs.cgi?tab=email > > > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email sponsored by: Free pre-built > > ASP.NET sites including > > Data Reports, E-commerce, Portals, and Forums are > > available now. > > Download today and enter to win an XBOX or Visual > > Studio .NET. > > > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 > > _______________________________________________ > > Dynapi-Dev mailing list > > Dyn...@li... > > > http://www.mail-archive.com/dyn...@li.../ > > > __________________________________ > Do you Yahoo!? > Yahoo! SiteBuilder - Free, easy-to-use web site design software > http://sitebuilder.yahoo.com > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://www.mail-archive.com/dyn...@li.../ > |
From: Raymond I. <xw...@ya...> - 2003-07-30 17:41:00
|
Well I guess we just have to wait on Mozilla to fix this :( -- Raymond Irving --- Jeremy Wanamaker <je...@ma...> wrote: > I also found the comment to be a little vague. After > further inquiry, I > believe the error is related to a bug in Mozilla. > The bug I submitted has > been marked as a duplicate. Here is the link to the > original bug: > > http://bugzilla.mozilla.org/show_bug.cgi?id=208427 > > Jeremy > > ----- Original Message ----- > From: "Raymond Irving" <xw...@ya...> > To: <dyn...@li...> > Sent: Wednesday, July 30, 2003 10:06 AM > Subject: Re: [Dynapi-Dev] Permission denied in > Mozilla 1.4 > > > > > > I'm not sure I understand the response from the > > bugzilla group. Are they acknowledging this to be > a > > mozilla bug? Or is it that we're doing something > > wrong? > > > > -- > > Raymond Irving > > > > --- Jeremy Wanamaker <je...@ma...> > wrote: > > > I posted the bug to bugzilla.mozilla.org. Here > is > > > their reply with a link to > > > the bug report URL. > > > > > > Jeremy > > > > > > ----- Original Message ----- > > > From: <bug...@mo...> > > > To: <je...@ma...> > > > Sent: Tuesday, July 29, 2003 7:26 PM > > > Subject: [Bug 214340] Error: uncaught exception: > > > Permission denied to get > > > property HTMLDivElement.parentNode > > > > > > > > > > > http://bugzilla.mozilla.org/show_bug.cgi?id=214340 > > > > > > > > > > > > bzb...@mi... changed: > > > > > > > > What |Removed > > > |Added > > > > > > > > > > -------------------------------------------------------------------------- > > > -- > > > > CC| > > > |bzb...@mi... > > > > Status Whiteboard| > > > |DUPEME > > > > > > > > > > > > > > > > > > > > ------- Additional Comments From > bzb...@mi... > > > 2003-07-29 > > > 16:26 ------- > > > > That's because the relatedTarget is the > anonymous > > > <div> inside the editor > > > widget... > > > > > > > > This is a duplicate of the bug on that <div> > being > > > generally visible to > > > events. > > > > > > > > > > > > -- > > > > Configure bugmail: > > > > http://bugzilla.mozilla.org/userprefs.cgi?tab=email > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email sponsored by: Free pre-built > > > ASP.NET sites including > > > Data Reports, E-commerce, Portals, and Forums > are > > > available now. > > > Download today and enter to win an XBOX or > Visual > > > Studio .NET. > > > > > > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 > > > _______________________________________________ > > > Dynapi-Dev mailing list > > > Dyn...@li... > > > > > > http://www.mail-archive.com/dyn...@li.../ > > > > > > __________________________________ > > Do you Yahoo!? > > Yahoo! SiteBuilder - Free, easy-to-use web site > design software > > http://sitebuilder.yahoo.com > > > > > > > ------------------------------------------------------- > > This SF.Net email sponsored by: Free pre-built > ASP.NET sites including > > Data Reports, E-commerce, Portals, and Forums are > available now. > > Download today and enter to win an XBOX or Visual > Studio .NET. > > > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 > > _______________________________________________ > > Dynapi-Dev mailing list > > Dyn...@li... > > > http://www.mail-archive.com/dyn...@li.../ > > > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built > ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are > available now. > Download today and enter to win an XBOX or Visual > Studio .NET. > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://www.mail-archive.com/dyn...@li.../ __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com |