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

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 Merge Conflict 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 e192865d642cff04036c1a84c1e3e849e04cb307..32a34916896dded5c1ec3dfe6914d4e0e48b8a7b 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) {
@@ -61,4 +71,7 @@ document.title = 'embedder';
plugin.addEventListener('loadStart', loadStart);
plugin.addEventListener('loadAbort', loadAbort);
plugin.addEventListener('loadRedirect', loadRedirect);
+ window.addEventListener('message', receiveMessage, false);
Charlie Reis 2012/10/17 21:27:08 Please remove this line. (It's another merge conf
irobert 2012/10/18 01:42:25 Done.
+ plugin.addEventListener('loadStop', loadStop);
+ plugin.addEventListener('loadCommit', loadCommit);
</script>

Powered by Google App Engine
This is Rietveld 408576698