Bug 462926 - 'Crash [@ xpc_qsSelfRef::~xpc_qsSelfRef] with getUserData.call'. r+sr=jst.

This commit is contained in:
Peter Van der Beken 2008-11-04 13:50:50 -08:00
parent 7f61ea749a
commit 146cbb323b
3 changed files with 14 additions and 1 deletions

View File

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
try { document.createTextNode("").getUserData.call(0, 0); } catch(e) { }
</script>
</head>
<body>
</body>
</html>

View File

@ -8,3 +8,4 @@ load 394810-1.html
load 403356-1.html
load 418139-1.svg
load 420513-1.html
load 462926.html

View File

@ -266,7 +266,7 @@ public:
struct xpc_qsSelfRef
{
xpc_qsSelfRef() {}
xpc_qsSelfRef() : ptr(nsnull) {}
explicit xpc_qsSelfRef(nsISupports *p) : ptr(p) {}
~xpc_qsSelfRef() { NS_IF_RELEASE(ptr); }