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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/html/browsers/the-window-object/support/noopener-target.html

Issue 2711183003: Import wpt@a7e9c2abcf65b78fcf1c246fec6681c74e1bc352 (Closed)
Patch Set: Update test expectations and baselines. Created 3 years, 9 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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script> 2 <script>
3 var channelName = location.search.substr(1); 3 var channelName = location.search.substr(1);
4 var channel = new BroadcastChannel(channelName); 4 var channel = new BroadcastChannel(channelName);
5 channel.postMessage({ name: window.name, 5 channel.postMessage({ name: window.name,
6 haveOpener: window.opener !== null }); 6 haveOpener: window.opener !== null });
7 window.close(); 7
8 // Because messages are not delivered synchronously and because closing a
9 // browsing context prompts the eventual clearing of all task sources, this
10 // document should not be closed until the opener document has confirmed
11 // receipt.
12 channel.onmessage = function() {
13 window.close();
14 };
8 </script> 15 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698