This interface represents a content node that loads objects.
[scriptable, uuid(90ab443e-3e99-405e-88c9-9c42adaa3217)]
interface nsIObjectLoadingContent : nsISupports
Constants
const
unsigned long
TYPE_LOADING = 0
const
unsigned long
TYPE_IMAGE = 1
const
unsigned long
TYPE_PLUGIN = 2
const
unsigned long
TYPE_DOCUMENT = 3
const
unsigned long
TYPE_NULL = 4
Attributes
The actual mime type (the one we got back from the network request) for the element.
readonly attribute
ACString
actualType
Gets the type of the content that's currently loaded. See the constants above for the list of possible values.
readonly attribute
unsigned long
displayedType
Returns the plugin instance if it has already been instantiated. This will never instantiate the plugin and so is safe to call even when content script must not execute.
[noscript]
readonly attribute
nsIPluginInstance
pluginInstance
Methods
Makes sure that a frame for this object exists, and that the plugin is instantiated. This method does nothing if the type is not #TYPE_PLUGIN. There is no guarantee that there will be a frame after this method is called; for example, the node may have a display:none style. If plugin instantiation is possible, it will be done synchronously by this method, and the plugin instance will be returned. A success return value does not necessarily mean that the instance is nonnull. This is a noscript method because it is internal and will go away once plugin loading moves to content. @note If there is an error instantiating the plugin, this method will trigger fallback to replacement content, and the type will change (and this method will return a failure code)
[noscript]
nsIPluginInstance
ensureInstantiation()
Gets the content type that corresponds to the give MIME type. See the constants above for the list of possible values. If nothing else fits, TYPE_NULL will be returned.
unsigned long
getContentTypeForMIMEType(in AUTF8String aMimeType)
Tells the content about an associated object frame. This can be called multiple times for different frames. This is noscript because this is an internal method that will go away, and because nsIObjectFrame is unscriptable.
[noscript]
void
hasNewFrame(in nsIObjectFrame aFrame)
Compare to: