diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-06-27 02:09:19 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-06-27 02:09:19 +0200 |
commit | c7330b5eb48cdd69b06e5f55643ea4c94303381f (patch) | |
tree | c66c62b4195c335e3827bb24a0dbfc2d01b4249e /dom/events/InputEvent.h | |
parent | c05d07a68761dac4be7f5371d5c7c4c0d35910f7 (diff) | |
download | UXP-c7330b5eb48cdd69b06e5f55643ea4c94303381f.tar UXP-c7330b5eb48cdd69b06e5f55643ea4c94303381f.tar.gz UXP-c7330b5eb48cdd69b06e5f55643ea4c94303381f.tar.lz UXP-c7330b5eb48cdd69b06e5f55643ea4c94303381f.tar.xz UXP-c7330b5eb48cdd69b06e5f55643ea4c94303381f.zip |
Issue #1602 - Make sure we have a JSObject before trying to get global.
Dynamic script loading/unloading (thank you modules) can yank the script
out from under us before the JS API for it is initialized, leading to
null deref crashes.
This adds a simple check if the passed-in object is sane and present.
Resolves #1602
Diffstat (limited to 'dom/events/InputEvent.h')
0 files changed, 0 insertions, 0 deletions