зеркало из https://github.com/mozilla/pjs.git
Bug 454717 - Check/Fix browser chrome tests which |addEventListener()| without |removeEventListener()|; (Av1) Fix harness-overlay.xul; r=gavin.sharp
This commit is contained in:
Родитель
6a306881a6
Коммит
f3cb4343df
|
@ -20,6 +20,8 @@
|
|||
<script type="application/javascript;version=1.7"><![CDATA[
|
||||
function loadTests()
|
||||
{
|
||||
window.removeEventListener("load", loadTests, false);
|
||||
|
||||
var dir = document.documentElement.getAttribute('directory');
|
||||
// Find our chrome dir
|
||||
var ios = Cc["@mozilla.org/network/io-service;1"].
|
||||
|
@ -62,7 +64,8 @@
|
|||
if ("testPath" in params && params.testPath)
|
||||
window.location.href = url + params.testPath;
|
||||
}
|
||||
window.addEventListener("load", loadTests, false)
|
||||
|
||||
window.addEventListener("load", loadTests, false);
|
||||
]]>
|
||||
</script>
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче