Closed Bug 2092326 Opened 15 days ago Closed 14 days ago

New Tab search bar keeps a placeholder without the engine name if keyword.enabled changes while its engine store initializes

Categories

(Firefox :: Address Bar, defect)

defect

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: florian, Assigned: florian)

References

Details

Attachments

(1 external file)

The New Tab search bar (newtab_searchbar) sets its initial placeholder from browser.urlbar.placeholderName. When its SearchEngineStore finishes initializing, UrlbarInputBase only calls searchModeSwitcher.updateSearchIcon() and does not update the placeholder.

If keyword.enabled changes before the store has initialized, onPrefChanged calls updatePlaceholder(). With engineStore.default still null, that sets urlbar-placeholder, and the engine name never comes back until the default engine changes. A stale pre-saved placeholderName also stays in place.

This caused browser_placeholder.js to fail in the mochitest-browser-chrome-repeat job (keywordDisabled timed out waiting for urlbar-placeholder-with-name, then "Found an unexpected tab at the end of test run: about:newtab").

Fix: also call updatePlaceholder() once the engine store has initialized.

Until the engine store initializes, the New Tab bar's placeholder comes from the pre-saved name, or names no engine if keyword.enabled changes in the meantime. Nothing updated it once the store knew the default engine.

Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/668ef35fc924 https://hg.mozilla.org/integration/autoland/rev/2b492ca8f887 Update the New Tab search bar's placeholder once its engine store has initialized, r=urlbar-reviewers,mak.
Blocks: 2092566
Status: ASSIGNED → RESOLVED
Closed: 14 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
QA Whiteboard: [search][qa-triage-done-c162/b161]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: