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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/message-port-deleted-frame.html

Issue 2818563004: sendBeacon should throw a TypeError on bad URLs. (Closed)
Patch Set: Patch Set 2 was the final submit, 3 was uploaded by mistake. Created 3 years, 7 months 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
OLDNEW
1 <body> 1 <body>
2 <p>Test that destroying a frame doesn't cause a crash when posting a message to a MessagePort it owned.</p> 2 <p>Test that destroying a frame doesn't cause a crash when posting a message to a MessagePort it owned.</p>
3 <pre id=log></pre> 3 <pre id=log></pre>
4 <script src="../../resources/gc.js"></script>
4 <script> 5 <script>
5 function gc()
6 {
7 if (window.GCController)
8 return GCController.collect();
9
10 for (var i = 0; i < 10000; i++) { // > force garbage collection (FF requires about 9K allocations before a collect)
11 var s = new String("abc");
12 }
13 }
14 6
15 function log(message) 7 function log(message)
16 { 8 {
17 document.getElementById("log").innerHTML += message + "<br>"; 9 document.getElementById("log").innerHTML += message + "<br>";
18 } 10 }
19 11
20 if (window.testRunner) { 12 if (window.testRunner) {
21 testRunner.dumpAsText(); 13 testRunner.dumpAsText();
22 testRunner.waitUntilDone(); 14 testRunner.waitUntilDone();
23 } 15 }
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 { 54 {
63 log("Didn't crash: SUCCESS"); 55 log("Didn't crash: SUCCESS");
64 56
65 if (window.testRunner) 57 if (window.testRunner)
66 testRunner.notifyDone(); 58 testRunner.notifyDone();
67 } 59 }
68 60
69 </script> 61 </script>
70 <iframe src="resources/message-port-iframe.html" onload="test()"></iframe> 62 <iframe src="resources/message-port-iframe.html" onload="test()"></iframe>
71 </body> 63 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698