Bug 1415115 - forcing test window focus on dialog close. r=surkov

MozReview-Commit-ID: B71ChCA8Uzm
This commit is contained in:
Yura Zenevich 2017-11-07 11:30:06 -05:00
parent 79aa95fa24
commit f11712779f
2 changed files with 8 additions and 2 deletions

View File

@ -92,7 +92,10 @@
function closeDialogWnd() {
this.eventSeq = [ new invokerChecker(EVENT_FOCUS, getAccessible(document)) ];
this.invoke = () => gDialog.close();
this.invoke = () => {
gDialog.close()
window.focus();
};
this.finalCheck = () => {
ok(!isAccessibleInCache(gDialogDoc),

View File

@ -110,7 +110,10 @@
function closeWndShutdownDoc() {
this.eventSeq = [ new invokerChecker(EVENT_FOCUS, getAccessible(document)) ];
this.invoke = () => gDialog.close();
this.invoke = () => {
gDialog.close()
window.focus();
};
this.finalCheck = () => {
ok(!isAccessibleInCache(gDialogDoc),