Closed Bug 1832026 Opened 1 year ago Closed 7 months ago

Do not create TextControlState for HTMLInputElement if we know parser will set type to something else than text

Categories

(Core :: DOM: Core & HTML, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
122 Branch
Tracking Status
firefox122 --- fixed

People

(Reporter: smaug, Assigned: smaug)

References

(Blocks 1 open bug)

Details

(Whiteboard: [sp3])

Attachments

(1 file)

TextControlState::Construct and TextControlState::DeleteOrCacheForReuse both show up in the speedometer profiles when using innerHTML. First we create the HTMLInputElement for type=text, but right after that parser sets type to something else.

Type: defect → enhancement
Whiteboard: [sp3]
Assignee: nobody → smaug
Pushed by opettay@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b44648ce9df5
create TextControlState lazily, r=masayuki
Status: NEW → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 122 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: