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

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 ShimSrcAttribute Test 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 5702027a050d16e10edb82d9bd5023fea8541146..0f3d6a0539416568b978ed22dbb3855daa802181 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 commitIsTopLevel;
+function loadCommit(evt) {
+ document.title = "loadCommit:" + evt.url;
+ commitIsTopLevel = evt.isTopLevel;
+}
+
var redirectOldUrl;
var redirectNewUrl;
function loadRedirect(event) {
@@ -89,4 +99,6 @@ function receiveMessage(event) {
plugin.addEventListener('loadAbort', loadAbort);
plugin.addEventListener('loadRedirect', loadRedirect);
window.addEventListener('message', receiveMessage, false);
+ plugin.addEventListener('loadStop', loadStop);
+ plugin.addEventListener('loadCommit', loadCommit);
</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