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

This commit is contained in:
Michał Gołębiowski 2013-09-07 02:30:19 +02:00
parent 5093b89f08
commit 9968364d14

View File

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