mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-07 20:05:25 +00:00
Bug 1415115
- forcing test window focus on dialog close. r=surkov
MozReview-Commit-ID: B71ChCA8Uzm
This commit is contained in:
parent
79aa95fa24
commit
f11712779f
@ -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),
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user