Closed
Bug 821740
Opened 12 years ago
Closed 11 years ago
Marionette should be able to generate native events
Categories
(Remote Protocol :: Marionette, defect)
Remote Protocol
Marionette
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: jedp, Unassigned)
References
Details
When handling input, dom functions may test 'isHandlingUserInput' to see whether an event was triggered from chrome; if not, they may return early. Events generated by marionette do not pass as user input.
For example, this line of code will return when triggered via a marionette click():
http://hg.mozilla.org/mozilla-central/file/b11065872128/dom/identity/nsDOMIdentity.js#l118
(If I suppress the test for isHandlingUserInput in nsDOMIdentity, the code is executed successfully from marionette.)
In order to exercise code like this in tests, it will be necessary for marionette to provide a way to generate events that look like they were input by a user in chrome.
Comment 1•12 years ago
|
||
we should see about starting to use DOMWindowUtils to do this. My removal of the Selenium Atoms for typing was the first step towards this. The next step is to get stuff going neatly into the event queue
Reporter | ||
Comment 2•12 years ago
|
||
It looks like Bug 845849 is working on this problem
Comment 3•12 years ago
|
||
(In reply to Jed Parsons [:jparsons] from comment #2)
> It looks like Bug 845849 is working on this problem
No, that bug concerns the removal our dependency on synthetic_gestures.js. We'll replace it with calls to marionette's "single_tap" and other methods. That doesn't address implementations of the actual gestures, it's just to address the replacement of that library. Single_tap, and other marionette gestures, currently generate synthetic events, but that's why this bug is open so we can replace that.
Comment 4•12 years ago
|
||
I believe we are sending native events now; can we close this?
Comment 5•12 years ago
|
||
Hm, not quite, we don't send native touch events. We'd need https://bugzilla.mozilla.org/show_bug.cgi?id=853622 to land
Comment 6•11 years ago
|
||
for mouse and keyboard we send trusted events and touch needs bug 853622 so closing this one
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
Updated•2 years ago
|
Product: Testing → Remote Protocol
You need to log in
before you can comment on or make changes to this bug.
Description
•