Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / content / test / data / browser_plugin_embedder.html
index b48ecdd..ea142c7 100644 (file)
@@ -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>