mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 05:45:37 +00:00
dee16f4e92
This makes sure dynamic builtin events follow the same semantics as static builtin events. On registration of the event the category is stored, but not enabled. For fully-dynamic events, e.g. those registered by addons, the category is enabled immediately (and can't be disabled). This removes now-unused type definitions and switches from a map to a simple set to store the category names. The value stored in the map previously was not used at all. In theory the map was effectively immutable after initialization, but the check was only forced in debug anyway. Now the set is mutable, but is only mutated in exactly 2 places. MozReview-Commit-ID: 8tLEVXzHuHw --HG-- extra : rebase_source : c21ebd5718f895ff8a06def95265a2c1c5930521 |
||
---|---|---|
.. | ||
components | ||
content | ||
crashreporter | ||
forgetaboutsite | ||
library | ||
locales | ||
modules | ||
mozapps | ||
pluginproblem | ||
profile | ||
system | ||
themes | ||
xre | ||
.eslintrc.js | ||
moz.build | ||
moz.configure | ||
nss.configure | ||
toolkit.mozbuild |