Bug 229728

Summary: Add more inert checks for selection-related functionality
Product: WebKit Reporter: Tim Nguyen (:ntim) <ntim>
Component: DOMAssignee: Tim Nguyen (:ntim) <ntim>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, changseok, esprehn+autocc, ews-watchlist, glenn, kangil.han, koivisto, kondapallykalyan, pdr, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 84635, 165279    
Attachments:
Description Flags
Patch
none
Patch
ews-feeder: commit-queue-
Patch
none
Patch
none
Patch none

Attachments
Patch (4.49 KB, patch)
2021-09-01 05:26 PDT, Tim Nguyen (:ntim)
no flags
Patch (6.15 KB, patch)
2021-09-01 05:36 PDT, Tim Nguyen (:ntim)
ews-feeder: commit-queue-
Patch (6.69 KB, patch)
2021-09-01 05:48 PDT, Tim Nguyen (:ntim)
no flags
Patch (8.29 KB, patch)
2021-09-01 09:18 PDT, Tim Nguyen (:ntim)
no flags
Patch (14.54 KB, patch)
2021-09-02 08:56 PDT, Tim Nguyen (:ntim)
no flags
Tim Nguyen (:ntim)
Comment 1 2021-09-01 05:26:37 PDT
Tim Nguyen (:ntim)
Comment 2 2021-09-01 05:36:54 PDT
Tim Nguyen (:ntim)
Comment 3 2021-09-01 05:48:51 PDT
Tim Nguyen (:ntim)
Comment 4 2021-09-01 09:18:37 PDT
Antti Koivisto
Comment 5 2021-09-02 07:59:03 PDT
Comment on attachment 437036 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=437036&action=review > Source/WebCore/dom/Position.cpp:945 > bool Position::nodeIsUserSelectNone(Node* node) > { > - return node && node->renderer() && node->renderer()->style().userSelect() == UserSelect::None; > + if (!node) > + return false; > + if (node->isInert()) > + return true; > + return node->renderer() && node->renderer()->style().userSelect() == UserSelect::None; > } The name of the function no longer matches what it does ("nodeIsInertOrUserSelectNone"). How about renaming it to something more accurate?
Tim Nguyen (:ntim)
Comment 6 2021-09-02 08:56:12 PDT
EWS
Comment 7 2021-09-02 09:39:55 PDT
Committed r281930 (241239@main): <https://commits.webkit.org/241239@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 437156 [details].
Radar WebKit Bug Importer
Comment 8 2021-09-02 09:40:47 PDT
Note You need to log in before you can comment on or make changes to this bug.