Closed Bug 1732953 Opened 3 years ago Closed 3 years ago

user-interaction flag isn't inherited if the result promise is optimized out

Categories

(Core :: DOM: Core & HTML, defect, P1)

defect

Tracking

()

RESOLVED FIXED
95 Branch
Tracking Status
firefox95 --- fixed

People

(Reporter: arai, Assigned: arai)

References

Details

Attachments

(1 file)

Promise.prototype.then optimizes out the result promise if the value isn't in JS code,
but user-interaction code uses the promise internally.

we should check the user-interaction flag and do not optimize the result promise if the flag has non-default value.

No longer blocks: 1732478
Pushed by arai_a@mac.com: https://hg.mozilla.org/integration/autoland/rev/0b9d47b0584a Do not optimize out the Promise.prototype.{then,catch} return value if user-interaction flag is set. r=yulia
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 95 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: