diff options
author | irobert@chromium.org <irobert@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-19 00:56:12 +0000 |
---|---|---|
committer | irobert@chromium.org <irobert@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-19 00:56:12 +0000 |
commit | eb92f630d55178ce2ec03cc2f9ab6899bef8f465 (patch) | |
tree | 3bf34e8e40c2be442d3226d2ed399cac46b1f2b1 /content/test/data | |
parent | 707c7bb5c5f6450a53b9825fccded29266ce29d0 (diff) | |
download | chromium_src-eb92f630d55178ce2ec03cc2f9ab6899bef8f465.zip chromium_src-eb92f630d55178ce2ec03cc2f9ab6899bef8f465.tar.gz chromium_src-eb92f630d55178ce2ec03cc2f9ab6899bef8f465.tar.bz2 |
Add loadCommit and loadStop Event.
loadCommit notifies that a load has committed with event properties "url" and "isTopLevel".
loadStop notifies that all loads in the tag (including all subframes) have completed, such that any progress indicator can complete, with no event properties.
BUG=154125, 153537
Review URL: https://chromiumcodereview.appspot.com/11035067
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162877 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/test/data')
-rw-r--r-- | content/test/data/browser_plugin_embedder.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/content/test/data/browser_plugin_embedder.html b/content/test/data/browser_plugin_embedder.html index 5702027..0f3d6a0 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> |