Starting to drag plain text from a recipient input field causes console error.
STR
1) compose, type `hello` into `To` field (then realize that you wanted to type that into subject)
2) select and drag `hello` into subject
Actual
- console error (89.0a1 (2021-04-12) (64-bit))
```
Uncaught TypeError: event.originalTarget.closest is not a function
connectedCallback chrome://messenger/content/mailWidgets.js:2268
mailWidgets.js:2268:47
```
Expected
- no console error
Analysis
- `closest()` is only available for Element nodes, but originalTarget of selected input text is a text node (hence the error)
- `originalTarget` should go away per bug 1699809
- For our scenario, `target` when dragging selected plain text will be <html:input> (also when editing pill); need to adjust selector accordingly.
Bug 1705038 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Starting to drag plain text from a recipient input field causes console error.
STR
1) compose, type `hello` into `To` field (then realize that you wanted to type that into subject)
2) select and drag `hello` into subject
Actual
- console error (89.0a1 (2021-04-12) (64-bit))
```
Uncaught TypeError: event.originalTarget.closest is not a function
connectedCallback chrome://messenger/content/mailWidgets.js:2268
mailWidgets.js:2268:47
```
Expected
- no console error
Analysis
- `closest()` is only available for Element nodes, but `originalTarget` of selected input text is a text node (hence the error)
- `originalTarget` should go away per bug 1699809
- For our scenario, `target` when dragging selected plain text will be <html:input> (also when editing pill); need to adjust selector accordingly.