Bug 1420129 - Clicking the 'Settings page' link on about:searchreset should go directly to the Search pref pane, r=nhnt11.

This commit is contained in:
Florian Quèze 2017-11-23 13:38:06 +01:00
parent 732db044c5
commit 58490ac997
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@
<p>&searchreset.pageInfo1;</p>
<p>&searchreset.selector.label;<span id="defaultEngine"/></p>
<p>&searchreset.beforelink.pageInfo2;<a id="linkSettingsPage" href="about:preferences">&searchreset.link.pageInfo2;</a>&searchreset.afterlink.pageInfo2;</p>
<p>&searchreset.beforelink.pageInfo2;<a id="linkSettingsPage" href="about:preferences#search">&searchreset.link.pageInfo2;</a>&searchreset.afterlink.pageInfo2;</p>
</div>
<div class="button-container">

View File

@ -115,7 +115,7 @@ var gTests = [
Services.prefs.setCharPref(kStatusPref, "pending");
let loadPromise = BrowserTestUtils.browserLoaded(gBrowser.selectedBrowser,
false,
"about:preferences");
"about:preferences#search");
// eslint-disable-next-line mozilla/no-cpows-in-tests
gBrowser.contentDocument.getElementById("linkSettingsPage").click();
await loadPromise;