Components.classes['@mozilla.org/preferences-service;1'] .getService(Components.interfaces.nsIPrefService) .getBranch(null); Components.classes['@mozilla.org/atom-service;1'] .getService(Components.interfaces.nsIAtomService); null // see bug 63370 for details var localeService = Components.classes["@mozilla.org/intl/nslocaleservice;1"] .getService(Components.interfaces.nsILocaleService); var stringBundleService = Components.classes["@mozilla.org/intl/stringbundle;1"] .getService(Components.interfaces.nsIStringBundleService); var bundleURL = "chrome://global/locale/tabbrowser.properties"; this._mStrBundle = stringBundleService.createBundle(bundleURL, localeService.GetApplicationLocale()); } return this._mStrBundle; ]]> null null null false 3 10 null null false null false 0 null null null null 0 && Math.abs(y) > 0) { if (this._scrollCount++ % 2) y = 0; else x = 0; } this._clientFrameDoc.defaultView.scrollBy(x, y); setTimeout(function foo(a) { a.autoScrollLoop() }, 5, this); } ]]> = documentWidth) scrollType = 1; else if (windowHeight >= documentHeight && windowWidth < documentWidth) scrollType = 2; var imageWidth = 28; var imageHeight = 28; // marker var el = this._clientFrameDoc.createElementNS("http://www.w3.org/1999/xhtml", "img"); var scrollImages = new Array("chrome://global/content/widgets/autoscroll_all.png", "chrome://global/content/widgets/autoscroll_v.png", "chrome://global/content/widgets/autoscroll_h.png"); el.src = scrollImages[scrollType]; el.style.position = "fixed"; el.style.left = left - imageWidth / 2 + "px"; el.style.top = top - imageHeight / 2 + "px"; el.style.width = imageWidth + "px"; el.style.height = imageHeight + "px"; el.style.cursor = scrollCursor[scrollType]; this._clientFrameBody.appendChild(el); this._autoScrollMarkerImage = el; ]]> this._AUTOSCROLL_SNAP || x < -this._AUTOSCROLL_SNAP) || (y > this._AUTOSCROLL_SNAP || y < -this._AUTOSCROLL_SNAP)) this._snapOn = false; } ]]>