Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b4pre) Gecko/20090309 Shiretoko/3.1b4pre ID:20090309020654 and MozMill trunk Running the following test to open the properties window of an embedded link doesn't work because the right click isn't propagated correctly. Instead a left click is executed on this element. See the attached testcase.
Summary: controller.rightclick doesn't fire real even (context menu doesn't get opened) → controller.rightclick doesn't fire real event (context menu doesn't get opened)
Adam, this is a blocker, can you find some time to look at this.
This definitely blocks us from writing tests which use the context menu. Marking as blocker. Could this probably be fixed by the synthesizeMouse function which we could probably use to fix bug 487584?
Severity: normal → blocker
Priority: -- → P1
I couldn't make any headway with synthesizeMouse, I am wondering if this might lead us in the right direction. Anyone know how we can get the source of this? https://addons.mozilla.org/en-US/firefox/addon/1472 Looks like the only thing in that file is a jar.
ah yeah a jar is a zip too, this addon doesn't really help. Will keep searching.
Shawn or Ted, do you think that we better should use the same way as what we have in our Mochitest framework? See also bug 487584 which shows another problem we have in Mozmill when sending events.
Mochitest uses the code in EventUtils.js here: http://mxr.mozilla.org/mozilla-central/source/testing/mochitest/tests/SimpleTest/EventUtils.js#18
It's probably not a bad idea to do the same thing since what Mochitest does is what is supposed to happen when the user clicks it too (AFAIK).
Adam or Mikeal, would it be an option for you to transparently replace our events.js with the one from Mochitest?
The way we do event simulation is different than mochitest and the structure of the libraries are very different as well so you can't just drop their events library in like that.
Even using EventUtils which is now in our code base because I used it to fix the keypress meta issue on mac, I don't see any examples of using that to fire a right click. Am I missing something?
This test now appears to work, Committed revision 457.
Status: NEW → RESOLVED
Last Resolved: 9 years ago
Resolution: --- → FIXED
Yes, works fantastic! Thanks Adam. Verfied with r458.
Assignee: nobody → adam.christian
Status: RESOLVED → VERIFIED
Whiteboard: [mozmill-1.2] → [verified-mozmill-1.2]
You need to log in before you can comment on or make changes to this bug.