Closed
Bug 1693068
Opened 4 years ago
Closed 4 years ago
CustomElementRegistry::WhenDefined creates a Promise, which might not be used
Categories
(Core :: DOM: Core & HTML, task)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
88 Branch
Tracking | Status | |
---|---|---|
firefox88 | --- | fixed |
People
(Reporter: sg, Assigned: sg)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file)
CustomElementRegistry::WhenDefined
creates a Promise
at the very beginning, but it might not be used: When the function reaches the final return
statement, and there already is an entry in mWhenDefinedPromiseMap
, it is just discarded. This could be refactored so that a Promise
is only created in the cases where it's needed.
Updated•4 years ago
|
Has Regression Range: --- → yes
Keywords: regression
Assignee | ||
Comment 1•4 years ago
|
||
Depends on D104676
Updated•4 years ago
|
Assignee: nobody → sgiesecke
Status: NEW → ASSIGNED
Severity: -- → N/A
Comment 2•4 years ago
|
||
Type: task → defect
Assignee | ||
Updated•4 years ago
|
Type: defect → task
Updated•4 years ago
|
Attachment #9203456 -
Attachment description: Bug 1693068 - Use function to lazily create a Promise when needed in CustomElementRegistry::WhenDefined. r=emilio → Bug 1693068 - Use function to lazily create a Promise when needed in CustomElementRegistry::WhenDefined. r=#xpcom-reviewers
Pushed by sgiesecke@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/85548fff7e00
Use function to lazily create a Promise when needed in CustomElementRegistry::WhenDefined. r=emilio
Comment 4•4 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
status-firefox88:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 88 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•