Summary: We currently require webpages to poll the current selection when they want to be notified of changes to the user's selection.This patch adds two events, selectstart and selectionchange, which allow the website to detect when the selection is changed. selectstart is fired when the user starts selecting, and selectionchange is fired when the selection
changes for any reason.

Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=571294

Link to standard:http://w3c.github.io/selection-api/#user-interactions

Platform coverage:All platforms.

Target release: Firefox 43.

Preference behind which this will be implemented: "dom.select_events.enabled"

DevTools bug: N/A

Do other browser engines implement this: IE, Chrome, and Safari all implement this API.

Security & Privacy Concerns: This API adds a new mechanism for canceling user selections, which
could be abused. However it was already possible.

Web designer / developer use-cases: This is a useful tool for websites which wish to be notified when the user's selection changes, as currently websites have to poll the selection in Firefox.

Michael
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to