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

Side by Side Diff: LayoutTests/inspector/sources/debugger/resources/post-message-listener.html

Issue 404953003: DevTools: Async call stacks for window.postMessage() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 6 years, 5 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script>
5 function onMessageReceivedInFrame(e) {
6 var msg = 'Received message: data="' + e.data + '" origin="' + e.origin + '" ';
7 debugger;
8 postMessageToParent(msg);
9 }
10
11 function postMessageToParent(msg)
12 {
13 top.postMessage(msg, "*");
14 }
15
16 window.addEventListener("message", onMessageReceivedInFrame, false);
17 </script>
18 </body>
19 </html>
OLDNEW
« no previous file with comments | « LayoutTests/inspector/sources/debugger/async-callstack-post-message-expected.txt ('k') | Source/core/frame/LocalDOMWindow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698