browserUtilities.js File Reference

Go to the source code of this file.

Functions

 if (typeof(Ci)=="undefined") var Ci
 
function getBrowserURL ()
 
function goToggleToolbar (id, elementID)
 
function getTopWin ()
 
function openTopWin (url)
 
function getBoolPref (prefname, def)
 
function focusElement (aElement)
 
function openUILink (url, e, ignoreButton, ignoreAlt, allowKeywordFixup, postData, referrerUrl)
 
function whereToOpenLink (e, ignoreButton, ignoreAlt)
 
function openUILinkIn (url, where, allowThirdPartyFixup, postData, referrerUrl)
 
function checkForMiddleClick (node, event)
 
function closeMenus (node)
 
function gatherTextUnder (root)
 
function getShellService ()
 
function isBidiEnabled ()
 
function openAboutDialog ()
 
function openPreferences (paneID)
 
function openReleaseNotes (event)
 
function checkForUpdates ()
 
function isElementVisible (aElement)
 
function getBrowserFromContentWindow (aContentWindow)
 
function openNewTabWith (aURL, aDocument, aPostData, aEvent, aAllowThirdPartyFixup)
 
function openNewWindowWith (aURL, aDocument, aPostData, aAllowThirdPartyFixup)
 
function getBrowser ()
 
function loadURI (uri, referrer, postData, allowThirdPartyFixup)
 
function getWebNavigation ()
 
function toOpenWindowByType (inType, uri, features)
 
function BrowserForward (aEvent, aIgnoreAlt)
 
function BrowserBack (aEvent, aIgnoreAlt)
 
function BrowserHomeClick (aEvent)
 
function loadOneOrMoreURIs (aURIString)
 
function nsBrowserStatusHandler ()
 
window QueryInterface (Ci.nsIInterfaceRequestor).getInterface(Ci.nsIWebNavigation).QueryInterface(Ci.nsIDocShellTreeItem).treeOwner.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIXULWindow).XULBrowserWindow
 
function makeURLAbsolute (aBase, aUrl)
 
function getBrowserSelection (aCharLen)
 
function mimeTypeIsTextBased (aMimeType)
 
function BrowserReload ()
 
function BrowserReloadSkipCache ()
 
function BrowserReloadWithFlags (reloadFlags)
 
function formatURL (aFormat, aIsPref)
 
function HandleAppCommandEvent (evt)
 
function FillInHTMLTooltip (tipElement)
 
function onInitBrowserUtilities ()
 
function onShutdownBrowserUtilities ()
 
window addEventListener ("load", onInitBrowserUtilities, false)
 
function BrowserNumberTabSelection (event, index)
 
function BrowserHandleBackspace ()
 
function BrowserHandleShiftBackspace ()
 

Variables

var gBidiUI = false
 
nsBrowserStatusHandler prototype
 
var gPrefService
 
var gNavigatorBundle
 

Function Documentation

window addEventListener ( "load"  ,
onInitBrowserUtilities  ,
false   
)
function BrowserBack (   aEvent,
  aIgnoreAlt 
)

Definition at line 573 of file browserUtilities.js.

Here is the call graph for this function:

Here is the caller graph for this function:

function BrowserForward (   aEvent,
  aIgnoreAlt 
)

Definition at line 552 of file browserUtilities.js.

Here is the call graph for this function:

Here is the caller graph for this function:

function BrowserHandleBackspace ( )

Definition at line 959 of file browserUtilities.js.

function BrowserHandleShiftBackspace ( )

Definition at line 971 of file browserUtilities.js.

function BrowserHomeClick (   aEvent)

Definition at line 594 of file browserUtilities.js.

Here is the call graph for this function:

function BrowserNumberTabSelection (   event,
  index 
)

Definition at line 942 of file browserUtilities.js.

function BrowserReload ( )

Definition at line 785 of file browserUtilities.js.

Here is the call graph for this function:

function BrowserReloadSkipCache ( )

Definition at line 791 of file browserUtilities.js.

Here is the call graph for this function:

Here is the caller graph for this function:

function BrowserReloadWithFlags (   reloadFlags)

Definition at line 798 of file browserUtilities.js.

Here is the call graph for this function:

Here is the caller graph for this function:

function checkForMiddleClick (   node,
  event 
)

Definition at line 254 of file browserUtilities.js.

Here is the call graph for this function:

function checkForUpdates ( )

Opens the update manager and checks for updates to the application.

Definition at line 395 of file browserUtilities.js.

Here is the call graph for this function:

Here is the caller graph for this function:

function closeMenus (   node)

Definition at line 277 of file browserUtilities.js.

Here is the caller graph for this function:

function FillInHTMLTooltip (   tipElement)

Copied from Firefox's browser.js – Original note follows:

Content area tooltip. XXX - this must move into XBL binding/equiv! Do not want to pollute browser.js with functionality that can be encapsulated into browser widget. TEMPORARY!

NOTE: Any changes to this routine need to be mirrored in ChromeListener::FindTitleText() (located in mozilla/embedding/browser/webBrowser/nsDocShellTreeOwner.cpp) which performs the same function, but for embedded clients that don't use a XUL/JS layer. It is important that the logic of these two routines be kept more or less in sync. (pinkerton)

Definition at line 869 of file browserUtilities.js.

function focusElement (   aElement)

Definition at line 94 of file browserUtilities.js.

Here is the caller graph for this function:

function formatURL (   aFormat,
  aIsPref 
)

Definition at line 820 of file browserUtilities.js.

function gatherTextUnder (   root)

Definition at line 289 of file browserUtilities.js.

function getBoolPref (   prefname,
  def 
)

Definition at line 80 of file browserUtilities.js.

Here is the caller graph for this function:

function getBrowser ( )

Definition at line 502 of file browserUtilities.js.

function getBrowserFromContentWindow (   aContentWindow)

Definition at line 424 of file browserUtilities.js.

function getBrowserSelection (   aCharLen)

Definition at line 750 of file browserUtilities.js.

function getBrowserURL ( )

Definition at line 47 of file browserUtilities.js.

function getShellService ( )

Definition at line 333 of file browserUtilities.js.

function getTopWin ( )

Definition at line 68 of file browserUtilities.js.

Here is the caller graph for this function:

function getWebNavigation ( )

Definition at line 523 of file browserUtilities.js.

Here is the caller graph for this function:

function goToggleToolbar (   id,
  elementID 
)

Definition at line 52 of file browserUtilities.js.

function HandleAppCommandEvent (   evt)

Definition at line 827 of file browserUtilities.js.

Here is the call graph for this function:

Here is the caller graph for this function:

if ( typeof(Ci = ="undefined")

Debug Wrapper. Subclasses and replaces DateRemote to keep track of how many dataremotes are alive, and for which keys.

Enable DEBUG_DATAREMOTES to track down leaks.

Definition at line 524 of file sbDataRemote.js.

function isBidiEnabled ( )

Definition at line 343 of file browserUtilities.js.

Here is the call graph for this function:

Here is the caller graph for this function:

function isElementVisible (   aElement)

Definition at line 413 of file browserUtilities.js.

function loadOneOrMoreURIs (   aURIString)

Definition at line 626 of file browserUtilities.js.

Here is the caller graph for this function:

function loadURI (   uri,
  referrer,
  postData,
  allowThirdPartyFixup 
)

Definition at line 508 of file browserUtilities.js.

Here is the call graph for this function:

function makeURLAbsolute (   aBase,
  aUrl 
)

Definition at line 744 of file browserUtilities.js.

Here is the call graph for this function:

function mimeTypeIsTextBased (   aMimeType)

Definition at line 776 of file browserUtilities.js.

function nsBrowserStatusHandler ( )

This is a hacked version of nsBrowserStatusHandler from firefox/browser.js.

nsBrowserStatusHandler is registered as window.XULBrowserWindow, which allows the C++ browser back-end to update window status and other UI.

Definition at line 646 of file browserUtilities.js.

function onInitBrowserUtilities ( )

Definition at line 922 of file browserUtilities.js.

Here is the call graph for this function:

function onShutdownBrowserUtilities ( )

Definition at line 933 of file browserUtilities.js.

Here is the call graph for this function:

Here is the caller graph for this function:

function openAboutDialog ( )

Definition at line 369 of file browserUtilities.js.

function openNewTabWith (   aURL,
  aDocument,
  aPostData,
  aEvent,
  aAllowThirdPartyFixup 
)

openNewTabWith: opens a new tab with the given URL.

Parameters
aURLThe URL to open (as a string).
aDocumentThe document from which the URL came, or null. This is used to set the referrer header and to do a security check of whether the document is allowed to reference the URL. If null, there will be no referrer header and no security check.
aPostDataForm POST data, or null.
aEventThe triggering event (for the purpose of determining whether to open in the background), or null.
aAllowThirdPartyFixupIf true, then we allow the URL text to be sent to third party services (e.g., Google's I Feel Lucky) for interpretation. This parameter may be undefined in which case it is treated as false.

Definition at line 455 of file browserUtilities.js.

function openNewWindowWith (   aURL,
  aDocument,
  aPostData,
  aAllowThirdPartyFixup 
)

Definition at line 495 of file browserUtilities.js.

function openPreferences (   paneID)

Definition at line 375 of file browserUtilities.js.

function openReleaseNotes (   event)

Opens the release notes page for this version of the application.

Parameters
eventThe DOM Event that caused this function to be called, used to determine where the release notes page should be displayed based on modifiers (e.g. Ctrl = new tab)

Definition at line 387 of file browserUtilities.js.

function openTopWin (   url)

Definition at line 75 of file browserUtilities.js.

Here is the call graph for this function:

function openUILink (   url,
  e,
  ignoreButton,
  ignoreAlt,
  allowKeywordFixup,
  postData,
  referrerUrl 
)

Definition at line 116 of file browserUtilities.js.

Here is the call graph for this function:

Here is the caller graph for this function:

function openUILinkIn (   url,
  where,
  allowThirdPartyFixup,
  postData,
  referrerUrl 
)

Definition at line 198 of file browserUtilities.js.

Here is the call graph for this function:

Here is the caller graph for this function:

window QueryInterface ( Ci.  nsIInterfaceRequestor)
function toOpenWindowByType (   inType,
  uri,
  features 
)

Definition at line 533 of file browserUtilities.js.

function whereToOpenLink (   e,
  ignoreButton,
  ignoreAlt 
)

Definition at line 147 of file browserUtilities.js.

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

var gBidiUI = false

Definition at line 45 of file browserUtilities.js.

var gNavigatorBundle

Definition at line 920 of file browserUtilities.js.

var gPrefService

Definition at line 919 of file browserUtilities.js.

Definition at line 655 of file browserUtilities.js.