mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-02 13:58:40 +09:00
Add a nullcheck in DOMProxyHandler::EnsureExpandoObject jic.
This commit is contained in:
parent
276510c457
commit
290eea38cf
1 changed files with 4 additions and 0 deletions
|
|
@ -166,6 +166,10 @@ DOMProxyHandler::EnsureExpandoObject(JSContext* cx, JS::Handle<JSObject*> obj)
|
|||
nsISupports* native = UnwrapDOMObject<nsISupports>(obj);
|
||||
nsWrapperCache* cache;
|
||||
CallQueryInterface(native, &cache);
|
||||
if (!cache) {
|
||||
return expando;
|
||||
}
|
||||
|
||||
if (expandoAndGeneration) {
|
||||
cache->PreserveWrapper(native);
|
||||
expandoAndGeneration->expando.setObject(*expando);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue