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 c0168b59805df366150591f6abcaeb61f9b773c1..c7294a2236869419f90d7b43e194ae9ebcd6de87 100644 |
--- a/content/test/data/browser_plugin_embedder.html |
+++ b/content/test/data/browser_plugin_embedder.html |
@@ -1,9 +1,9 @@ |
<script type="text/javascript"> |
function loadAbort(evt) { |
- document.title = evt.type; |
+ document.title = evt.detail.reason; |
} |
function loadStart(evt) { |
- document.title = evt.url; |
+ document.title = evt.detail.url; |
} |
function loadStop(evt) { |
document.title = "loadStop"; |
@@ -11,17 +11,17 @@ function loadStop(evt) { |
var commitIsTopLevel; |
function loadCommit(evt) { |
- document.title = "loadCommit:" + evt.url; |
- commitIsTopLevel = evt.isTopLevel; |
+ document.title = "loadCommit:" + evt.detail.url; |
+ commitIsTopLevel = evt.detail.isTopLevel; |
} |
var redirectOldUrl; |
var redirectNewUrl; |
function loadRedirect(event) { |
document.title = "redirected"; |
- if (event.isTopLevel) { |
- redirectOldUrl = event.oldUrl; |
- redirectNewUrl = event.newUrl; |
+ if (event.detail.isTopLevel) { |
+ redirectOldUrl = event.detail.oldUrl; |
+ redirectNewUrl = event.detail.newUrl; |
} |
} |
function SetSrc(src) { |
@@ -95,10 +95,10 @@ function receiveMessage(event) { |
} |
} |
var plugin = document.getElementById('plugin'); |
- plugin.addEventListener('loadstart', loadStart); |
- plugin.addEventListener('loadabort', loadAbort); |
- plugin.addEventListener('loadredirect', loadRedirect); |
+ plugin.addEventListener('-internal-loadstart', loadStart); |
+ plugin.addEventListener('-internal-loadabort', loadAbort); |
+ plugin.addEventListener('-internal-loadredirect', loadRedirect); |
window.addEventListener('message', receiveMessage, false); |
- plugin.addEventListener('loadstop', loadStop); |
- plugin.addEventListener('loadcommit', loadCommit); |
+ plugin.addEventListener('-internal-loadstop', loadStop); |
+ plugin.addEventListener('-internal-loadcommit', loadCommit); |
</script> |