зеркало из https://github.com/mozilla/gecko-dev.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:
Родитель
693540eccc
Коммит
e82d61af3f
|
@ -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];
|
||||
|
||||
|
|
|
@ -1574,9 +1574,11 @@
|
|||
// 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;
|
||||
|
||||
const browsers = this.browsers;
|
||||
for (var i = 0; i < browsers.length; ++i) {
|
||||
if (browsers[i].contentWindow == event.target) {
|
||||
if (browsers[i].contentWindow == targetTop) {
|
||||
this.selectedTab = this.mTabContainer.childNodes[i];
|
||||
|
||||
break;
|
||||
|
|
Загрузка…
Ссылка в новой задаче