forked from mirrors/gecko-dev
Bug 1832748 - Make click consistently hit space between urlbar and nav bar. r=dao
It seems that 1px offset isn't consistently for our synthesized click to hit where it's supposed to. There's a 4px gap between urlbar and navbar so let's increase this a bit. Differential Revision: https://phabricator.services.mozilla.com/D206881
This commit is contained in:
parent
146a8f72ac
commit
d2ae027d99
1 changed files with 1 additions and 1 deletions
|
|
@ -172,7 +172,7 @@ add_task(async function urlbar_context() {
|
|||
let shownPromise = popupShown(contextMenu);
|
||||
let urlBarContainer = document.getElementById("urlbar-container");
|
||||
// Need to make sure not to click within an edit field.
|
||||
EventUtils.synthesizeMouse(urlBarContainer, 100, 1, {
|
||||
EventUtils.synthesizeMouse(urlBarContainer, 100, 2, {
|
||||
type: "contextmenu",
|
||||
button: 2,
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue