53
edits
(trying to make window events be more visibly grouped) |
|||
Line 23: | Line 23: | ||
* non-default values for built-in prefs | * non-default values for built-in prefs | ||
===Window | ===Window Event=== | ||
Window events log various actions pertaining to DOM Windows, which provide a context for load events. | Window events log various actions pertaining to DOM Windows, which provide a context for load events. | ||
Window Event Attributes: | |||
<tt>action = [string]</tt> | |||
Indicates the action that happened for this window. Possible values are: | |||
<li><tt>create</tt>: a new toplevel or child DOM Window was created</li> | |||
<li><tt>open</tt>: a toplevel DOM Window was opened</li> | |||
<li><tt>close</tt>: a toplevel DOM Window was closed</li> | |||
<li><tt>destroy</tt>: a toplevel or child DOM Window was destroyed</li> | |||
<tt>window = [integer window id]</tt> | |||
The id of the affected window. Ids are assigned starting from 0 and are never reused during that session. The window id is not unique across sessions. | |||
<tt>parent = [integer window id]</tt> (optional) | <tt>parent = [integer window id]</tt> (optional) | ||
For create events, the id of the parent of the newly created window. Toplevel windows do not have a parent, so this attribute will not be set. | |||
<tt>chrome = [boolean]</tt> (optional) | <tt>chrome = [boolean]</tt> (optional) | ||
For create events, whether the new window has chrome privileges. Defaults to false. | |||
<tt>opener = [integer window id]</tt> (optional) | <tt>opener = [integer window id]</tt> (optional) | ||
For open events, the id of the opener DOM window. Windows opened from native code may not have an opener, and this attribute will not be set. | |||
===Load Event=== | ===Load Event=== |
edits