browser.addTitleListener(new TitleListener() {
public void changed(TitleEvent e) {
new CMJ_updateTitle().asyncExec(browser, e.title);
}
});
browser.addStatusTextListener(new StatusTextListener() {
public void changed(StatusTextEvent e) {
final String oldStatus = (String)browser.getData("CMJ_updateStatus.status");
final String newStatus = e.text;
if(newStatus.startsWith(COMMAND_STATUS_PREFIX)) {
// XULRunner on Linux: "window" is not defined when synchronous... so we defer.