diff --git a/test/unit/support.js b/test/unit/support.js index eda6a5195..3ee2c8d6b 100644 --- a/test/unit/support.js +++ b/test/unit/support.js @@ -423,10 +423,16 @@ testIframeWithCallback( "box-sizing does not affect jQuery.support.shrinkWrapBlo })(); -testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Security/CSP) restrictions", - "support/csp.php", - function( support ) { - expect( 1 ); - deepEqual( jQuery.extend( {}, support ), computedSupport, "No violations of CSP polices" ); - } -); +// Support: Safari 5.1 +// Shameless browser-sniff, but Safari 5.1 mishandles CSP +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 ), computedSupport, "No violations of CSP polices" ); + } + ); +}