mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 387516 - Searchbar bindings depend on global pollution from printUtils.js, r=gavin
This commit is contained in:
parent
64bd25aa34
commit
b405ba9500
@ -581,6 +581,8 @@
|
||||
|
||||
<method name="initialize">
|
||||
<body><![CDATA[
|
||||
const kXULNS =
|
||||
"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
|
||||
// Initialize fields
|
||||
this._stringBundle = this._getParentSearchbar()._stringBundle;
|
||||
this._formHistSvc =
|
||||
@ -601,9 +603,9 @@
|
||||
var cxmenu = document.getAnonymousElementByAttribute(textBox,
|
||||
"anonid", "input-box-contextmenu");
|
||||
|
||||
var element = document.createElementNS(XUL_NS, "menuseparator");
|
||||
var element = document.createElementNS(kXULNS, "menuseparator");
|
||||
cxmenu.appendChild(element);
|
||||
element = document.createElementNS(XUL_NS, "menuitem");
|
||||
element = document.createElementNS(kXULNS, "menuitem");
|
||||
var label = this._stringBundle.getString("cmd_clearHistory");
|
||||
var akey = this._stringBundle.getString("cmd_clearHistory_accesskey");
|
||||
element.setAttribute("label", label);
|
||||
@ -612,7 +614,7 @@
|
||||
|
||||
cxmenu.appendChild(element);
|
||||
|
||||
element = document.createElementNS(XUL_NS, "menuitem");
|
||||
element = document.createElementNS(kXULNS, "menuitem");
|
||||
label = this._stringBundle.getString("cmd_showSuggestions");
|
||||
akey = this._stringBundle.getString("cmd_showSuggestions_accesskey");
|
||||
element.setAttribute("anonid", "toggle-suggest-item");
|
||||
|
Loading…
Reference in New Issue
Block a user