Browser Metrics:Data Collectors: Difference between revisions

Jump to navigation Jump to search
Line 75: Line 75:
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.


Element name: <tt>window</tt>
; Element <tt>&lt;window&gt;</tt>
 
: ''Attributes:''
Attributes:
:; <tt>action = [string]</tt>
 
:: Indicates the action that happened for this window.  Possible values are:
<tt>action = [string]</tt>
::* <tt>create</tt>: a new toplevel or child DOM Window was created
 
::* <tt>open</tt>: a toplevel DOM Window was opened
Indicates the action that happened for this window.  Possible values are:
::* <tt>close</tt>: a toplevel DOM Window was closed
<ul>
::* <tt>destroy</tt>: a toplevel or child DOM Window was destroyed
<li><tt>create</tt>: a new toplevel or child DOM Window was created</li>
:; <tt>windowid = [integer]</tt>
<li><tt>open</tt>: a toplevel DOM Window was opened</li>
:: 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.
<li><tt>close</tt>: a toplevel DOM Window was closed</li>
:; <tt>parent = [integer]</tt> (optional)
<li><tt>destroy</tt>: a toplevel or child DOM Window was destroyed</li>
:: 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.
</ul>
:; <tt>chrome = [boolean]</tt> (optional)
 
:: For create events, whether the new window has chrome privileges.  Defaults to false.
<tt>windowid = [integer window id]</tt>
:; <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.
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)
 
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)
 
For create events, whether the new window has chrome privileges.  Defaults to false.
 
<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===
272

edits

Navigation menu