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

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

Issue 11035067: Add loadCommit and loadStop Event (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Comments and Nits 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 45b374e3ac9f9d91494114f5cfb0b6418c9a0168..18751834593523b3367fa25c2b69fa65186fb6dc 100644
--- a/content/test/data/browser_plugin_embedder.html
+++ b/content/test/data/browser_plugin_embedder.html
@@ -5,6 +5,16 @@ function loadAbort(evt) {
function loadStart(evt) {
document.title = evt.url;
}
+function loadStop(evt) {
+ document.title = "loadStop";
+}
+
+var isTopLevel;
Charlie Reis 2012/10/11 18:55:28 nit: commitIsTopLevel. (There are isTopLevel prope
irobert 2012/10/11 20:45:49 Done.
+function loadCommit(evt) {
+ document.title = evt.url;
Charlie Reis 2012/10/11 18:55:28 We can't distinguish between this and loadStart.
irobert 2012/10/11 20:45:49 I use "loadCommit:" as the prefix and plus the url
+ isTopLevel = evt.isTopLevel;
+}
+
var redirectOldUrl;
var redirectNewUrl;
function loadRedirect(event) {
@@ -53,4 +63,6 @@ document.title = 'embedder';
plugin.addEventListener('loadStart', loadStart);
plugin.addEventListener('loadAbort', loadAbort);
plugin.addEventListener('loadRedirect', loadRedirect);
+ plugin.addEventListener('loadStop', loadStop);
+ plugin.addEventListener('loadCommit', loadCommit);
</script>

Powered by Google App Engine
This is Rietveld 408576698