Backed out changeset 6cc6282c67c7 (bug 1374852) for test failures in browser_urlbarSearchSuggestions_opt-out.js

This commit is contained in:
Carsten "Tomcat" Book 2017-06-27 09:04:20 +02:00
parent a6c141b000
commit 7815fe540b
3 changed files with 7 additions and 32 deletions

View File

@ -31,10 +31,6 @@ var gSearchResultsPane = {
});
}
});
window.addEventListener("load", () => {
this.searchInput.focus();
});
}
},

View File

@ -45,10 +45,7 @@ add_task(async function() {
// Performs search
let searchInput = gBrowser.contentDocument.getElementById("searchInput");
is(searchInput, gBrowser.contentDocument.activeElement.closest("#searchInput"),
"Search input should be focused when visiting preferences");
searchInput.focus();
searchInput.value = "password";
searchInput.doCommand();
@ -87,10 +84,7 @@ add_task(async function() {
// Performs search
let searchInput = gBrowser.contentDocument.getElementById("searchInput");
is(searchInput, gBrowser.contentDocument.activeElement.closest("#searchInput"),
"Search input should be focused when visiting preferences");
searchInput.focus();
searchInput.value = "password";
searchInput.doCommand();
@ -147,10 +141,7 @@ add_task(async function() {
// Performs search
let searchInput = gBrowser.contentDocument.getElementById("searchInput");
is(searchInput, gBrowser.contentDocument.activeElement.closest("#searchInput"),
"Search input should be focused when visiting preferences");
searchInput.focus();
searchInput.value = "coach";
searchInput.doCommand();
@ -176,10 +167,7 @@ add_task(async function() {
// Performs search
let searchInput = gBrowser.contentDocument.getElementById("searchInput");
is(searchInput, gBrowser.contentDocument.activeElement.closest("#searchInput"),
"Search input should be focused when visiting preferences");
searchInput.focus();
searchInput.value = "password";
searchInput.doCommand();
@ -206,10 +194,7 @@ add_task(async function() {
// Performs search
let searchInput = gBrowser.contentDocument.getElementById("searchInput");
is(searchInput, gBrowser.contentDocument.activeElement.closest("#searchInput"),
"Search input should be focused when visiting preferences");
searchInput.focus();
searchInput.value = "site data";
searchInput.doCommand();
@ -235,10 +220,7 @@ add_task(async function() {
await openPreferencesViaOpenPreferencesAPI("paneGeneral", {leaveOpen: true});
let searchInput = gBrowser.contentDocument.getElementById("searchInput");
let searchResultsCategory = gBrowser.contentDocument.getElementById("category-search-results");
is(searchInput, gBrowser.contentDocument.activeElement.closest("#searchInput"),
"Search input should be focused when visiting preferences");
searchInput.focus();
searchInput.value = "password";
searchInput.doCommand();
is(searchResultsCategory.hidden, false, "search results category should be shown");

View File

@ -27,10 +27,7 @@ add_task(async function() {
// Performs search.
let searchInput = gBrowser.contentDocument.getElementById("searchInput");
is(searchInput, gBrowser.contentDocument.activeElement.closest("#searchInput"),
"Search input should be focused when visiting preferences");
searchInput.focus();
searchInput.value = "Create Account";
searchInput.doCommand();