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

Unified Diff: chrome/test/data/permissions/flash.js

Issue 2623593002: [HBD] Intercept Flash navigations in popup windows. (Closed)
Patch Set: Created 3 years, 11 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 | « chrome/browser/plugins/flash_permission_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/permissions/flash.js
diff --git a/chrome/test/data/permissions/flash.js b/chrome/test/data/permissions/flash.js
index 0331ce251b0ab40d0d4d166842cfe079b122bf4d..be51ef92d1e5cecd4637a08b68e7c364bfe31e64 100644
--- a/chrome/test/data/permissions/flash.js
+++ b/chrome/test/data/permissions/flash.js
@@ -32,4 +32,12 @@ function flashIsEnabled() {
function flashIsEnabledForPluginWithoutFallback() {
flashIsEnabledForPlugin(
document.getElementById('flash-object-no-fallback'));
-}
+}
+
+function spawnPopupAndAwaitLoad() {
+ var popup = window.open(window.location.href);
+ popup.addEventListener('load', function handleLoad() {
+ popup.removeEventListener('load', handleLoad);
+ window.domAutomationController.send(true);
+ });
+}
« no previous file with comments | « chrome/browser/plugins/flash_permission_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698