Package | dom.objects |
Interface | public interface NavigatorAbilities |
Implementors | Navigator |
See also
Method | Defined By | ||
---|---|---|---|
HTML 5 getStorageUpdates():void
The getStorageUpdates() method, when invoked, must, if the storage mutex is owned by the event loop of the task that resulted in the method
being called, release the storage mutex so that it is once again free. | NavigatorAbilities | ||
Allows web sites to register themselves as possible handlers for content of a particular MIME type. | NavigatorAbilities | ||
Allows web sites to register themselves as possible handlers for particular protocols. | NavigatorAbilities |
HTML 5 getStorageUpdates | () | method |
public function getStorageUpdates():void
The getStorageUpdates() method, when invoked, must, if the storage mutex is owned by the event loop of the task that resulted in the method being called, release the storage mutex so that it is once again free. Otherwise, it must do nothing.
See also
HTML 5 registerContentHandler | () | method |
public function registerContentHandler(mimeType:DOMString, url:DOMString, title:DOMString):void
Allows web sites to register themselves as possible handlers for content of a particular MIME type.
Note: For Firefox 2, only the application/vnd.mozilla.maybe.feed, application/atom+xml, and application/rss+xml MIME types are supported. All values have the same effect, and the registered handler will receive feeds in all Atom and RSS versions.
Note: Web sites may only register content handlers for themselves. For security reasons, it's not possible for an extension or web site to register content handlers targeting other sites.
Parameters
mimeType:DOMString — The desired MIME type as a string.
| |
url:DOMString — The URI to the handler as a string.
| |
title:DOMString — The title of the handler presented to the user as a string.
|
See also
navigator.registerContentHandler("application/vnd.mozilla.maybe.feed", "http://www.example.tld/?foo=%s", "My Feed Reader");
HTML 5 registerProtocolHandler | () | method |
public function registerProtocolHandler(scheme:DOMString, url:DOMString, title:DOMString):void
Allows web sites to register themselves as possible handlers for particular protocols.
Parameters
scheme:DOMString — The protocol the site wishes to handle, specified as a string.
| |
url:DOMString — The URI to the handler as a string. You can include "%s" to indicate where to insert the escaped URI of the document to be handled.
| |
title:DOMString — The title of the handler presented to the user as a string.
|
See also
navigator.registerProtocolHandler("mailto", "http://www.example.com/?uri=%s", "Example Mail");