зеркало из https://github.com/mozilla/gecko-dev.git
bug 840124 - really fix the leaks this time
This commit is contained in:
Родитель
a7c07b53a8
Коммит
05d8bbf299
|
@ -34,6 +34,10 @@ let healthReportWrapper = {
|
|||
prefs.observe("uploadEnabled", this.updatePrefState, healthReportWrapper);
|
||||
},
|
||||
|
||||
uninit: function () {
|
||||
prefs.ignore("uploadEnabled", this.updatePrefState, healthReportWrapper);
|
||||
},
|
||||
|
||||
_getReportURI: function () {
|
||||
let url = Services.urlFormatter.formatURLPref("datareporting.healthreport.about.reportUrl");
|
||||
return Services.io.newURI(url, null, null);
|
||||
|
|
|
@ -22,7 +22,8 @@
|
|||
<script type="text/javascript;version=1.8"
|
||||
src="chrome://browser/content/abouthealthreport/abouthealth.js" />
|
||||
</head>
|
||||
<body onload="healthReportWrapper.init();">
|
||||
<body onload="healthReportWrapper.init();"
|
||||
onunload="healthReportWrapper.uninit();">
|
||||
<iframe id="remote-report"/>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Загрузка…
Ссылка в новой задаче