Bug 934062 - Move call to waitForExplicitFinish to avoid race condition r=sstamm

This commit is contained in:
Garrett Robinson 2013-11-22 13:41:45 -08:00
parent 9adc997804
commit 6615e709d1

View File

@ -12,10 +12,11 @@
<body>
<iframe style="width:200px;height:200px;" id='testframe'></iframe>
<script class="testbody" type="text/javascript">
SimpleTest.waitForExplicitFinish();
SpecialPowers.pushPrefEnv(
{'set':[["security.csp.speccompliant", true]]},
function() {
SimpleTest.waitForExplicitFinish();
function () {
var testframe = document.getElementById('testframe');
testframe.src = 'file_policyuri_regression_from_multipolicy.html';
testframe.addEventListener('load', function checkInlineScriptExecuted () {