diff --git a/mozilla/browser/components/search/content/search.xml b/mozilla/browser/components/search/content/search.xml index 00a67c27765..991fa1613af 100644 --- a/mozilla/browser/components/search/content/search.xml +++ b/mozilla/browser/components/search/content/search.xml @@ -57,36 +57,43 @@ - - - - + + + + + + # XXX We'd like to add a context="_child" property to this toolbarbutton, but doing # so causes the context menu to show up for the textbox too, and subsequently crashes # the app on shutdown. See bug 336662. - - - - - - - - + + + + + + + + + + @@ -124,8 +131,8 @@ this._textbox.mController.input = null; ]]> - document.getAnonymousNodes(this)[0]; - document.getAnonymousNodes(this)[1]; + document.getAnonymousElementByAttribute(this, "anonid", "searchbar-stringbundle"); + document.getAnonymousElementByAttribute(this, "anonid", "searchbar-textbox"); null null null @@ -400,7 +407,7 @@ } var newTab = textBox._prefBranch.getBoolPref("browser.search.openintab"); - textBox.parentNode.doSearch(textValue, ((aEvent && aEvent.altKey) ^ newTab)); + this.doSearch(textValue, ((aEvent && aEvent.altKey) ^ newTab)); ]]> @@ -449,7 +456,7 @@ extends="chrome://global/content/bindings/autocomplete.xml#autocomplete"> - this.parentNode._stringBundle + - @@ -601,11 +615,11 @@ + action="this._getParentSearchbar().selectEngine(event, false);"/> + action="this._getParentSearchbar().selectEngine(event, true);"/>