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

Unified Diff: trunk/LayoutTests/fast/events/popup-forwarded-postmessage-blocked.html

Issue 264333002: Revert 172810 "Add a "forwarded" flag to usergesture tokens." (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | trunk/LayoutTests/fast/events/popup-forwarded-postmessage-blocked-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/LayoutTests/fast/events/popup-forwarded-postmessage-blocked.html
===================================================================
--- trunk/LayoutTests/fast/events/popup-forwarded-postmessage-blocked.html (revision 173444)
+++ trunk/LayoutTests/fast/events/popup-forwarded-postmessage-blocked.html (working copy)
@@ -1,46 +0,0 @@
-<!DOCTYPE html>
-<head>
- <script src="../../resources/js-test.js"></script>
- <script>
- var newWindow;
-
- if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.setCanOpenWindows();
- testRunner.waitUntilDone();
- testRunner.setPopupBlockingEnabled(true);
- }
-
- function clickHandler() {
- setTimeout(function() {
- window.postMessage({}, "*");
- }, 300);
- }
-
- window.onmessage = function(event) {
- setTimeout(function() {
- newWindow = window.open("about:blank");
- self.focus();
- debug("Test calling window.open() in a nested call to setTimeout(). A popup should not be allowed.")
- shouldBeUndefined("newWindow");
- if (window.testRunner)
- testRunner.notifyDone();
- }, 0);
- };
-
- function clickButton() {
- var button = document.getElementById("test");
- var buttonX = button.offsetLeft + button.offsetWidth / 2;
- var buttonY = button.offsetTop + button.offsetHeight / 2;
- if (window.eventSender) {
- eventSender.mouseMoveTo(buttonX, buttonY);
- eventSender.mouseDown();
- eventSender.mouseUp();
- }
- }
- </script>
-</head>
-<body onload="clickButton()">
- <button id="test" onclick="clickHandler()">Click Here</button>
- <div id="console"></div>
-</body>
« no previous file with comments | « no previous file | trunk/LayoutTests/fast/events/popup-forwarded-postmessage-blocked-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698