[Project_owners] Global listeer
Nickolay Ponomarev
asqueella at gmail.com
Fri Nov 16 10:07:44 PST 2007
On Nov 16, 2007 1:37 AM, Michael Vincent van Rantwijk, MultiZilla
<mv_van_rantwijk at yahoo.com> wrote:
> Nickolay Ponomarev wrote:
> > On Nov 15, 2007 6:34 PM, Michael Vincent van Rantwijk, MultiZilla
> > <mv_van_rantwijk at yahoo.com> wrote:
> >>> The listener added via window.addEventListener('load' ...) will not
> >>> run more than once, no? It handles the chrome window's load.
> >> Normally yes, but anyone can trigger a load event on a chrome window,
> >> for whatever reason, and that is when things go wrong here.
> >>
> > That evil person can call the event handler directly as well.
>
> This is about people getting confused because of all different window
> types, nothing else.
>
Didn't understand this. Do you mean the additional 'load' events may
be triggered by poorly written/tested extensions?
> > This is
> > not an issue, extensions are supposed to behave in a sensible way,
> > otherwise the browser (and the user) is screwed.
>
> Not an issue? Why do you think people _have_ to check for additional
> load events in the first place?
>
My point is that they don't have to, so it's kinda weird to ask me why
they _have_ to do it.
Nickolay
More information about the Project_owners
mailing list