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
authorAlexandre Poirot <poirot.alex@gmail.com>
Tue, 21 Oct 2014 08:57:02 -0700
changeset 211616 1af0f51fc2e150568c0216e0672f9bbbdbbb1977
parent 211615 851738ecbcc0795830e5e0d56528f614a6cc311c
child 211617 4c449dcda4534861538325bee2b78325bcd7efd3
child 211787 01bc61be7ad2479b89f1f2af4e891092d5c3137d
push id27683
push userkwierso@gmail.com
push dateWed, 22 Oct 2014 01:51:41 +0000
treeherdermozilla-central@4c449dcda453 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs
bugs1085628
milestone36.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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
browser/components/customizableui/test/browser_880164_customization_context_menus.js
--- a/browser/components/customizableui/test/browser_880164_customization_context_menus.js
+++ b/browser/components/customizableui/test/browser_880164_customization_context_menus.js
@@ -111,17 +111,17 @@ add_task(function() {
 // Right-click on the urlbar-container should
 // show a context menu with disabled options to move it.
 add_task(function() {
   let contextMenu = document.getElementById("toolbar-context-menu");
   let shownPromise = popupShown(contextMenu);
   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 = [
     [".customize-context-moveToPanel", false],
     [".customize-context-removeFromToolbar", false],
     ["---"]
   ];
   if (!isOSX) {