mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 06:35:42 +00:00
Another fix for Bug 576393
This commit is contained in:
parent
bfad70eae1
commit
49c64b20f8
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user