pageInfo.js File Reference

Go to the source code of this file.

Functions

function pageInfoTreeView (copycol)
 
function onLoadPageInfo ()
 
function loadPageInfo ()
 
function resetPageInfo (args)
 
function onUnloadPageInfo ()
 
function doHelpButton ()
 
function showTab (id)
 
function loadTab (args)
 
function onClickMore ()
 
function toggleGroupbox (id)
 
function makeGeneralTab ()
 
function makeTabs (aDocument, aWindow)
 
function goThroughFrames (aDocument, aWindow)
 
function processFrames ()
 
function doGrab (iterator)
 
function addImage (url, type, alt, elem, isBg)
 
function grabAll (elem)
 
function openURL (target)
 
function onBeginLinkDrag (event, urlField, descField)
 
function getSelectedImage (tree)
 
function selectSaveFolder ()
 
function saveMedia ()
 
function onBlockImage ()
 
function onImageSelect ()
 
function makePreview (row)
 
document getElementById ("theimagecontainer").collapsed
 
 if (url)
 
 setItemValue ("imagedimensiontext", imageSize)
 
 makeBlockImage (url)
 
imageContainer removeChild (oldImage)
 
imageContainer appendChild (newImage)
 

Variables

pageInfoTreeView prototype
 
var gWindow = null
 
var gDocument = null
 
var gImageElement = null
 
const COL_IMAGE_ADDRESS = 0
 
const COL_IMAGE_TYPE = 1
 
const COL_IMAGE_SIZE = 2
 
const COL_IMAGE_ALT = 3
 
const COL_IMAGE_COUNT = 4
 
const COL_IMAGE_NODE = 5
 
const COL_IMAGE_BG = 6
 
const COPYCOL_NONE = -1
 
const COPYCOL_META_CONTENT = 1
 
const COPYCOL_IMAGE = COL_IMAGE_ADDRESS
 
var gMetaView = new pageInfoTreeView(COPYCOL_META_CONTENT)
 
var gImageView = new pageInfoTreeView(COPYCOL_IMAGE)
 
gImageView getCellProperties
 
var gImageHash = { }
 
var gStrings = { }
 
var gBundle
 
const PERMISSION_CONTRACTID = "@mozilla.org/permissionmanager;1"
 
const PREFERENCES_CONTRACTID = "@mozilla.org/preferences-service;1"
 
const ATOM_CONTRACTID = "@mozilla.org/atom-service;1"
 
const nsICacheService = Components.interfaces.nsICacheService
 
const ACCESS_READ = Components.interfaces.nsICache.ACCESS_READ
 
const cacheService = Components.classes["@mozilla.org/network/cache-service;1"].getService(nsICacheService)
 
var httpCacheSession = cacheService.createSession("HTTP", 0, true)
 
httpCacheSession doomEntriesIfExpired = false
 
var ftpCacheSession = cacheService.createSession("FTP", 0, true)
 
const nsICookiePermission = Components.interfaces.nsICookiePermission
 
const nsIPermissionManager = Components.interfaces.nsIPermissionManager
 
const nsICertificateDialogs = Components.interfaces.nsICertificateDialogs
 
const CERTIFICATEDIALOGS_CONTRACTID
 
const XLinkNS = "http://www.w3.org/1999/xlink"
 
const XULNS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
 
const XMLNS = "http://www.w3.org/XML/1998/namespace"
 
const XHTMLNS = "http://www.w3.org/1999/xhtml"
 
const XHTML2NS
 
const XHTML2NSre = "^http\:\/\/www\.w3\.org\/2002\/06\/xhtml2$"
 
const XHTMLre = RegExp(XHTMLNSre + "|" + XHTML2NSre, "")
 
var onLoadRegistry = [ ]
 
var onResetRegistry = [ ]
 
var onProcessFrame = [ ]
 
var onProcessElement = [ ]
 
var onFinished = [ ]
 
var onUnloadRegistry = [ ]
 
var gFrameList = [ ]
 
 else
 
var imageSize = ""
 

Function Documentation

function addImage (   url,
  type,
  alt,
  elem,
  isBg 
)

Definition at line 551 of file pageInfo.js.

Here is the call graph for this function:

Here is the caller graph for this function:

imageContainer appendChild ( newImage  )

Here is the caller graph for this function:

function doGrab (   iterator)

Definition at line 540 of file pageInfo.js.

Here is the call graph for this function:

Here is the caller graph for this function:

function doHelpButton ( )

Definition at line 364 of file pageInfo.js.

Here is the call graph for this function:

this _document getElementById (   "theimagecontainer")
function getSelectedImage (   tree)

Definition at line 677 of file pageInfo.js.

Here is the caller graph for this function:

function goThroughFrames (   aDocument,
  aWindow 
)

Definition at line 516 of file pageInfo.js.

Here is the call graph for this function:

Here is the caller graph for this function:

function grabAll (   elem)

Definition at line 600 of file pageInfo.js.

Here is the call graph for this function:

Here is the caller graph for this function:

if (   url)

Definition at line 960 of file pageInfo.js.

Here is the call graph for this function:

function loadPageInfo ( )

Definition at line 302 of file pageInfo.js.

Here is the call graph for this function:

Here is the caller graph for this function:

function loadTab (   args)

Definition at line 386 of file pageInfo.js.

Here is the call graph for this function:

Here is the caller graph for this function:

function makeBlockImage (   url)

Definition at line 982 of file pageInfo.js.

Here is the call graph for this function:

function makeGeneralTab ( )

Definition at line 431 of file pageInfo.js.

Here is the call graph for this function:

Here is the caller graph for this function:

function makePreview (   row)

Definition at line 810 of file pageInfo.js.

Here is the call graph for this function:

Here is the caller graph for this function:

function makeTabs (   aDocument,
  aWindow 
)

Definition at line 510 of file pageInfo.js.

Here is the call graph for this function:

Here is the caller graph for this function:

function onBeginLinkDrag (   event,
  urlField,
  descField 
)

Definition at line 651 of file pageInfo.js.

Here is the call graph for this function:

function onBlockImage ( )

Definition at line 769 of file pageInfo.js.

Here is the call graph for this function:

function onClickMore ( )

Definition at line 406 of file pageInfo.js.

Here is the call graph for this function:

function onImageSelect ( )

Definition at line 782 of file pageInfo.js.

Here is the call graph for this function:

function onLoadPageInfo ( )

Definition at line 270 of file pageInfo.js.

Here is the call graph for this function:

function onUnloadPageInfo ( )

Definition at line 351 of file pageInfo.js.

function openURL (   target)

Definition at line 645 of file pageInfo.js.

Here is the call graph for this function:

function pageInfoTreeView (   copycol)

Definition at line 44 of file pageInfo.js.

function processFrames ( )

Definition at line 526 of file pageInfo.js.

Here is the call graph for this function:

Here is the caller graph for this function:

imageContainer removeChild ( oldImage  )
function resetPageInfo (   args)

Definition at line 323 of file pageInfo.js.

Here is the call graph for this function:

function saveMedia ( )

Definition at line 715 of file pageInfo.js.

Here is the call graph for this function:

function selectSaveFolder ( )

Definition at line 688 of file pageInfo.js.

Here is the caller graph for this function:

setItemValue ( "imagedimensiontext"  ,
imageSize   
)

Here is the caller graph for this function:

function showTab (   id)

Definition at line 379 of file pageInfo.js.

Here is the caller graph for this function:

function toggleGroupbox (   id)

Definition at line 414 of file pageInfo.js.

Variable Documentation

const ACCESS_READ = Components.interfaces.nsICache.ACCESS_READ

Definition at line 194 of file pageInfo.js.

const ATOM_CONTRACTID = "@mozilla.org/atom-service;1"

Definition at line 189 of file pageInfo.js.

const cacheService = Components.classes["@mozilla.org/network/cache-service;1"].getService(nsICacheService)

Definition at line 195 of file pageInfo.js.

const CERTIFICATEDIALOGS_CONTRACTID
Initial value:
= "@mozilla.org/nsCertificateDialogs;1"
try {
const gClipboardHelper = Components.classes["@mozilla.org/widget/clipboardhelper;1"].getService(Components.interfaces.nsIClipboardHelper);
}
catch(e) {
}
const nsIImageLoadingContent = Components.interfaces.nsIImageLoadingContent

Definition at line 205 of file pageInfo.js.

const COL_IMAGE_ADDRESS = 0

Definition at line 154 of file pageInfo.js.

const COL_IMAGE_ALT = 3

Definition at line 157 of file pageInfo.js.

const COL_IMAGE_BG = 6

Definition at line 160 of file pageInfo.js.

const COL_IMAGE_COUNT = 4

Definition at line 158 of file pageInfo.js.

const COL_IMAGE_NODE = 5

Definition at line 159 of file pageInfo.js.

const COL_IMAGE_SIZE = 2

Definition at line 156 of file pageInfo.js.

const COL_IMAGE_TYPE = 1

Definition at line 155 of file pageInfo.js.

const COPYCOL_IMAGE = COL_IMAGE_ADDRESS

Definition at line 165 of file pageInfo.js.

const COPYCOL_META_CONTENT = 1

Definition at line 164 of file pageInfo.js.

const COPYCOL_NONE = -1

Definition at line 163 of file pageInfo.js.

ftpCacheSession doomEntriesIfExpired = false

Definition at line 197 of file pageInfo.js.

else
Initial value:
{
document.getElementById("brokenimagecontainer").collapsed = false

Definition at line 952 of file pageInfo.js.

var ftpCacheSession = cacheService.createSession("FTP", 0, true)

Definition at line 198 of file pageInfo.js.

var gBundle

Definition at line 185 of file pageInfo.js.

var gDocument = null

Definition at line 150 of file pageInfo.js.

gImageView getCellProperties
Initial value:
= function(row, col, props) {
var aserv = Components.classes[ATOM_CONTRACTID]
.getService(Components.interfaces.nsIAtomService);
if (gImageView.data[row][COL_IMAGE_SIZE] == gStrings.unknown &&
!/^https:/.test(gImageView.data[row][COL_IMAGE_ADDRESS]))
props.AppendElement(aserv.getAtom("broken"));
}
const COL_IMAGE_SIZE
Definition: pageInfo.js:156
const COL_IMAGE_ADDRESS
Definition: pageInfo.js:154
var gStrings
Definition: pageInfo.js:184
var gImageView
Definition: pageInfo.js:169
const ATOM_CONTRACTID
Definition: pageInfo.js:189

Definition at line 171 of file pageInfo.js.

var gFrameList = [ ]

Definition at line 508 of file pageInfo.js.

var gImageElement = null

Definition at line 151 of file pageInfo.js.

var gImageHash = { }

Definition at line 180 of file pageInfo.js.

var gImageView = new pageInfoTreeView(COPYCOL_IMAGE)

Definition at line 169 of file pageInfo.js.

var gMetaView = new pageInfoTreeView(COPYCOL_META_CONTENT)

Definition at line 168 of file pageInfo.js.

var gStrings = { }

Definition at line 184 of file pageInfo.js.

var gWindow = null

Definition at line 149 of file pageInfo.js.

var httpCacheSession = cacheService.createSession("HTTP", 0, true)

Definition at line 196 of file pageInfo.js.

var imageSize = ""

Definition at line 959 of file pageInfo.js.

const nsICacheService = Components.interfaces.nsICacheService

Definition at line 193 of file pageInfo.js.

const nsICertificateDialogs = Components.interfaces.nsICertificateDialogs

Definition at line 204 of file pageInfo.js.

const nsICookiePermission = Components.interfaces.nsICookiePermission

Definition at line 201 of file pageInfo.js.

const nsIPermissionManager = Components.interfaces.nsIPermissionManager

Definition at line 202 of file pageInfo.js.

var onFinished = [ ]

Definition at line 258 of file pageInfo.js.

var onLoadRegistry = [ ]

Definition at line 240 of file pageInfo.js.

var onProcessElement = [ ]

Definition at line 254 of file pageInfo.js.

var onProcessFrame = [ ]

Definition at line 250 of file pageInfo.js.

var onResetRegistry = [ ]

Definition at line 246 of file pageInfo.js.

var onUnloadRegistry = [ ]

Definition at line 261 of file pageInfo.js.

const PERMISSION_CONTRACTID = "@mozilla.org/permissionmanager;1"

Definition at line 187 of file pageInfo.js.

const PREFERENCES_CONTRACTID = "@mozilla.org/preferences-service;1"

Definition at line 188 of file pageInfo.js.

pageInfoTreeView prototype

Definition at line 57 of file pageInfo.js.

const XHTML2NS
Initial value:
= "http://www.w3.org/2002/06/xhtml2"
const XHTMLNSre = "^http\:\/\/www\.w3\.org\/1999\/xhtml$"

Definition at line 223 of file pageInfo.js.

const XHTML2NSre = "^http\:\/\/www\.w3\.org\/2002\/06\/xhtml2$"

Definition at line 226 of file pageInfo.js.

const XHTMLNS = "http://www.w3.org/1999/xhtml"

Definition at line 222 of file pageInfo.js.

const XHTMLre = RegExp(XHTMLNSre + "|" + XHTML2NSre, "")

Definition at line 227 of file pageInfo.js.

const XLinkNS = "http://www.w3.org/1999/xlink"

Definition at line 219 of file pageInfo.js.

const XMLNS = "http://www.w3.org/XML/1998/namespace"

Definition at line 221 of file pageInfo.js.

const XULNS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"

Definition at line 220 of file pageInfo.js.