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

Side by Side Diff: trunk/LayoutTests/fast/dom/Window/post-message-to-self.html

Issue 1176113004: Revert 196930 "Window.postMessage() to self can cause document l..." (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 5 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | trunk/LayoutTests/fast/dom/Window/post-message-to-self-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
(Empty)
1 <html>
2 <head>
3 <script src="../../../resources/js-test.js"></script>
4 </head>
5 <body>
6 <script>
7 description("Test that window.postMessage() to self is not leaking.");
8
9 window.jsTestIsAsync = true;
10
11 if (window.testRunner) {
12 testRunner.dumpAsText();
13 testRunner.waitUntilDone();
14 }
15
16 function postMessageToSelf() {
17 setInterval(function() {
18 window.postMessage("msg", "*");
19 }, 1);
20 }
21
22 function receiveMessage(event) {
23 testPassed("Received message " + event.data);
24 finishJSTest();
25 }
26
27 window.addEventListener("message", receiveMessage, false);
28 postMessageToSelf();
29 </script>
30 </body>
31 </html
OLDNEW
« no previous file with comments | « no previous file | trunk/LayoutTests/fast/dom/Window/post-message-to-self-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698