diff --git a/layout/base/tests/test_bug518777.html b/layout/base/tests/test_bug518777.html
index f60b34fd89dd..f16ab30cfa40 100644
--- a/layout/base/tests/test_bug518777.html
+++ b/layout/base/tests/test_bug518777.html
@@ -24,6 +24,8 @@ iframe source is
/** Test for Bug 518777 **/
+SimpleTest.waitForExplicitFinish();
+
function dotest() {
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
@@ -44,6 +46,8 @@ function dotest() {
}
}
ok(!failed, "all pixels blue");
+
+ SimpleTest.finish();
}