<?php
+ # Support: Firefox
header("X-Content-Security-Policy: default-src 'self';");
- header("X-WebKit-CSP: script-src 'self'");
+
+ # Support: Webkit, Safari 5
+ # http://stackoverflow.com/questions/13663302/why-does-my-content-security-policy-work-everywhere-but-safari
+ header("X-WebKit-CSP: script-src " . $_SERVER["HTTP_HOST"] . " 'self'");
+
+ header("Content-Security-Policy: default-src 'self'");
?>
<!DOCTYPE html>
<html>
t( "Improperly named form elements do not interfere with form selections (#9570)", "form[name='formName']", ["form1"] );
});
-testIframeWithCallback("Sizzle cache collides with multiple Sizzles on a page", "selector/sizzle_cache.html", function( $cached, jQuery, document ) {
+testIframe("selector/sizzle_cache", "Sizzle cache collides with multiple Sizzles on a page", function( jQuery, window, document ) {
+ var $cached = window["$cached"];
+
expect(4);
notStrictEqual( jQuery, $cached, "Loaded two engines" );
deepEqual( $cached(".test a").get(), [ document.getElementById("collision") ], "Select collision anchor with first sizzle" );