mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Fix for bug 769464 (Check mDOMObjectIsISupports when unwrapping). r=bz.
--HG-- extra : rebase_source : 26d0508b8a11d75164ae4b27af8c64e8845166f9
This commit is contained in:
parent
5192b8fc4b
commit
629bad9698
11
dom/bindings/crashtests/769464.html
Normal file
11
dom/bindings/crashtests/769464.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<script>
|
||||
|
||||
function boom()
|
||||
{
|
||||
window.getComputedStyle(new Worker("404.js"));
|
||||
}
|
||||
|
||||
window.addEventListener("load", boom, false);
|
||||
|
||||
</script>
|
1
dom/bindings/crashtests/crashtests.list
Normal file
1
dom/bindings/crashtests/crashtests.list
Normal file
@ -0,0 +1 @@
|
||||
asserts-if(cocoaWidget,0-1) load 769464.html
|
@ -752,6 +752,11 @@ castNative(JSContext *cx,
|
||||
QITableEntry *entries;
|
||||
js::Class* clasp = js::GetObjectClass(cur);
|
||||
if (dom::IsDOMClass(clasp)) {
|
||||
dom::DOMJSClass* domClass = dom::DOMJSClass::FromJSClass(clasp);
|
||||
if (!domClass->mDOMObjectIsISupports) {
|
||||
*pThisRef = nsnull;
|
||||
return NS_ERROR_ILLEGAL_VALUE;
|
||||
}
|
||||
native = dom::UnwrapDOMObject<nsISupports>(cur);
|
||||
entries = nsnull;
|
||||
} else if (dom::binding::instanceIsProxy(cur)) {
|
||||
|
@ -23,6 +23,7 @@ include ../../content/media/test/crashtests/crashtests.list
|
||||
include ../../docshell/base/crashtests/crashtests.list
|
||||
|
||||
include ../../dom/base/crashtests/crashtests.list
|
||||
include ../../dom/bindings/crashtests/crashtests.list
|
||||
include ../../dom/indexedDB/crashtests/crashtests.list
|
||||
include ../../dom/src/offline/crashtests/crashtests.list
|
||||
include ../../dom/src/jsurl/crashtests/crashtests.list
|
||||
|
Loading…
Reference in New Issue
Block a user