Bug 948881 - Remove inline JavaScript in body events. r=ttaubert

This commit is contained in:
Francois Marier 2014-01-15 09:50:04 -05:00
parent 5c65d8030e
commit 07c10fd181
2 changed files with 4 additions and 2 deletions

View File

@ -144,3 +144,6 @@ let healthReportWrapper = {
healthReportWrapper.reportFailure(healthReportWrapper.ERROR_PAYLOAD_FAILED);
},
}
window.addEventListener("load", function () { healthReportWrapper.init(); });
window.addEventListener("unload", function () { healthReportWrapper.uninit(); });

View File

@ -24,8 +24,7 @@
<script type="text/javascript;version=1.8"
src="chrome://browser/content/abouthealthreport/abouthealth.js" />
</head>
<body onload="healthReportWrapper.init();"
onunload="healthReportWrapper.uninit();">
<body>
<iframe id="remote-report"/>
</body>
</html>