Open Bug 1742153 Opened 3 years ago Updated 2 years ago

selectstart event does not fire for Select All command

Categories

(Core :: DOM: Selection, defect)

Firefox 94
defect

Tracking

()

People

(Reporter: govett, Unassigned)

References

(Blocks 1 open bug)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.1 Safari/605.1.15

Steps to reproduce:

  1. Load https://codepen.io/devongovett/pen/MWvxreN
  2. Focus the content editable element
  3. Press Ctrl/Cmd + A or use the Select All command in the Edit menu

Actual results:

The text is selected, and a selectstart event is not fired (nothing is logged in the console).

Expected results:

The selectstart event should be fired. Selection should be prevented due to the preventDefault in the selectstart event. This behavior is consistent on Chrome and Safari.

The Bugbug bot thinks this bug should belong to the 'Core::DOM: Selection' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → DOM: Selection
Product: Firefox → Core
Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
Blocks: 1788981
You need to log in before you can comment on or make changes to this bug.