Readonly
DOMDocumentDisable entire author style level (including HTML presentation hints), for this viewer but not any child viewers.
Readonly
beforeExposes whether we're in the process of firing the beforeunload event. In this case, the corresponding docshell will not allow navigation.
Readonly
deviceThe actual full zoom in effect, as modified by the device context. For a requested full zoom, the device context may choose a slightly different effectiveFullZoom to accomodate integer rounding of app units per dev pixel. This property returns the actual zoom amount in use, though it may not be good user experience to report that a requested zoom of 90% is actually 89.1%, for example. This value is provided primarily to support media queries of dppx values, because those queries are matched against the actual native device pixel ratio and the actual full zoom.
You should only need this for testing.
Readonly
historyGet the history entry that this viewer will save itself into when destroyed. Can return null
Readonly
inExposes whether we're blocked in a call to permitUnload.
Returns whether this content viewer is in a hidden state.
Only Gecko internal code should set the attribute!
Readonly
isReadonly
isIndicates when we're in a state where content shouldn't be allowed to trigger a tab-modal prompt (as opposed to a window-modal prompt) because we're part way through some operation (eg beforeunload) that shouldn't be rentrant if the user closes the tab while the prompt is showing. See bug 613800.
Readonly
loadReadonly
presReadonly
presThe previous content viewer, which has been |close|d but not |destroy|ed.
Optional
aInstancePtr: objectA run time mechanism for interface discovery.
NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.
aInstancePtr must not be null.
[in] A requested interface IID
[out] A pointer to an interface pointer to receive the result.
All users of a content viewer are responsible for calling both close() and destroy(), in that order.
close() should be called when the load of a new page for the next content viewer begins, and destroy() should be called when the next content viewer replaces this one.
|historyEntry| sets the session history entry for the content viewer. If this is null, then Destroy() will be called on the document by close(). If it is non-null, the document will not be destroyed, and the following actions will happen when destroy() is called (*):
(*) unless the document is currently being printed, in which case it will never be saved in session history.
Returns the preferred width and height of the content, constrained to the given maximum values. If either maxWidth or maxHeight is less than or equal to zero, that dimension is not constrained.
If a pref width is provided, it is max'd with the min-content size.
All input and output values are in CSS pixels.
Attach the content viewer to its DOM window and docshell.
A state object that might be useful in attaching the DOM window.
The history entry that the content viewer was stored in. The entry must have the docshells for all of the child documents stored in its child shell list.
Set collector for navigation timing data (load, unload events).
Generated using TypeDoc
Returns the same thing as getDocument(), but for use from script only. C++ consumers should use getDocument().