Bug 1085628 - Fix browser_880164_customization_context_menus.js against smaller toolbars by synthesizing context menu event on first pixel instead of last one. r=Gijs

This commit is contained in:
Alexandre Poirot 2014-10-21 08:57:02 -07:00
Родитель 0120974121
Коммит c367a078a7
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -116,7 +116,7 @@ add_task(function() {
let urlBarContainer = document.getElementById("urlbar-container");
// Need to make sure not to click within an edit field.
let urlbarRect = urlBarContainer.getBoundingClientRect();
EventUtils.synthesizeMouse(urlBarContainer, 100, urlbarRect.height - 1, {type: "contextmenu", button: 2 });
EventUtils.synthesizeMouse(urlBarContainer, 100, 1, {type: "contextmenu", button: 2 });
yield shownPromise;
let expectedEntries = [