Mozilla's 'locationchange' is similar to what we have for ChildBrowser, but
I don't see the equivalent in the Chrome example - I suppose it is
'loadstop'?

I suppose if we were to adopt either, it would go something like this:

var iab = window.open('http://apache.org', '_blank');
// Firefox
iab.addEventListener('locationchange', handleLocationChange);
// Chrome
iab.addEventListener('loadstop', handleLoadStop);

// Firefox
function handleLocationChange(e) {
     console.log('location changed to: ' + e.detail);
}
// Chrome
function handleLoadStop(e) {
     console.log('location changed to: ' + e.url);
}

On Wed, Nov 21, 2012 at 1:32 PM, Andrew Grieve <agri...@chromium.org> wrote:

>
> https://github.com/GoogleChrome/chrome-app-samples/blob/master/browser/browser.js

Reply via email to