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,6 +158,11 @@ if ( jQuery.css ) {
|
||||
|
||||
})();
|
||||
|
||||
// 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 ) {
|
||||
@ -165,3 +170,4 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec
|
||||
deepEqual( jQuery.extend( {}, support ), computedSupport, "No violations of CSP polices" );
|
||||
}
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user