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

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: Addressed creis@'s comments 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
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..6c4263e06a278405841c77044b543cf66cd235fc 100644
--- a/content/test/data/browser_plugin_embedder.html
+++ b/content/test/data/browser_plugin_embedder.html
@@ -1,6 +1,14 @@
<script type="text/javascript">
+function loadAbort(evt) {
+ document.title = 'abort';
Charlie Reis 2012/10/04 02:57:48 Maybe we should set it to evt.type, so we can test
Fady Samuel 2012/10/04 15:04:51 Done.
+}
+function loadStart(evt) {
+ document.title = evt.url;
+}
function SetSrc(src) {
var plugin = document.getElementById('plugin');
+ plugin.addEventListener('loadStart', loadStart);
+ plugin.addEventListener('loadAbort', loadAbort);
Charlie Reis 2012/10/04 02:57:48 This will cause these listeners to be added multip
Fady Samuel 2012/10/04 15:04:51 Done.
plugin.src = src;
}
function SetSize(w, h) {
@@ -23,8 +31,7 @@ function Go(relativeIndex) {
function SetTitle(str) {
document.title = str;
}
-
-window.document.title = 'embedder';
+document.title = 'embedder';
</script>
<object id="plugin"

Powered by Google App Engine
This is Rietveld 408576698