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

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

Issue 10941042: Browser plugin: Implement loadStart and loadAbort events (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed extra space Created 8 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 | « content/renderer/browser_plugin/browser_plugin_manager_impl.cc ('k') | no next file » | 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 dc2e780d72bebc3e23816992d104a631272d9307..5348b720ec7ba8f095591b99aae719a03624fbac 100644
--- a/content/test/data/browser_plugin_embedder.html
+++ b/content/test/data/browser_plugin_embedder.html
@@ -1,4 +1,10 @@
<script type="text/javascript">
+function loadAbort(evt) {
+ document.title = evt.type;
+}
+function loadStart(evt) {
+ document.title = evt.url;
+}
function SetSrc(src) {
var plugin = document.getElementById('plugin');
plugin.src = src;
@@ -23,8 +29,7 @@ function Go(relativeIndex) {
function SetTitle(str) {
document.title = str;
}
-
-window.document.title = 'embedder';
+document.title = 'embedder';
</script>
<object id="plugin"
@@ -33,3 +38,9 @@ window.document.title = 'embedder';
width="640"
height="480"
border="0px"></object>
+
+<script>
+ var plugin = document.getElementById('plugin');
+ plugin.addEventListener('loadStart', loadStart);
+ plugin.addEventListener('loadAbort', loadAbort);
+</script>
« no previous file with comments | « content/renderer/browser_plugin/browser_plugin_manager_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698