mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
No ticket. Restore support for Safari 5.1 in test/unit/support.js for now.
This commit is contained in:
parent
5093b89f08
commit
9968364d14
@ -158,10 +158,16 @@ if ( jQuery.css ) {
|
|||||||
|
|
||||||
})();
|
})();
|
||||||
|
|
||||||
testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Security/CSP) restrictions",
|
// Support: Safari 5.1
|
||||||
"support/csp.php",
|
// Shameless browser-sniff, but Safari 5.1 mishandles CSP
|
||||||
function( support ) {
|
if ( !( typeof navigator !== "undefined" &&
|
||||||
expect( 1 );
|
(/ AppleWebKit\/\d.*? Version\/(\d+)/.exec(navigator.userAgent) || [])[1] < 6 ) ) {
|
||||||
deepEqual( jQuery.extend( {}, support ), computedSupport, "No violations of CSP polices" );
|
|
||||||
}
|
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" );
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user