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
Родитель 9adc997804
Коммит 6615e709d1
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -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 () {