Commit dc9b009c authored by Richard Gibson's avatar Richard Gibson

Fix 363299ac failures: protect Safari 5.1 from CSP

parent 6971d9d8
...@@ -29,7 +29,13 @@ testIframeWithCallback( "box-sizing does not affect jQuery.support.shrinkWrapBlo ...@@ -29,7 +29,13 @@ testIframeWithCallback( "box-sizing does not affect jQuery.support.shrinkWrapBlo
strictEqual( shrinkWrapBlocks, jQuery.support.shrinkWrapBlocks, "jQuery.support.shrinkWrapBlocks properties are the same" ); strictEqual( shrinkWrapBlocks, jQuery.support.shrinkWrapBlocks, "jQuery.support.shrinkWrapBlocks properties are the same" );
}); });
testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Security/CSP) restrictions", "support/csp.php", function( support ) { // Support: Safari 5.1
expect( 1 ); // Shameless browser-sniff, but Safari 5.1 mishandles CSP
deepEqual( jQuery.extend( {}, support ), jQuery.support, "No violations of CSP polices" ); if ( !( typeof navigator !== "undefined" &&
}); (/ AppleWebKit\/\d.*? Version\/(\d+)/.exec(navigator.userAgent) || [])[1] < 6 ) ) {
testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Security/CSP) restrictions", "support/csp.php", function( support ) {
expect( 1 );
deepEqual( jQuery.extend( {}, support ), jQuery.support, "No violations of CSP polices" );
});
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment