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

Side by Side Diff: LayoutTests/fast/dom/message-port-deleted-by-accessor.html

Issue 8041034: Merge 95689 - [Chromium] Protect message ports from being deleted in V8MessageEvent::portsAccesso... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/835/
Patch Set: Created 9 years, 2 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/message-port-deleted-by-accessor-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script> 3 <script>
4 if (window.layoutTestController) 4 if (window.layoutTestController)
5 layoutTestController.dumpAsText(); 5 layoutTestController.dumpAsText();
6 6
7 window.onload = function() 7 window.onload = function()
8 { 8 {
9 channel = new MessageChannel; 9 channel = new MessageChannel;
10 event = document.createEvent("MessageEvent"); 10 event = document.createEvent("MessageEvent");
11 11
12 event.initMessageEvent(0, 0, 0, 0, 0, 0, 0, [channel.port1, channel.port2]); 12 event.initMessageEvent(0, 0, 0, 0, 0, 0, 0, [channel.port1, channel.port2]);
13 13
14 Array.prototype.__defineSetter__(0, function() { 14 Array.prototype.__defineSetter__(0, function() {
15 event.initMessageEvent(0, 0, 0, 0, 0, 0, 0, [ ]); 15 event.initMessageEvent(0, 0, 0, 0, 0, 0, 0, [ ]);
16 }); 16 });
17 17
18 event.ports; 18 event.ports;
19 } 19 }
20 </script> 20 </script>
21 </head> 21 </head>
22 <body> 22 <body>
23 This test passes if it doesn't crash. 23 This test passes if it doesn't crash.
24 </body> 24 </body>
25 </html> 25 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/message-port-deleted-by-accessor-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698