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)
Tracking
()
| 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.
| Assignee | ||
Comment 1•15 days ago
|
||
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.
Comment 3•14 days ago
|
||
| bugherder | ||
Comment 4•14 days ago
|
||
| bugherder | ||
Updated•12 days ago
|
Description
•