Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(389)

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/mixedContent/websocket/insecure-websocket-in-secure-page-worker.html

Issue 2587943002: Fix a resource leak in insecure-websocket-in-secure-page-worker.html (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="/js-test-resources/testharness.js"></script> 4 <script src="/js-test-resources/testharness.js"></script>
5 <script src="/js-test-resources/testharnessreport.js"></script> 5 <script src="/js-test-resources/testharnessreport.js"></script>
6 <script> 6 <script>
7 7
8 if (window.testRunner) { 8 if (window.testRunner) {
9 testRunner.setCanOpenWindows(); 9 testRunner.setCanOpenWindows();
10 testRunner.setCloseRemainingWindowsWhenComplete(true); 10 testRunner.setCloseRemainingWindowsWhenComplete(true);
11 testRunner.overridePreference("WebKitAllowRunningInsecureContent", false); 11 testRunner.overridePreference("WebKitAllowRunningInsecureContent", false);
12 } 12 }
13 13
14 var test = async_test("Test that an insecure WebSocket connection is blocked whe n created in a worker created from HTTPS resource."); 14 var test = async_test("Test that an insecure WebSocket connection is blocked whe n created in a worker created from HTTPS resource.");
15 test.step(function () 15 test.step(function ()
16 { 16 {
17 let openedWindow;
17 window.addEventListener("message", test.step_func(function (evt) 18 window.addEventListener("message", test.step_func(function (evt)
18 { 19 {
19 assert_equals(evt.data, "DONE", "evt.data"); 20 assert_equals(evt.data, "DONE", "evt.data");
21 openedWindow.close();
20 test.done(); 22 test.done();
21 }), false); 23 }), false);
22 24
23 window.open("https://127.0.0.1:8443/security/mixedContent/websocket/resource s/expect-throw-on-construction-worker.html"); 25 openedWindow = window.open("https://127.0.0.1:8443/security/mixedContent/web socket/resources/expect-throw-on-construction-worker.html");
24 }); 26 });
25 27
26 </script> 28 </script>
27 </head> 29 </head>
28 <body> 30 <body>
29 </body> 31 </body>
30 </html> 32 </html>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698