summaryrefslogtreecommitdiffstats
path: root/application/palemoon/base/content/newtab/search.js
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-06-22 12:14:05 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-06-22 12:14:05 +0200
commitbe93f4a38fe421be6efe84c39cc33ae92d61c31a (patch)
treedef822dc0a6573b42f04646d846843c17493ce0c /application/palemoon/base/content/newtab/search.js
parentcadeea97bbefe42f89d16a4678fdc382c7b74bcd (diff)
downloadUXP-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.js10
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;
}
-
}