Streamline Objective C exception handling in native menu code
Categories
(Core :: Widget: Cocoa, task, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox87 | --- | fixed |
People
(Reporter: mstange, Assigned: mstange)
References
(Blocks 2 open bugs)
Details
Attachments
(2 files)
In this bug I want to convert the menu code to use fatal exception guards (bug 1693389), and to use them consistently (bug 1693392).
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
Fatal exceptions make it easier to reason about code, because early "abondonment"
reduces the number of failure states that the code needs to handle. None of the
Objective C calls we make in menu code is supposed to throw an exception; by
crashing eagerly, we can quickly find out which ones do.
Since this patch can introduce new crashes, I would like to get it patch into
Nightly as quickly as possible so that we can watch crash stats and find any
"expected" exceptions, and add custom handling for them.
Depends on D105516
Assignee | ||
Comment 2•4 years ago
|
||
This patch removes exception guards from a number of Objective C methods, and
introduces exception guards to a number of C++ methods. The goal is to guard the
"boundary" between the two worlds.
Depends on D105517
Comment 4•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/eb723067be18
https://hg.mozilla.org/mozilla-central/rev/b03a44019284
Description
•