Closed Bug 1771841 Opened 2 years ago Closed 2 years ago

use HTMLInputElement.isInstance(field) instead of ChromeUtils.getClassName(field) === "HTMLInputElement"

Categories

(Toolkit :: Password Manager, task, P1)

task

Tracking

()

RESOLVED FIXED
103 Branch
Tracking Status
firefox103 --- fixed

People

(Reporter: serg, Assigned: serg)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

HTMLInputElement.isInstance(field) vs ChromeUtils.getClassName(field) === "HTMLInputElement":

  • is approximately 25% faster
  • does not require temporary string allocation
  • works with custom elements derived from HTMLInputElement
  • can be recognized by tooling as class name
Assignee: nobody → sgalich
Status: NEW → ASSIGNED
Pushed by sgalich@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/72292afcfc40 use HTMLInputElement.isInstance(field) instead of ChromeUtils.getClassName(field) === "HTMLInputElement". r=dimi
Priority: -- → P1
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 103 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: