зеркало из https://github.com/mozilla/pjs.git
Fixing a part of bug 262887 that the initial fix didn't fix. r=bugs4hj@netscape.net, sr=dveditz@cruzio.com, a=asa@mozilla.org
This commit is contained in:
Родитель
157b9be593
Коммит
c530dc5e37
|
@ -1657,8 +1657,10 @@
|
|||
// We're about to open a modal dialog, make sure the opening
|
||||
// tab is brought to the front.
|
||||
|
||||
var targetTop = new XPCNativeWrapper(event.target, "top").top;
|
||||
|
||||
for (var i = 0; i < browsers.length; ++i) {
|
||||
if (this.getBrowserAtIndex(i).contentWindow == event.target) {
|
||||
if (this.getBrowserAtIndex(i).contentWindow == targetTop) {
|
||||
this.mModalDialogShowing = true;
|
||||
this.selectedTab = this.mTabContainer.childNodes[i];
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче