Index: LayoutTests/http/tests/xmlhttprequest/workers/xmlhttprequest-allowed-with-disabled-web-security.html |
diff --git a/LayoutTests/http/tests/xmlhttprequest/workers/xmlhttprequest-allowed-with-disabled-web-security.html b/LayoutTests/http/tests/xmlhttprequest/workers/xmlhttprequest-allowed-with-disabled-web-security.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5e523499e6869fe4479e7213631eaf2c8b16d49a |
--- /dev/null |
+++ b/LayoutTests/http/tests/xmlhttprequest/workers/xmlhttprequest-allowed-with-disabled-web-security.html |
@@ -0,0 +1,27 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+<script src="/js-test-resources/js-test.js"></script> |
+</head> |
+<body> |
+<script> |
+description("Test that disabling web security permits cross-origin XMLHttpRequest requests from a Worker."); |
+ |
+window.jsTestIsAsync = true; |
+ |
+if (window.testRunner) { |
+ testRunner.waitUntilDone(); |
+ testRunner.dumpAsText(); |
+ testRunner.setCanOpenWindows(); |
+ testRunner.setCloseRemainingWindowsWhenComplete(true); |
+ testRunner.overridePreference("WebKitWebSecurityEnabled", false); |
+} |
+ |
+window.addEventListener("message", function (e) { |
+ finishJSTest(); |
+}, false); |
+ |
+window.open("resources/frame-with-insecure-xhr.html"); |
+</script> |
+</body> |
+</html> |