зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1230110 - HTMLImageElement should call its superclass's DestroyContent(). r=smaug
--HG-- extra : commitid : 6PKR4a9fssr extra : source : b9d8d05aa4ee1cca71192d4d6c00900e8d1169b6
This commit is contained in:
Родитель
cb90360057
Коммит
ba894c4313
|
@ -1309,6 +1309,8 @@ void
|
|||
HTMLImageElement::DestroyContent()
|
||||
{
|
||||
mResponsiveSelector = nullptr;
|
||||
|
||||
nsGenericHTMLElement::DestroyContent();
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<script>
|
||||
// This test case should not leak.
|
||||
function leak()
|
||||
{
|
||||
var img = document.createElement("img");
|
||||
var iframe = document.createElement("iframe");
|
||||
img.appendChild(iframe);
|
||||
document.body.appendChild(img);
|
||||
|
||||
document.addEventListener('Foo', function(){}, false);
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body onload="leak();"></body>
|
||||
</html>
|
|
@ -75,3 +75,5 @@ load 916322-2.html
|
|||
load 1032654.html
|
||||
pref(dom.image.srcset.enabled,true) load 1141260.html
|
||||
load 1228876.html
|
||||
load 1230110.html
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче