Closed Bug 1623837 Opened 5 years ago Closed 5 years ago

Copying from a disabled input in a subframe doesn't work reliably.

Categories

(Core :: DOM: Editor, defect, P3)

defect

Tracking

()

RESOLVED FIXED

People

(Reporter: emilio, Assigned: emilio)

References

Details

Attachments

(2 files)

Copying from the disabled inputs in https://jsfiddle.net/d_toybox/9pykn7x0/4/ sometimes unreliably copies the code selected in one of the other windows like the editor ones.

Flags: needinfo?(emilio)
Priority: -- → P3

This fixes the case where you have a focused input (or selection for <input
disabled>) in an <iframe> and move the focus outside of the iframe.

Otherwise the user can select, but if you're in an iframe the iframe won't be
correctly focused.

This also matches other browsers, see:

data:text/html,<input autofocus><input disabled value=abc>

Depends on D67596

Flags: needinfo?(emilio)
Keywords: leave-open
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4506e5724c40 Use the last focused selection in nsDocViewerFocusListener. r=masayuki
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9f779fe80cca Don't prevent focus switching for disabled form controls. r=masayuki,NeilDeakin
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Regressions: 1832275
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: