diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-06-22 12:14:05 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-06-22 12:14:05 +0200 |
commit | be93f4a38fe421be6efe84c39cc33ae92d61c31a (patch) | |
tree | def822dc0a6573b42f04646d846843c17493ce0c /application/palemoon/base/content/newtab/search.js | |
parent | cadeea97bbefe42f89d16a4678fdc382c7b74bcd (diff) | |
download | UXP-be93f4a38fe421be6efe84c39cc33ae92d61c31a.tar UXP-be93f4a38fe421be6efe84c39cc33ae92d61c31a.tar.gz UXP-be93f4a38fe421be6efe84c39cc33ae92d61c31a.tar.lz UXP-be93f4a38fe421be6efe84c39cc33ae92d61c31a.tar.xz UXP-be93f4a38fe421be6efe84c39cc33ae92d61c31a.zip |
Prevent the Quickdial page from stealing focus from the address bar.
Diffstat (limited to 'application/palemoon/base/content/newtab/search.js')
-rw-r--r-- | application/palemoon/base/content/newtab/search.js | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/application/palemoon/base/content/newtab/search.js b/application/palemoon/base/content/newtab/search.js index cafc772bc..40d3e449c 100644 --- a/application/palemoon/base/content/newtab/search.js +++ b/application/palemoon/base/content/newtab/search.js @@ -116,15 +116,6 @@ function onSearchSubmit(aEvent) { function setupSearchEngine() { - // The "autofocus" attribute doesn't focus the form element - // immediately when the element is first drawn, so the - // attribute is also used for styling when the page first loads. - let searchText = document.getElementById("searchText"); - searchText.addEventListener("blur", function searchText_onBlur() { - searchText.removeEventListener("blur", searchText_onBlur); - searchText.removeAttribute("autofocus"); - }); - let searchEngineName = document.documentElement.getAttribute("searchEngineName"); let searchEngineInfo = SEARCH_ENGINES[searchEngineName]; let logoElt = document.getElementById("searchEngineLogo"); @@ -139,5 +130,4 @@ function setupSearchEngine() { logoElt.parentNode.hidden = true; searchText.placeholder = searchEngineName; } - } |