diff --git a/browser/base/content/urlbarBindings.xml b/browser/base/content/urlbarBindings.xml index 5d2510f6235..9433cd39d25 100644 --- a/browser/base/content/urlbarBindings.xml +++ b/browser/base/content/urlbarBindings.xml @@ -104,6 +104,23 @@ this._hideProtocols = this._prefs.getCharPref("hideProtocols").split(" "); this._animateBlend = this._prefs.getBoolPref("animateBlend"); + this._inputBox = document.getAnonymousElementByAttribute(this, "anonid", "textbox-input-box"); + this._presentationBox = document.getAnonymousElementByAttribute(this, "anonid", "presentation-box"); + this._overflowEllipsis = document.getAnonymousElementByAttribute(this, "anonid", "overflow-ellipsis"); + this._prePath = document.getAnonymousElementByAttribute(this, "anonid", "prePath"); + this._protocol = document.getAnonymousElementByAttribute(this, "anonid", "protocol"); + this._subDomain = document.getAnonymousElementByAttribute(this, "anonid", "subdomain"); + this._domain = document.getAnonymousElementByAttribute(this, "anonid", "domain"); + this._port = document.getAnonymousElementByAttribute(this, "anonid", "port"); + this._directory = document.getAnonymousElementByAttribute(this, "anonid", "directory"); + this._fileBaseName = document.getAnonymousElementByAttribute(this, "anonid", "fileBaseName"); + this._fileExtension = document.getAnonymousElementByAttribute(this, "anonid", "fileExtension"); + this._param = document.getAnonymousElementByAttribute(this, "anonid", "param"); + this._query = document.getAnonymousElementByAttribute(this, "anonid", "query"); + this._ref = document.getAnonymousElementByAttribute(this, "anonid", "ref"); + this._urlTooltip = document.getElementById("urlTooltip"); + this._urlTooltipLabel = this._urlTooltip.getElementsByTagName("label")[0]; + this.inputField.controllers.insertControllerAt(0, this._copyCutController); this.plain = true; @@ -117,60 +134,7 @@ this.inputField.controllers.removeController(this._copyCutController); ]]> - - - - [] - - - document.getAnonymousElementByAttribute(this, "anonid", "textbox-input-box"); - - - document.getAnonymousElementByAttribute(this, "anonid", "presentation-box"); - - - document.getAnonymousElementByAttribute(this, "anonid", "overflow-ellipsis"); - - - document.getAnonymousElementByAttribute(this, "anonid", "prePath"); - - - document.getAnonymousElementByAttribute(this, "anonid", "protocol"); - - - document.getAnonymousElementByAttribute(this, "anonid", "subdomain"); - - - document.getAnonymousElementByAttribute(this, "anonid", "domain"); - - - document.getAnonymousElementByAttribute(this, "anonid", "port"); - - - document.getAnonymousElementByAttribute(this, "anonid", "directory"); - - - document.getAnonymousElementByAttribute(this, "anonid", "fileBaseName"); - - - document.getAnonymousElementByAttribute(this, "anonid", "fileExtension"); - - - document.getAnonymousElementByAttribute(this, "anonid", "param"); - - - document.getAnonymousElementByAttribute(this, "anonid", "query"); - - - document.getAnonymousElementByAttribute(this, "anonid", "ref"); - - - document.getElementById("urlTooltip"); - - - this._urlTooltip.getElementsByTagName("label")[0]; - true