nsIWebBrowserChrome3

nsIWebBrowserChrome3 is an extension to nsIWebBrowserChrome2.

Methods

onBeforeLinkTraversal(originalTarget, linkURI, linkNode, isAppTab)

Determines the appropriate target for a link.

Parameters

originalTarget The original link target.
linkURI Link destination URI.
aDOMNode Link DOM node.
isAppTab Whether or not the link is in an app tab.

Returns

A new link target, if appropriate. Otherwise returns originalTarget.

shouldLoadURI(aDocShell, aURI, aReferrer)

Determines whether a load should continue.

Parameters

aDocShell The docshell performing the load.
aURI The URI being loaded.
aReferrer The referrer of the load.