зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1382357 - Crashtest. r=heycam
MozReview-Commit-ID: IUqzytg3SqL
This commit is contained in:
Родитель
ff4e044f30
Коммит
cdfdf83ff0
|
@ -0,0 +1,36 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
|
||||
<head>
|
||||
|
||||
<bindings xmlns="http://www.mozilla.org/xbl">
|
||||
<binding id="foo"><content><span xmlns="http://www.w3.org/1999/xhtml"/></content></binding>
|
||||
</bindings>
|
||||
|
||||
<script type="text/javascript">
|
||||
// <![CDATA[
|
||||
|
||||
function boom()
|
||||
{
|
||||
// Apply an invalid binding, and wait two ticks of the refresh driver for the async load.
|
||||
var d = document.getElementById("d");
|
||||
d.style.MozBinding = "url(#bar)";
|
||||
requestAnimationFrame(function() {
|
||||
requestAnimationFrame(function() {
|
||||
// Trigger the InnerText getter.
|
||||
document.getElementById("s").innerText;
|
||||
document.documentElement.removeAttribute("class");
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
]]>
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body onload="boom();">
|
||||
|
||||
<div id="d">
|
||||
<span id="s">SpanText</span>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -38,3 +38,4 @@ load 507991-1.xhtml
|
|||
load 830614-1.xul
|
||||
load 895805-1.xhtml
|
||||
load set-field-bad-this.xhtml
|
||||
load 1382357.xhtml
|
||||
|
|
Загрузка…
Ссылка в новой задаче