nsTextEditorState::UpdatePlaceholderVisibility() refers "dom.placeholder.show_on_focus" with Preferences::GetBool() when the editor is empty. That is called a lot of times, e.g., every edit action, every frame creation of anonymous <div>, every setting focus. http://searchfox.org/mozilla-central/rev/214345204f1e7d97abb571b7992b6deedb5ff98f/dom/html/nsTextEditorState.cpp#2701,2709 http://searchfox.org/mozilla-central/search?q=UpdatePlaceholderVisibility&case=false®exp=false&path= So, I worry about that if there are too many <input> elements having placeholder *might* cause some damage of page load performance. So, it might be better to use Preferences::AddBoolVarCache() here.
Status: UNCONFIRMED → RESOLVED
Last Resolved: a year ago
Resolution: --- → DUPLICATE
Duplicate of bug: 1374117
You need to log in before you can comment on or make changes to this bug.