Closed Bug 1439288 Opened 6 years ago Closed 6 years ago

remove unused synthesizeText and synthesizeCompositionEvent functions in event.js

Categories

(Remote Protocol :: Marionette, enhancement)

Version 3
enhancement
Not set
normal

Tracking

(firefox60 fixed)

RESOLVED FIXED
mozilla60
Tracking Status
firefox60 --- fixed

People

(Reporter: heycam, Assigned: heycam)

Details

Attachments

(2 files)

The synthesizeText function in event.js doesn't seem to be used, and it currently tries to call the non-existent nsIDOMWindowUtils.sendTextEvent function, which was removed/reworked in bug 911951.  I guess we can just remove it?

(It would be nice if we had less duplication between testing/marionette/event.js and testing/mochitest/tests/SimpleTest/EventUtils.js.)
Assignee: nobody → cam
Status: NEW → ASSIGNED
synthesizeCompositionEvent is in the same boat -- it calls nsIDOMWindowUtils.sendCompositionEvent which no longer exists.  I'm less certain this is unused but probably it is.
Summary: remove unused synthesizeText function in event.js → remove unused synthesizeText and synthesizeCompositionEvent functions in event.js
Comment on attachment 8952048 [details]
Bug 1439288 - Remove unused synthesizeText function.

https://reviewboard.mozilla.org/r/221272/#review227150

> I guess we can just remove it?

Yes (-:
Attachment #8952048 - Flags: review?(ato) → review+
Comment on attachment 8952050 [details]
Bug 1439288 - Remove synthesizeCompositionEvent.

https://reviewboard.mozilla.org/r/221274/#review227152
Attachment #8952050 - Flags: review?(ato) → review+
Pushed by cam@mcc.id.au:
https://hg.mozilla.org/integration/autoland/rev/d0406024a77b
Remove unused synthesizeText function. r=ato
https://hg.mozilla.org/integration/autoland/rev/1274d9304cec
Remove synthesizeCompositionEvent. r=ato
https://hg.mozilla.org/mozilla-central/rev/d0406024a77b
https://hg.mozilla.org/mozilla-central/rev/1274d9304cec
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: