Another fix for Bug 576393

This commit is contained in:
Raymond Lee 2010-07-03 15:03:56 +08:00
parent 047e6bcb2c
commit ca5975eebb
2 changed files with 8 additions and 4 deletions

View File

@ -888,8 +888,11 @@
// Don't switch the fast find or update the titlebar (bug 540248) - this tab switch is temporary
if (!this._previewMode) {
this._fastFind.setDocShell(this.mCurrentBrowser.docShell);
try {
this._fastFind.setDocShell(this.mCurrentBrowser.docShell);
} catch (e) {
Components.utils.reportError(e);
}
this.updateTitlebar();
}

View File

@ -439,8 +439,9 @@ window.TabItem.prototype = iQ.extend(new Item(), {
function onZoomDone(){
TabMirror.resumePainting();
// If it's not focused, the onFocus lsitener would handle it.
Page.tabOnFocus(tab);
if (!tab.isFocused()) {
if (tab.isFocused()) {
Page.tabOnFocus(tab);
} else {
tab.focus();
}