-
Notifications
You must be signed in to change notification settings - Fork 174
Closed
Labels
Description
I'm looking at implementing the install event in Chrome and there are a few things that are implied but not explicit in the Installation Events section.
- It doesn't explicitly state the type/interface of the event object (which I assume is Event because there's no special metadata).
- The Installation algorithm states when to fire the
"install"event at the window object, but this isn't mentioned or linked up in the Installation Events section. It isn't explicit that there's a connection between the"install"event being fired in Section 2.4 and theoninstallIDL attribute. (This section doesn't ever mention the circumstances under which the event is dispatched, despite it being mentioned previously.)
Bascially, you can figure out what's going on from reading the example, but I feel it isn't concrete in the spec, the way events in Service Workers spec are defined.
Also, I'm not really familiar with the way events are normally added to the Window object (please correct me if ignorant), but I didn't think defining a mixin interface was necessary. In WebIDL, can't you just write:
partial interface Window {
attribute EventHandler oninstall;
}to extend the Window object without it having to implement a new interface?