mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Another fix for Bug 576393
This commit is contained in:
parent
047e6bcb2c
commit
ca5975eebb
@ -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