Closed Bug 821740 Opened 12 years ago Closed 11 years ago

Marionette should be able to generate native events

Categories

(Remote Protocol :: Marionette, defect)

defect
Not set
normal

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.
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
It looks like Bug 845849 is working on this problem
(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.
I believe we are sending native events now; can we close this?
Hm, not quite, we don't send native touch events. We'd need https://bugzilla.mozilla.org/show_bug.cgi?id=853622 to land
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
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.