Skip to content
Permalink
Browse files

No ticket. Restore support for Safari 5.1 in test/unit/support.js for…

… now.
  • Loading branch information
mgol committed Sep 7, 2013
1 parent 5093b89 commit 9968364d145b1de5276e2864357dad26d2d14546
Showing with 13 additions and 7 deletions.
  1. +13 −7 test/unit/support.js
@@ -158,10 +158,16 @@ if ( jQuery.css ) {

})();

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" );
}
);
}

0 comments on commit 9968364

Please sign in to comment.
You can’t perform that action at this time.