summaryrefslogtreecommitdiffstats
path: root/application/palemoon/base/content/newtab/search.js
diff options
context:
space:
mode:
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;
}
-
}