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

Unified Diff: third_party/WebKit/LayoutTests/fast/workers/resources/close-context-messageport-crash-iframe.html

Issue 2546313003: M56: Messaging: Fix crash when MessagePort is closed while messages are queued (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
Index: third_party/WebKit/LayoutTests/fast/workers/resources/close-context-messageport-crash-iframe.html
diff --git a/third_party/WebKit/LayoutTests/fast/workers/resources/close-context-messageport-crash-iframe.html b/third_party/WebKit/LayoutTests/fast/workers/resources/close-context-messageport-crash-iframe.html
new file mode 100644
index 0000000000000000000000000000000000000000..32e506951af361fab871001c85aa9dd4d7dcb9f7
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/workers/resources/close-context-messageport-crash-iframe.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>crash when closing a MessagePort - iframe</title>
+<script>
+var worker = new SharedWorker(URL.createObjectURL(new Blob([
+ 'onconnect = e => {' +
+ ' for (let i = 0; i < 10; i++) { e.ports[0].postMessage({}); }' +
+ '};'
+ ], {'type': 'text/javascript'})));
+worker.port.onmessage = () => {
+ window.parent.done();
+};
+</script>

Powered by Google App Engine
This is Rietveld 408576698