nsBrowserContentHandler.js File Reference

Go to the source code of this file.

Functions

function shouldLoadURI (aURI)
 
function resolveURIInternal (aCmdLine, aArgument)
 
function needHomepageOverride (prefb)
 
function copyPrefOverride ()
 
function openWindow (parent, url, target, features, args, noExternalArgs)
 
function openPreferences ()
 
function getMostRecentWindow (aType)
 
function getMostRecentBrowserWindow ()
 
function doSearch (searchTerm, cmdLine)
 
function handURIToExistingBrowser (uri, location, cmdLine)
 
function NSGetModule (compMgr, fileSpec)
 

Variables

const nsISupports = Components.interfaces.nsISupports
 
const nsIBrowserDOMWindow = Components.interfaces.nsIBrowserDOMWindow
 
const nsIBrowserHandler = Components.interfaces.nsIBrowserHandler
 
const nsIBrowserHistory = Components.interfaces.nsIBrowserHistory
 
const nsIChannel = Components.interfaces.nsIChannel
 
const nsICommandLine = Components.interfaces.nsICommandLine
 
const nsICommandLineHandler = Components.interfaces.nsICommandLineHandler
 
const nsIContentHandler = Components.interfaces.nsIContentHandler
 
const nsIDocShellTreeItem = Components.interfaces.nsIDocShellTreeItem
 
const nsIDOMChromeWindow = Components.interfaces.nsIDOMChromeWindow
 
const nsIDOMWindow = Components.interfaces.nsIDOMWindow
 
const nsIFactory = Components.interfaces.nsIFactory
 
const nsIFileURL = Components.interfaces.nsIFileURL
 
const nsIHttpProtocolHandler = Components.interfaces.nsIHttpProtocolHandler
 
const nsIInterfaceRequestor = Components.interfaces.nsIInterfaceRequestor
 
const nsINetUtil = Components.interfaces.nsINetUtil
 
const nsIPrefBranch = Components.interfaces.nsIPrefBranch
 
const nsIPrefLocalizedString = Components.interfaces.nsIPrefLocalizedString
 
const nsISupportsString = Components.interfaces.nsISupportsString
 
const nsIURIFixup = Components.interfaces.nsIURIFixup
 
const nsIWebNavigation = Components.interfaces.nsIWebNavigation
 
const nsIWindowMediator = Components.interfaces.nsIWindowMediator
 
const nsIWindowWatcher = Components.interfaces.nsIWindowWatcher
 
const nsICategoryManager = Components.interfaces.nsICategoryManager
 
const nsIWebNavigationInfo = Components.interfaces.nsIWebNavigationInfo
 
const nsIBrowserSearchService = Components.interfaces.nsIBrowserSearchService
 
const nsICommandLineValidator = Components.interfaces.nsICommandLineValidator
 
const NS_BINDING_ABORTED = Components.results.NS_BINDING_ABORTED
 
const NS_ERROR_WONT_HANDLE_CONTENT = 0x805d0001
 
const NS_ERROR_ABORT = Components.results.NS_ERROR_ABORT
 
const URI_INHERITS_SECURITY_CONTEXT
 
const OVERRIDE_NONE = 0
 
const OVERRIDE_NEW_PROFILE = 1
 
const OVERRIDE_NEW_MSTONE = 2
 
const NO_EXTERNAL_URIS = 1
 
var nsBrowserContentHandler
 
const bch_contractID = "@mozilla.org/browser/clh;1"
 
const bch_CID = Components.ID("{5d0ce354-df01-421a-83fb-7ead0990c24e}")
 
const CONTRACTID_PREFIX = "@mozilla.org/uriloader/content-handler;1?type="
 
var nsDefaultCommandLineHandler
 
const dch_contractID = "@mozilla.org/browser/final-clh;1"
 
const dch_CID = Components.ID("{47cd0651-b1be-4a0f-b5c4-10e5a573ef71}")
 
var Module
 

Function Documentation

function copyPrefOverride ( )

Definition at line 154 of file nsBrowserContentHandler.js.

function doSearch (   searchTerm,
  cmdLine 
)

Definition at line 267 of file nsBrowserContentHandler.js.

function getMostRecentBrowserWindow ( )

Definition at line 261 of file nsBrowserContentHandler.js.

Here is the caller graph for this function:

function getMostRecentWindow (   aType)

Definition at line 254 of file nsBrowserContentHandler.js.

Here is the caller graph for this function:

function handURIToExistingBrowser (   uri,
  location,
  cmdLine 
)

Definition at line 674 of file nsBrowserContentHandler.js.

Here is the call graph for this function:

function needHomepageOverride (   prefb)

Determines whether a home page override is needed. Returns: OVERRIDE_NEW_PROFILE if this is the first run with a new profile. OVERRIDE_NEW_MSTONE if this is the first run with a build with a different Gecko milestone (i.e. right after an upgrade). OVERRIDE_NONE otherwise.

Definition at line 125 of file nsBrowserContentHandler.js.

function NSGetModule (   compMgr,
  fileSpec 
)

Definition at line 950 of file nsBrowserContentHandler.js.

function openPreferences ( )

Definition at line 242 of file nsBrowserContentHandler.js.

Here is the call graph for this function:

function openWindow (   parent,
  url,
  target,
  features,
  args,
  noExternalArgs 
)

Definition at line 189 of file nsBrowserContentHandler.js.

Here is the call graph for this function:

Here is the caller graph for this function:

function resolveURIInternal (   aCmdLine,
  aArgument 
)

Definition at line 83 of file nsBrowserContentHandler.js.

function shouldLoadURI (   aURI)

Definition at line 74 of file nsBrowserContentHandler.js.

Here is the caller graph for this function:

Variable Documentation

const bch_CID = Components.ID("{5d0ce354-df01-421a-83fb-7ead0990c24e}")

Definition at line 671 of file nsBrowserContentHandler.js.

const bch_contractID = "@mozilla.org/browser/clh;1"

Definition at line 670 of file nsBrowserContentHandler.js.

const CONTRACTID_PREFIX = "@mozilla.org/uriloader/content-handler;1?type="

Definition at line 672 of file nsBrowserContentHandler.js.

const dch_CID = Components.ID("{47cd0651-b1be-4a0f-b5c4-10e5a573ef71}")

Definition at line 837 of file nsBrowserContentHandler.js.

const dch_contractID = "@mozilla.org/browser/final-clh;1"

Definition at line 836 of file nsBrowserContentHandler.js.

var Module

Definition at line 839 of file nsBrowserContentHandler.js.

const NO_EXTERNAL_URIS = 1

Definition at line 187 of file nsBrowserContentHandler.js.

const NS_BINDING_ABORTED = Components.results.NS_BINDING_ABORTED

Definition at line 67 of file nsBrowserContentHandler.js.

const NS_ERROR_ABORT = Components.results.NS_ERROR_ABORT

Definition at line 69 of file nsBrowserContentHandler.js.

const NS_ERROR_WONT_HANDLE_CONTENT = 0x805d0001

Definition at line 68 of file nsBrowserContentHandler.js.

var nsBrowserContentHandler

Definition at line 299 of file nsBrowserContentHandler.js.

var nsDefaultCommandLineHandler

Definition at line 699 of file nsBrowserContentHandler.js.

const nsIBrowserDOMWindow = Components.interfaces.nsIBrowserDOMWindow

Definition at line 40 of file nsBrowserContentHandler.js.

const nsIBrowserHandler = Components.interfaces.nsIBrowserHandler

Definition at line 41 of file nsBrowserContentHandler.js.

const nsIBrowserHistory = Components.interfaces.nsIBrowserHistory

Definition at line 42 of file nsBrowserContentHandler.js.

const nsIBrowserSearchService = Components.interfaces.nsIBrowserSearchService

Definition at line 64 of file nsBrowserContentHandler.js.

const nsICategoryManager = Components.interfaces.nsICategoryManager

Definition at line 62 of file nsBrowserContentHandler.js.

const nsIChannel = Components.interfaces.nsIChannel

Definition at line 43 of file nsBrowserContentHandler.js.

const nsICommandLine = Components.interfaces.nsICommandLine

Definition at line 44 of file nsBrowserContentHandler.js.

const nsICommandLineHandler = Components.interfaces.nsICommandLineHandler

Definition at line 45 of file nsBrowserContentHandler.js.

const nsICommandLineValidator = Components.interfaces.nsICommandLineValidator

Definition at line 65 of file nsBrowserContentHandler.js.

const nsIContentHandler = Components.interfaces.nsIContentHandler

Definition at line 46 of file nsBrowserContentHandler.js.

const nsIDocShellTreeItem = Components.interfaces.nsIDocShellTreeItem

Definition at line 47 of file nsBrowserContentHandler.js.

const nsIDOMChromeWindow = Components.interfaces.nsIDOMChromeWindow

Definition at line 48 of file nsBrowserContentHandler.js.

const nsIDOMWindow = Components.interfaces.nsIDOMWindow

Definition at line 49 of file nsBrowserContentHandler.js.

const nsIFactory = Components.interfaces.nsIFactory

Definition at line 50 of file nsBrowserContentHandler.js.

const nsIFileURL = Components.interfaces.nsIFileURL

Definition at line 51 of file nsBrowserContentHandler.js.

const nsIHttpProtocolHandler = Components.interfaces.nsIHttpProtocolHandler

Definition at line 52 of file nsBrowserContentHandler.js.

const nsIInterfaceRequestor = Components.interfaces.nsIInterfaceRequestor

Definition at line 53 of file nsBrowserContentHandler.js.

const nsINetUtil = Components.interfaces.nsINetUtil

Definition at line 54 of file nsBrowserContentHandler.js.

const nsIPrefBranch = Components.interfaces.nsIPrefBranch

Definition at line 55 of file nsBrowserContentHandler.js.

const nsIPrefLocalizedString = Components.interfaces.nsIPrefLocalizedString

Definition at line 56 of file nsBrowserContentHandler.js.

const nsISupports = Components.interfaces.nsISupports

Definition at line 38 of file nsBrowserContentHandler.js.

const nsISupportsString = Components.interfaces.nsISupportsString

Definition at line 57 of file nsBrowserContentHandler.js.

const nsIURIFixup = Components.interfaces.nsIURIFixup

Definition at line 58 of file nsBrowserContentHandler.js.

const nsIWebNavigation = Components.interfaces.nsIWebNavigation

Definition at line 59 of file nsBrowserContentHandler.js.

const nsIWebNavigationInfo = Components.interfaces.nsIWebNavigationInfo

Definition at line 63 of file nsBrowserContentHandler.js.

const nsIWindowMediator = Components.interfaces.nsIWindowMediator

Definition at line 60 of file nsBrowserContentHandler.js.

const nsIWindowWatcher = Components.interfaces.nsIWindowWatcher

Definition at line 61 of file nsBrowserContentHandler.js.

const OVERRIDE_NEW_MSTONE = 2

Definition at line 116 of file nsBrowserContentHandler.js.

const OVERRIDE_NEW_PROFILE = 1

Definition at line 115 of file nsBrowserContentHandler.js.

const OVERRIDE_NONE = 0

Definition at line 114 of file nsBrowserContentHandler.js.

const URI_INHERITS_SECURITY_CONTEXT
Initial value:
.URI_INHERITS_SECURITY_CONTEXT
const nsIHttpProtocolHandler

Definition at line 71 of file nsBrowserContentHandler.js.