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

Unified Diff: chrome/test/data/load_pepper_plugin.html

Issue 2356053002: [HBD] Only use Plugin Content Settings for Flash. (Closed)
Patch Set: address xhwang comments Created 4 years, 3 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/test/data/load_flash_no_js.html ('k') | chrome/test/data/prerender/prerender_plugin_delay_load.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/load_pepper_plugin.html
diff --git a/chrome/test/data/load_pepper_plugin.html b/chrome/test/data/load_pepper_plugin.html
index d1103a8e60f5016218b9e762b05446d62e7edefe..23e5147756c1962e1ed1637625887d942305b24a 100644
--- a/chrome/test/data/load_pepper_plugin.html
+++ b/chrome/test/data/load_pepper_plugin.html
@@ -22,7 +22,8 @@ var mimeType = QueryString.mimetype;
function inject() {
var child = document.createElement('div');
- child.innerHTML = '<object type="' + mimeType + '" id="plugin" border=1>' +
+ // Set data="foo" to make this content same-origin (so it's not throttled).
+ child.innerHTML = '<object type="' + mimeType + '" id="plugin" data="foo">' +
' <b>You should not see this text!</b>' +
'</object>';
document.getElementById('content').appendChild(child);
@@ -36,12 +37,12 @@ function inject() {
document.title = 'Not Loaded';
return;
}
-
+
plugin.postMessage('hello');
// If we do not get an exception, the Pepper plugin is loaded.
document.title = 'Loaded';
} catch (e) {
- var errorMessage = 'Unexpected Exception: ' + e.toString();
+ var errorMessage = 'Unexpected Exception: ' + e.toString();
document.title = errorMessage;
console.log(errorMessage);
}
« no previous file with comments | « chrome/test/data/load_flash_no_js.html ('k') | chrome/test/data/prerender/prerender_plugin_delay_load.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698