Closed
Bug 1731886
Opened 3 years ago
Closed 3 years ago
Use release asserts for WebIDL union getters
Categories
(Core :: DOM: Bindings (WebIDL), enhancement)
Core
DOM: Bindings (WebIDL)
Tracking
()
RESOLVED
FIXED
94 Branch
People
(Reporter: mccr8, Assigned: mccr8)
Details
Attachments
(1 file)
48 bytes,
text/x-phabricator-request
|
RyanVM
:
approval-mozilla-esr91+
|
Details | Review |
This is easy to do (I have already written a patch) and would let us avoid some bad behavior in certain cases. Nika pointed out that the performance cost probably won't be high because most of the time it'll end up as a redundant check the compiler can easily eliminate:
if (aFoo.IsBar()) {
... aFoo.GetAsBar() ...
}
Assignee | ||
Comment 1•3 years ago
|
||
Updated•3 years ago
|
Type: defect → enhancement
Pushed by amccreight@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5d74bd11ae89
Use release asserts for WebIDL union getters. r=peterv
Comment 3•3 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 3 years ago
status-firefox94:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 94 Branch
Assignee | ||
Comment 4•3 years ago
|
||
Comment on attachment 9242368 [details]
Bug 1731886 - Use release asserts for WebIDL union getters.
ESR Uplift Approval Request
- If this is not a sec:{high,crit} bug, please state case for ESR consideration: This is a low-risk way to fix an entire class of security issues, sort of like release-mode array bounds checks.
- User impact if declined: Theoretically there could be some security issues we have failed to find.
- Fix Landed on Version: 94
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): The risk is that we'd hit this crash frequently. Though that would mean we have some easy to find security issues that we haven't fixed, so crashing is probably better. This has been on Nightly for a few weeks, and on Beta for a few days, without any noticeable impact on stability.
- String or UUID changes made by this patch: none
Attachment #9242368 -
Flags: approval-mozilla-esr91?
Comment 5•3 years ago
|
||
Comment on attachment 9242368 [details]
Bug 1731886 - Use release asserts for WebIDL union getters.
Approved for 91.3esr.
Attachment #9242368 -
Flags: approval-mozilla-esr91? → approval-mozilla-esr91+
Comment 6•3 years ago
|
||
bugherder uplift |
status-firefox-esr91:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•