mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-07 18:04:46 +00:00
Bug 1824224 - [marionette] Do not send open event for prompts which do not belong to current browser on Android. r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D186235
This commit is contained in:
parent
4e4272ae52
commit
b09db560e8
@ -232,6 +232,12 @@ modal.DialogObserver = class {
|
||||
const contentBrowser = lazy.TabManager.getBrowserForTab(tab);
|
||||
const window = lazy.TabManager.getWindowForTab(tab);
|
||||
|
||||
// Do not send the event if the curBrowser is specified,
|
||||
// and it's different from prompt browser.
|
||||
if (curBrowser && contentBrowser !== curBrowser.contentBrowser) {
|
||||
continue;
|
||||
}
|
||||
|
||||
this.callbacks.forEach(callback =>
|
||||
callback(
|
||||
modal.ACTION_OPENED,
|
||||
|
@ -1,16 +1,18 @@
|
||||
[execute_async.py]
|
||||
bug: [1789355, 1806999]
|
||||
[test_no_abort_by_user_prompt_in_other_tab[alert\]]
|
||||
bug: 1806999
|
||||
expected:
|
||||
if os == "android" or tsan: [PASS, FAIL]
|
||||
if tsan: [PASS, FAIL]
|
||||
PASS
|
||||
|
||||
[test_no_abort_by_user_prompt_in_other_tab[confirm\]]
|
||||
bug: 1806999
|
||||
expected:
|
||||
if os == "android" or tsan: [PASS, FAIL]
|
||||
if tsan: [PASS, FAIL]
|
||||
PASS
|
||||
|
||||
[test_no_abort_by_user_prompt_in_other_tab[prompt\]]
|
||||
bug: 1806999
|
||||
expected:
|
||||
if os == "android" or tsan: [PASS, FAIL]
|
||||
if tsan: [PASS, FAIL]
|
||||
PASS
|
||||
|
Loading…
Reference in New Issue
Block a user