diff --git a/dom/security/test/csp/test_frameancestors_userpass.html b/dom/security/test/csp/test_frameancestors_userpass.html index 383262570745..056fc1db482c 100644 --- a/dom/security/test/csp/test_frameancestors_userpass.html +++ b/dom/security/test/csp/test_frameancestors_userpass.html @@ -95,7 +95,10 @@ var frameLoaded = function(testname, uri) { var frameBlocked = function(uri, policy) { //Check if @ symbol is there in URI or in csp policy. - if (policy.includes('@') || uri.includes('@')) { + // Bug 1557712: Intermittent failure -> not sure why the 'uri' might ever + // be non existing at this point, however if there is no uri, there can + // also be no userpass! + if (policy.includes('@') || (uri && uri.includes('@'))) { ok(false, ' a CSP policy blocked frame from being loaded. But contains' + ' userpass. Policy is: ' + policy + ';URI is: ' + uri ); } else {