RESOLVED FIXED 231741
Selection changes on modal <dialog> text nodes do not work with the mouse
https://bugs.webkit.org/show_bug.cgi?id=231741
Summary Selection changes on modal <dialog> text nodes do not work with the mouse
Tim Nguyen (:ntim)
Reported 2021-10-14 07:38:36 PDT
I suspect there's a bug with how text selection on inert is implemented.
Attachments
Patch (23.66 KB, patch)
2021-10-18 02:36 PDT, Tim Nguyen (:ntim)
koivisto: review+
Patch (23.72 KB, patch)
2021-10-18 05:24 PDT, Tim Nguyen (:ntim)
no flags
Radar WebKit Bug Importer
Comment 1 2021-10-17 02:44:42 PDT
Tim Nguyen (:ntim)
Comment 2 2021-10-18 02:36:01 PDT
Antti Koivisto
Comment 3 2021-10-18 04:32:32 PDT
Comment on attachment 441575 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=441575&action=review > Source/WebCore/rendering/style/RenderStyle.h:613 > + UserSelect effectiveUserSelect() const { return effectiveInert() ? UserSelect::None : userSelect(); } It is confusing since "effectiveUserSelect" sounds like a property but this is just a helper. Perhaps bool allowsSelections() const; or similar. It would also be good to start moving helpers out of RenderStyle inline bool allowsSelections(const RenderStyle&) would be another option.
Antti Koivisto
Comment 4 2021-10-18 05:03:12 PDT
Comment on attachment 441575 [details] Patch r=me but please find a better name
Tim Nguyen (:ntim)
Comment 5 2021-10-18 05:24:40 PDT
Tim Nguyen (:ntim)
Comment 6 2021-10-18 05:26:51 PDT
Note You need to log in before you can comment on or make changes to this bug.