зеркало из https://github.com/mozilla/gecko-dev.git
Bug 763626 r=bz
This commit is contained in:
Родитель
3fcec5de9d
Коммит
807ff1b8f1
|
@ -4187,7 +4187,8 @@ nsDOMSettableTokenListPropertyDestructor(void *aObject, nsIAtom *aProperty,
|
|||
{
|
||||
nsDOMSettableTokenList* list =
|
||||
static_cast<nsDOMSettableTokenList*>(aPropertyValue);
|
||||
NS_IF_RELEASE(list);
|
||||
list->DropReference();
|
||||
NS_RELEASE(list);
|
||||
}
|
||||
|
||||
nsDOMSettableTokenList*
|
||||
|
|
|
@ -265,6 +265,7 @@ _TEST_FILES = \
|
|||
test_bug742549.html \
|
||||
test_bug745685.html \
|
||||
test_input_file_picker.html \
|
||||
test_bug763626.html \
|
||||
$(NULL)
|
||||
|
||||
_BROWSER_TEST_FILES = \
|
||||
|
|
|
@ -0,0 +1,29 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<!--
|
||||
https://bugzilla.mozilla.org/show_bug.cgi?id=763626
|
||||
-->
|
||||
<head>
|
||||
<title>Test for Bug 763626</title>
|
||||
|
||||
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
|
||||
|
||||
<script type="application/javascript">
|
||||
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
|
||||
function boom()
|
||||
{
|
||||
var r = document.createElement("div").itemRef;
|
||||
SpecialPowers.DOMWindowUtils.garbageCollect();
|
||||
is("" + r, "", "ToString should return empty string when element is gone");
|
||||
SimpleTest.finish();
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body onload="boom();"></body>
|
||||
</html>
|
||||
|
Загрузка…
Ссылка в новой задаче