Bug 1286376 - Do not call finish multiple times within test_contentpolicytype_targeted_link_iframe.html. r=smaug

This commit is contained in:
Christoph Kerschbaumer 2016-07-13 09:04:30 +02:00
parent b34fdcf7fe
commit 97e696739a

View File

@ -64,11 +64,11 @@ var policy = {
is(contentType, EXPECTED_CONTENT_TYPE,
"content policy type should TYPESUBDOCUMENT");
testCounter++;
}
if (testCounter === EXPECTED_RESULTS) {
categoryManager.deleteCategoryEntry("content-policy", POLICYNAME, false);
SimpleTest.finish();
if (testCounter === EXPECTED_RESULTS) {
categoryManager.deleteCategoryEntry("content-policy", POLICYNAME, false);
SimpleTest.finish();
}
}
return Ci.nsIContentPolicy.ACCEPT;
},