Packagedom.objects
Interfacepublic interface NavigatorAbilities
Implementors Navigator

Objects implementing the Navigator interface must also implement the NavigatorAbilities interface. This interface is defined separately so that other specifications can re-use parts of the Navigator interface.

See also

W3C - HTML 5: NavigatorID


Public Methods
 MethodDefined 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
  
HTML 5 registerContentHandler(mimeType:DOMString, url:DOMString, title:DOMString):void
Allows web sites to register themselves as possible handlers for content of a particular MIME type.
NavigatorAbilities
  
HTML 5 registerProtocolHandler(scheme:DOMString, url:DOMString, title:DOMString):void
Allows web sites to register themselves as possible handlers for particular protocols.
NavigatorAbilities
Method Detail
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


Example
         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


Example
If your web application is located at http://www.example.com, you can register a protocol handler for it to handle "mailto" like this:
navigator.registerProtocolHandler("mailto", "http://www.example.com/?uri=%s", "Example Mail");