mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 857427 - Wait for focus before initiating a right click on the test page
--HG-- extra : rebase_source : 7f55838ed7cf08fdd2350886d852c7a507e8f5f5
This commit is contained in:
parent
52139bdf6d
commit
3853772bbf
@ -29,7 +29,7 @@ function triggerSave(aWindow, aCallback) {
|
|||||||
info("found our page!");
|
info("found our page!");
|
||||||
testBrowser.removeEventListener("pageshow", pageShown, false);
|
testBrowser.removeEventListener("pageshow", pageShown, false);
|
||||||
|
|
||||||
executeSoon(function () {
|
waitForFocus(function () {
|
||||||
info("register to handle popupshown");
|
info("register to handle popupshown");
|
||||||
aWindow.document.addEventListener("popupshown", function(e) contextMenuOpened(aWindow, e), false);
|
aWindow.document.addEventListener("popupshown", function(e) contextMenuOpened(aWindow, e), false);
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ function triggerSave(aWindow, aCallback) {
|
|||||||
{ type: "contextmenu", button: 2 },
|
{ type: "contextmenu", button: 2 },
|
||||||
testBrowser.contentWindow);
|
testBrowser.contentWindow);
|
||||||
info("right clicked!");
|
info("right clicked!");
|
||||||
});
|
}, testBrowser.contentWindow);
|
||||||
}, false);
|
}, false);
|
||||||
|
|
||||||
function contextMenuOpened(aWindow, event) {
|
function contextMenuOpened(aWindow, event) {
|
||||||
|
Loading…
Reference in New Issue
Block a user