mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 934062 - Add waitForExplicitFinish to stop intermittent CSP test errors. r=sstamm
This commit is contained in:
parent
e64ec189c6
commit
e419d47cd9
@ -15,12 +15,14 @@
|
||||
SpecialPowers.pushPrefEnv(
|
||||
{'set':[["security.csp.speccompliant", true]]},
|
||||
function() {
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
var testframe = document.getElementById('testframe');
|
||||
testframe.src = 'file_policyuri_regression_from_multipolicy.html';
|
||||
testframe.addEventListener('load', function checkInlineScriptExecuted () {
|
||||
is(this.contentDocument.getElementById('testdiv').innerHTML,
|
||||
'Inline Script Executed',
|
||||
'Inline script should execute (it would be blocked by the policy, but the policy is report-only)');
|
||||
SimpleTest.finish();
|
||||
});
|
||||
}
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user