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

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

Issue 2391743005: Make the flash permission prompt work properly on file: URLs (Closed)
Patch Set: test prompt Created 4 years, 2 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_context.cc ('k') | chrome/test/data/permissions/flash.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/permissions/flash.html
diff --git a/chrome/test/data/permissions/flash.html b/chrome/test/data/permissions/flash.html
index d2da65dc516dac22637523978051f638ef49611f..c13aa6ade53a09fe9590d2dba972e47c4c11d9c5 100644
--- a/chrome/test/data/permissions/flash.html
+++ b/chrome/test/data/permissions/flash.html
@@ -1,38 +1,6 @@
<!DOCTYPE html>
<html>
-<script>
- function triggerPrompt() {
- document.getElementById('flash-link').click();
- window.domAutomationController.send(true);
- }
-
- function triggerPromptViaNewWindow() {
- document.getElementById('flash-new-window-link').click();
- window.domAutomationController.send(true);
- }
-
- function flashIsEnabledForPlugin(plugin) {
- plugin.addEventListener('message', function handleEvent(event) {
- if (event.data.source === 'getPowerSaverStatusResponse') {
- plugin.removeEventListener('message', handleEvent);
- window.domAutomationController.send(true);
- }
- });
- if (plugin.postMessage)
- plugin.postMessage('getPowerSaverStatus');
- else
- window.domAutomationController.send(false);
- }
-
- function flashIsEnabled() {
- flashIsEnabledForPlugin(document.getElementById('flash-object'));
- }
-
- function flashIsEnabledForPluginWithoutFallback() {
- flashIsEnabledForPlugin(
- document.getElementById('flash-object-no-fallback'));
- }
-</script>
+<script src="flash.js"></script>
<body>
<object id="flash-object-no-fallback" data="test.swf"
type="application/x-shockwave-flash" width="400" height="100">
« no previous file with comments | « chrome/browser/plugins/flash_permission_context.cc ('k') | chrome/test/data/permissions/flash.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698