mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 605760 - Deal with null a subject principal here. r=jst
--HG-- extra : transplant_source : %BF%E0aY%BB/K%D7Xf%DD%60%FB%B0%DB%1B%C5%B1%8C%AA
This commit is contained in:
parent
a10a2b5ae8
commit
29961b07da
@ -247,6 +247,9 @@ AccessCheck::documentDomainMakesSameOrigin(JSContext *cx, JSObject *obj)
|
||||
subject = GetPrincipal(JS_GetGlobalForObject(cx, scope));
|
||||
}
|
||||
|
||||
if (!subject)
|
||||
return false;
|
||||
|
||||
{
|
||||
JSAutoEnterCompartment ac;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user