mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1033343: Handle an uninitialized CustomEvent correctly. r=smaug
This commit is contained in:
parent
9bf3f6fd96
commit
dc7958f63c
@ -101,6 +101,11 @@ void
|
||||
CustomEvent::GetDetail(JSContext* aCx,
|
||||
JS::MutableHandle<JS::Value> aRetval)
|
||||
{
|
||||
if (!mDetail) {
|
||||
aRetval.setNull();
|
||||
return;
|
||||
}
|
||||
|
||||
VariantToJsval(aCx, mDetail, aRetval);
|
||||
}
|
||||
|
||||
|
5
dom/events/crashtests/1033343.html
Normal file
5
dom/events/crashtests/1033343.html
Normal file
@ -0,0 +1,5 @@
|
||||
<script>
|
||||
|
||||
document.createEvent('CustomEvent').detail;
|
||||
|
||||
</script>
|
@ -5,6 +5,7 @@ load 422009-1.xhtml
|
||||
load 457776-1.html
|
||||
load 496308-1.html
|
||||
load 682637-1.html
|
||||
load 1033343.html
|
||||
load eventctor-nulldictionary.html
|
||||
load eventctor-nullstorage.html
|
||||
load recursive-onload.html
|
||||
|
Loading…
Reference in New Issue
Block a user