controller.rightclick doesn't fire real event (context menu doesn't get opened)

VERIFIED FIXED

Status

Testing Graveyard
Mozmill
P1
blocker
VERIFIED FIXED
9 years ago
2 years ago

People

(Reporter: whimboo, Assigned: Adam Christian)

Tracking

({testcase})

Trunk
testcase
Dependency tree / graph

Details

(Whiteboard: [verified-mozmill-1.2])

Attachments

(1 attachment)

(Reporter)

Description

9 years ago
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.
(Reporter)

Updated

9 years ago
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)
(Reporter)

Comment 1

9 years ago
Created attachment 366437 [details]
Context menu testcase
(Reporter)

Updated

9 years ago
Blocks: 485006
(Reporter)

Updated

9 years ago
Blocks: 485009
Adam, this is a blocker, can you find some time to look at this.
(Reporter)

Comment 3

9 years ago
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
Whiteboard: [mozmill-1.2]
(Assignee)

Comment 4

9 years ago
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.
(Assignee)

Comment 5

9 years ago
ah yeah a jar is a zip too, this addon doesn't really help. Will keep searching.
(Reporter)

Comment 6

9 years ago
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.
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).
(Reporter)

Comment 9

9 years ago
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.
(Assignee)

Comment 11

9 years ago
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?
(Assignee)

Comment 13

9 years ago
This test now appears to work, Committed revision 457.
Status: NEW → RESOLVED
Last Resolved: 9 years ago
Resolution: --- → FIXED
(Reporter)

Comment 14

9 years ago
Yes, works fantastic! Thanks Adam. Verfied with r458.
Assignee: nobody → adam.christian
Status: RESOLVED → VERIFIED
Whiteboard: [mozmill-1.2] → [verified-mozmill-1.2]
Product: Testing → Testing Graveyard
You need to log in before you can comment on or make changes to this bug.