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

Unified Diff: content/test/data/browser_plugin_embedder.html

Issue 250063002: Browser Plugin: Simplified guest attachment (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed New Window API test Created 6 years, 8 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 | « content/test/data/browser_plugin_dragging.html ('k') | content/test/data/browser_plugin_focus.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/browser_plugin_embedder.html
diff --git a/content/test/data/browser_plugin_embedder.html b/content/test/data/browser_plugin_embedder.html
index b48ecdd8bc2674fba5be7da32c6cd85f56f5416c..ea142c7f70c8e241530ad847b1635d0ce2899603 100644
--- a/content/test/data/browser_plugin_embedder.html
+++ b/content/test/data/browser_plugin_embedder.html
@@ -53,6 +53,7 @@ function receiveMessage(event) {
var plugin = document.getElementById('plugin');
window.addEventListener('message', receiveMessage, false);
plugin.addEventListener('-internal-instanceid-allocated', function(e) {
- plugin['-internal-attach']({});
+ var detail = e.detail ? JSON.parse(e.detail) : {};
+ plugin['-internal-attach'](detail.windowId, {});
});
</script>
« no previous file with comments | « content/test/data/browser_plugin_dragging.html ('k') | content/test/data/browser_plugin_focus.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698