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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/security/mixedContent/websocket/insecure-websocket-in-secure-page-worker.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/mixedContent/websocket/insecure-websocket-in-secure-page-worker.html b/third_party/WebKit/LayoutTests/http/tests/security/mixedContent/websocket/insecure-websocket-in-secure-page-worker.html
index 471d46219f1f6626fd222ed2453d3b851e6d047e..657a54332e3acb89a1d082f07a4f3bfbc6c46c30 100644
--- a/third_party/WebKit/LayoutTests/http/tests/security/mixedContent/websocket/insecure-websocket-in-secure-page-worker.html
+++ b/third_party/WebKit/LayoutTests/http/tests/security/mixedContent/websocket/insecure-websocket-in-secure-page-worker.html
@@ -14,13 +14,15 @@ if (window.testRunner) {
var test = async_test("Test that an insecure WebSocket connection is blocked when created in a worker created from HTTPS resource.");
test.step(function ()
{
+ let openedWindow;
window.addEventListener("message", test.step_func(function (evt)
{
assert_equals(evt.data, "DONE", "evt.data");
+ openedWindow.close();
test.done();
}), false);
- window.open("https://127.0.0.1:8443/security/mixedContent/websocket/resources/expect-throw-on-construction-worker.html");
+ openedWindow = window.open("https://127.0.0.1:8443/security/mixedContent/websocket/resources/expect-throw-on-construction-worker.html");
});
</script>
« 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