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:
Emilio Cobos Álvarez 2024-04-08 11:38:28 +00:00
parent 146a8f72ac
commit d2ae027d99

View file

@ -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,
});