diff --git a/browser/components/thumbnails/test/head.js b/browser/components/thumbnails/test/head.js index d0516d82aca..984cb5e4c20 100644 --- a/browser/components/thumbnails/test/head.js +++ b/browser/components/thumbnails/test/head.js @@ -148,6 +148,7 @@ function getXULDocument(aCallback) { }, false); doc.body.appendChild(iframe); + registerCleanupFunction(function () { doc.body.removeChild(iframe); }); } /**