Methods
This section describes the methods supported by the Diagnostics Engine.
In this section
| Topic | Description |
|---|---|
|
Registers an event listener of the given type to the object. | |
|
Unregisters a previously registered event listener of the given type. | |
|
Adds a custom user agent (UA) string with a category of "Custom" into the collection of UA strings. | |
|
Calls the Win32 API AllowSetForegroundWindow to allow a specific process to go to the foreground. | |
|
Calculate the style tracing info. All calls to getTracedStyles following this call return data frozen to the point of this call. | |
|
Clears the accuracy of the latitude and longitude properties. | |
|
Clears all GeoLocation parameters. | |
|
Clears the browser's cookies. | |
|
Clears the browser's cookies for the current domain. | |
|
Removes all URLs in a redirection table. | |
|
Clears the current altitude property. | |
|
Clears the current accuracy of the altitude property. | |
|
Clears the AppCache. | |
|
Clears the browser cache. | |
|
Clears the browser cache for the current page. | |
|
Clears the current heading, or direction of travel. | |
|
Removes an indexedDB object. | |
|
Removes the callback associated with the setInterval call. | |
|
Clears the current latitude for GeoLocation. | |
|
Clears the current longitude for GeoLocation. | |
|
Clears the current ground speed for GeoLocation. | |
|
Removes the callback associated with the setTimeout call. | |
|
Removes all entries of a specific URL in a table of redirects. | |
|
Clears a worker profile. | |
|
Creates a new cookie. | |
|
Returns a function wrapping the passed-in function. | |
|
Returns a function wrapping the passed-in function. | |
|
Deletes a cookie. | |
|
Disables all cookies. | |
|
Synchronously runs a script in the WebWorkerDiagnosticsDiagnostics object model. | |
|
Asynchronously executes a script in the DiagnosticsWebWorker object model. | |
|
Returns whether a passed element is currently active. | |
|
Returns an array of DiagnosticsCookies objects. | |
|
Returns a list of all Cascading Style Sheets (CSS) properties that have been applied to an element. | |
|
Returns a list of styles associated with an element which could have applied a given property. | |
|
Gets a window from a different domain than current page. | |
|
Returns an unordered list of properties that have been modified in the DOM after the style declaration was created. | |
|
Gets an element based on its unique id. | |
|
Returns a DiagnosticsElementEventHelper object for a specific element. | |
|
Returns a string containing a specific element’s innerHTML content. | |
|
Returns a string containing a specific element’s outerHTML content. | |
|
Returns an array of DiagnosticsElementEventListeners. | |
|
Returns whether a passed element is currently in focus. | |
|
Returns whether a passed element currently is in a hover state. | |
|
Returns a list of elements from which this element could a given property. | |
|
Returns whether a passed element is in a link state with associated CSS styling. | |
|
Returns a snapshot of the diagnostics engine on the main UI thread. | |
|
Returns a worker memory profile for a specific URN. | |
|
Returns a snapshot of the worker thread and returns a URN. | |
|
Returns an ordered list of properties that were parsed when the style declaration was created. | |
|
Returns an object that contains the line, column, and file location of a style declaration in its original source. | |
|
Obtains the specificity of a passed selector or list of selectors, as per the W3C spec on selector specificity. | |
|
Returns an object that represents the style tracing for an element. | |
|
Returns whether a passed element is in a visited state. | |
|
Sets or gets the signal emulation to use when the device does not have a geolocation signal. | |
|
Get or set the heading or direction. | |
|
Displays a highlighting box and rules for a given element, using CSS colors passed in string form for each of the box-model regions. | |
|
Returns whether a property can be inherited by this element. | |
|
Get or set the latitude in the GeoLocation object, in decimal degrees. | |
|
Get or set the longitude in the DiagnosticsGeoLocation object, in decimal degrees. | |
|
Asynchronously posts a message to the web worker thread. | |
|
Posts a message to a DiagnosticsWebWorker object in the Diagnostics object model. | |
|
Refreshes the current page. | |
|
Remove a custom user agent string (UA) from the collection of UA strings. | |
|
Resets the viewport to cached dimensions and orientation. | |
|
Sends a message to the COM host of the Diagnostics Script Engine. | |
|
Sets a passed element to an active state. | |
|
Sets the browser mode. | |
|
Applies the changes made to the DiagnosticsCookieEntry to the page. | |
|
Removes any applied value from the current User Agent string, and resets it to the default for the page. | |
|
Gets or sets the viewport's dimensions in pixels. | |
|
Sets an element to a focused state. | |
|
Sets a passed element to a hovered state. | |
|
Calls a callback function after every delay in milliseconds has elapsed. | |
|
Sets a passed element to a link state with associated CSS styling. | |
|
Sets the current position in GeoLocation. | |
|
Invokes a callback function after a set number of milliseconds has passed. | |
|
Replaces a URL with another to cause a redirect. | |
|
Sets whether a passed element is currently in a visited state. | |
|
Causes Windows Internet Explorer to try to take the Win32 foreground for itself. | |
|
Takes a screen capture of the current document. | |
|
Starts the JavaScript garbage collector. |