Prune ComputeVisibleSelectionInDOMTreeDeprecated from InputMethodController [chromium/src : main]

39 views
Skip to first unread message

Siye Liu (Gerrit)

unread,
Apr 23, 2024, 12:28:44 AMApr 23
to Anupam Snigdha, Koji Ishii, Sanket Joshi, Chromium LUCI CQ, chromium...@chromium.org, blink-...@chromium.org
Attention needed from Anupam Snigdha

New activity on the change

Open in Gerrit

Related details

Attention is currently required from:
  • Anupam Snigdha
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I2ae411821ae41189061d5db0223e2e6e3c88a49c
Gerrit-Change-Number: 5472192
Gerrit-PatchSet: 3
Gerrit-Owner: Siye Liu <si...@microsoft.com>
Gerrit-Reviewer: Anupam Snigdha <sni...@microsoft.com>
Gerrit-Reviewer: Siye Liu <si...@microsoft.com>
Gerrit-CC: Koji Ishii <ko...@chromium.org>
Gerrit-CC: Sanket Joshi <sa...@microsoft.com>
Gerrit-Attention: Anupam Snigdha <sni...@microsoft.com>
Gerrit-Comment-Date: Tue, 23 Apr 2024 04:28:33 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Anupam Snigdha (Gerrit)

unread,
Apr 23, 2024, 6:05:30 PMApr 23
to Siye Liu, Koji Ishii, Sanket Joshi, Chromium LUCI CQ, chromium...@chromium.org, blink-...@chromium.org
Attention needed from Siye Liu

Anupam Snigdha added 2 comments

File third_party/blink/renderer/core/editing/ime/cached_text_input_info_test.cc
Line 44, Patchset 3 (Latest): GetDocument().UpdateStyleAndLayout(DocumentUpdateReason::kEditing);
Anupam Snigdha . unresolved

Since we are running layout before creation selection offsets in plain text range, should these (and others below) be `kSelection` instead of `kEditing`?

File third_party/blink/renderer/core/editing/ime/input_method_controller.cc
Line 1469, Patchset 3 (Latest): .ComputeVisibleSelectionInDOMTree()
Anupam Snigdha . unresolved

Since we have now removed the implicit layout and style updates, can we change the DCHECK TO CHECK in `SelectionEditor::UpdateCachedVisibleSelectionIfNeeded`?
If not, can we add `DCHECK_GE(GetDocument().Lifecycle().GetState(), DocumentLifecycle::kAfterPerformLayout);` before calling `ComputeVisibleSelectionInDOMTree` in this file?

Open in Gerrit

Related details

Attention is currently required from:
  • Siye Liu
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I2ae411821ae41189061d5db0223e2e6e3c88a49c
    Gerrit-Change-Number: 5472192
    Gerrit-PatchSet: 3
    Gerrit-Owner: Siye Liu <si...@microsoft.com>
    Gerrit-Reviewer: Anupam Snigdha <sni...@microsoft.com>
    Gerrit-Reviewer: Siye Liu <si...@microsoft.com>
    Gerrit-CC: Koji Ishii <ko...@chromium.org>
    Gerrit-CC: Sanket Joshi <sa...@microsoft.com>
    Gerrit-Attention: Siye Liu <si...@microsoft.com>
    Gerrit-Comment-Date: Tue, 23 Apr 2024 22:05:19 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Siye Liu (Gerrit)

    unread,
    Apr 23, 2024, 6:47:24 PMApr 23
    to Anupam Snigdha, Koji Ishii, Sanket Joshi, Chromium LUCI CQ, chromium...@chromium.org, blink-...@chromium.org
    Attention needed from Anupam Snigdha

    Siye Liu added 3 comments

    Patchset-level comments
    File-level comment, Patchset 4 (Latest):
    Siye Liu . resolved

    Thank you!

    File third_party/blink/renderer/core/editing/ime/cached_text_input_info_test.cc
    Line 44, Patchset 3: GetDocument().UpdateStyleAndLayout(DocumentUpdateReason::kEditing);
    Anupam Snigdha . resolved

    Since we are running layout before creation selection offsets in plain text range, should these (and others below) be `kSelection` instead of `kEditing`?

    Siye Liu

    There should be no behavior change in the tests. But I agree `kSelection` would be more appropriate. Updated in next iteration.

    File third_party/blink/renderer/core/editing/ime/input_method_controller.cc
    Line 1469, Patchset 3: .ComputeVisibleSelectionInDOMTree()
    Anupam Snigdha . resolved

    Since we have now removed the implicit layout and style updates, can we change the DCHECK TO CHECK in `SelectionEditor::UpdateCachedVisibleSelectionIfNeeded`?
    If not, can we add `DCHECK_GE(GetDocument().Lifecycle().GetState(), DocumentLifecycle::kAfterPerformLayout);` before calling `ComputeVisibleSelectionInDOMTree` in this file?

    Siye Liu

    We already have a DCHECK in `SelectionEditor::UpdateCachedVisibleSelectionIfNeeded' if the layout is not clean when creating visible selection. I think we should be good here.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Anupam Snigdha
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Review
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I2ae411821ae41189061d5db0223e2e6e3c88a49c
    Gerrit-Change-Number: 5472192
    Gerrit-PatchSet: 4
    Gerrit-Owner: Siye Liu <si...@microsoft.com>
    Gerrit-Reviewer: Anupam Snigdha <sni...@microsoft.com>
    Gerrit-Reviewer: Siye Liu <si...@microsoft.com>
    Gerrit-CC: Koji Ishii <ko...@chromium.org>
    Gerrit-CC: Sanket Joshi <sa...@microsoft.com>
    Gerrit-Attention: Anupam Snigdha <sni...@microsoft.com>
    Gerrit-Comment-Date: Tue, 23 Apr 2024 22:47:14 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Anupam Snigdha <sni...@microsoft.com>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Anupam Snigdha (Gerrit)

    unread,
    Apr 23, 2024, 7:44:53 PMApr 23
    to Siye Liu, Koji Ishii, Sanket Joshi, Chromium LUCI CQ, chromium...@chromium.org, blink-...@chromium.org
    Attention needed from Siye Liu

    Anupam Snigdha added 1 comment

    File third_party/blink/renderer/core/editing/ime/cached_text_input_info_test.cc
    Line 38, Patchset 4 (Latest): GetDocument().UpdateStyleAndLayout(DocumentUpdateReason::kSelection);
    Anupam Snigdha . unresolved

    It looks like in the test we have to invoke layout update before we call `GetSelectionOffsets`, can we add the layout update inside `GetSelectionOffsets` instead? I wonder if these tests crash because of the DCHECK if you omit these layout updates? This is also why I think we should change the DCHECK to CHECK so we can catch all regressions in production where DCHECK is disabled. Thoughts?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Siye Liu
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I2ae411821ae41189061d5db0223e2e6e3c88a49c
      Gerrit-Change-Number: 5472192
      Gerrit-PatchSet: 4
      Gerrit-Owner: Siye Liu <si...@microsoft.com>
      Gerrit-Reviewer: Anupam Snigdha <sni...@microsoft.com>
      Gerrit-Reviewer: Siye Liu <si...@microsoft.com>
      Gerrit-CC: Koji Ishii <ko...@chromium.org>
      Gerrit-CC: Sanket Joshi <sa...@microsoft.com>
      Gerrit-Attention: Siye Liu <si...@microsoft.com>
      Gerrit-Comment-Date: Tue, 23 Apr 2024 23:44:44 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Siye Liu (Gerrit)

      unread,
      Apr 23, 2024, 8:30:39 PMApr 23
      to Anupam Snigdha, Koji Ishii, Sanket Joshi, Chromium LUCI CQ, chromium...@chromium.org, blink-...@chromium.org
      Attention needed from Anupam Snigdha

      Siye Liu added 1 comment

      File third_party/blink/renderer/core/editing/ime/cached_text_input_info_test.cc
      Line 38, Patchset 4 (Latest): GetDocument().UpdateStyleAndLayout(DocumentUpdateReason::kSelection);
      Anupam Snigdha . resolved

      It looks like in the test we have to invoke layout update before we call `GetSelectionOffsets`, can we add the layout update inside `GetSelectionOffsets` instead? I wonder if these tests crash because of the DCHECK if you omit these layout updates? This is also why I think we should change the DCHECK to CHECK so we can catch all regressions in production where DCHECK is disabled. Thoughts?

      Siye Liu

      This is expected because the whole point of this change is to hoist layout update to the caller when invoking `ComputeVisibleSelectionInDOMTree` to reduce unnecessary layout updates.

      I verified that all the callers of `GetSelectionOffsets` already have clean layout so there is no behavior difference after this patch. This also matches the point to reduce unnecessary layout updates.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Anupam Snigdha
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Review
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I2ae411821ae41189061d5db0223e2e6e3c88a49c
      Gerrit-Change-Number: 5472192
      Gerrit-PatchSet: 4
      Gerrit-Owner: Siye Liu <si...@microsoft.com>
      Gerrit-Reviewer: Anupam Snigdha <sni...@microsoft.com>
      Gerrit-Reviewer: Siye Liu <si...@microsoft.com>
      Gerrit-CC: Koji Ishii <ko...@chromium.org>
      Gerrit-CC: Sanket Joshi <sa...@microsoft.com>
      Gerrit-Attention: Anupam Snigdha <sni...@microsoft.com>
      Gerrit-Comment-Date: Wed, 24 Apr 2024 00:30:30 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Anupam Snigdha <sni...@microsoft.com>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Anupam Snigdha (Gerrit)

      unread,
      Apr 23, 2024, 8:54:21 PMApr 23
      to Siye Liu, Koji Ishii, Sanket Joshi, Chromium LUCI CQ, chromium...@chromium.org, blink-...@chromium.org
      Attention needed from Siye Liu

      Anupam Snigdha added 2 comments

      File third_party/blink/renderer/core/editing/ime/input_method_controller.cc
      Line 524, Patchset 4 (Latest): DCHECK(!GetDocument().NeedsLayoutTreeUpdate());
      Anupam Snigdha . unresolved

      Since we're changing DCHECK to CHECK in `SelectionEditor::UpdateCachedVisibleSelectionIfNeeded`, can we remove this DCHECK here?

      Line 1640, Patchset 4 (Latest): GetDocument().UpdateStyleAndLayout(DocumentUpdateReason::kEditing);
      Anupam Snigdha . unresolved

      There are couple of callers of `TextInputInfo` - `WidgetBase::UpdateTextInputStateInternal` & `DidHandleGestureEvent`. `UpdateTextInputStateInternal` should have a clean layout right? Did you have to add the layout update because of `DidHandleGestureEvent`?

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Siye Liu
      Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement is not satisfiedCode-Review
        • requirement is not satisfiedNo-Unresolved-Comments
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I2ae411821ae41189061d5db0223e2e6e3c88a49c
        Gerrit-Change-Number: 5472192
        Gerrit-PatchSet: 4
        Gerrit-Owner: Siye Liu <si...@microsoft.com>
        Gerrit-Reviewer: Anupam Snigdha <sni...@microsoft.com>
        Gerrit-Reviewer: Siye Liu <si...@microsoft.com>
        Gerrit-CC: Koji Ishii <ko...@chromium.org>
        Gerrit-CC: Sanket Joshi <sa...@microsoft.com>
        Gerrit-Attention: Siye Liu <si...@microsoft.com>
        Gerrit-Comment-Date: Wed, 24 Apr 2024 00:54:11 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Siye Liu (Gerrit)

        unread,
        Apr 23, 2024, 9:12:19 PMApr 23
        to Anupam Snigdha, Koji Ishii, Sanket Joshi, Chromium LUCI CQ, chromium...@chromium.org, blink-...@chromium.org
        Attention needed from Anupam Snigdha

        Siye Liu added 2 comments

        File third_party/blink/renderer/core/editing/ime/input_method_controller.cc
        Line 524, Patchset 4: DCHECK(!GetDocument().NeedsLayoutTreeUpdate());
        Anupam Snigdha . resolved

        Since we're changing DCHECK to CHECK in `SelectionEditor::UpdateCachedVisibleSelectionIfNeeded`, can we remove this DCHECK here?

        Siye Liu

        Acknowledged

        Line 1640, Patchset 4: GetDocument().UpdateStyleAndLayout(DocumentUpdateReason::kEditing);
        Anupam Snigdha . resolved

        There are couple of callers of `TextInputInfo` - `WidgetBase::UpdateTextInputStateInternal` & `DidHandleGestureEvent`. `UpdateTextInputStateInternal` should have a clean layout right? Did you have to add the layout update because of `DidHandleGestureEvent`?

        Siye Liu

        It's not guaranteed that `UpdateTextInputStateInternal` has clean layout. So it's safer to update layout here. Besides, the comment also mentioned that we should update layout here, although the usage needs to be audited.

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Anupam Snigdha
        Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement is not satisfiedCode-Review
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I2ae411821ae41189061d5db0223e2e6e3c88a49c
        Gerrit-Change-Number: 5472192
        Gerrit-PatchSet: 5
        Gerrit-Owner: Siye Liu <si...@microsoft.com>
        Gerrit-Reviewer: Anupam Snigdha <sni...@microsoft.com>
        Gerrit-Reviewer: Siye Liu <si...@microsoft.com>
        Gerrit-CC: Koji Ishii <ko...@chromium.org>
        Gerrit-CC: Sanket Joshi <sa...@microsoft.com>
        Gerrit-Attention: Anupam Snigdha <sni...@microsoft.com>
        Gerrit-Comment-Date: Wed, 24 Apr 2024 01:12:10 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Comment-In-Reply-To: Anupam Snigdha <sni...@microsoft.com>
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Anupam Snigdha (Gerrit)

        unread,
        Apr 23, 2024, 9:14:49 PMApr 23
        to Siye Liu, Koji Ishii, Sanket Joshi, Chromium LUCI CQ, chromium...@chromium.org, blink-...@chromium.org
        Attention needed from Siye Liu

        Anupam Snigdha voted and added 1 comment

        Votes added by Anupam Snigdha

        Code-Review+1

        1 comment

        Patchset-level comments
        File-level comment, Patchset 5 (Latest):
        Anupam Snigdha . resolved

        Thanks! LGTM

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Siye Liu
        Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement satisfiedCode-Review
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I2ae411821ae41189061d5db0223e2e6e3c88a49c
        Gerrit-Change-Number: 5472192
        Gerrit-PatchSet: 5
        Gerrit-Owner: Siye Liu <si...@microsoft.com>
        Gerrit-Reviewer: Anupam Snigdha <sni...@microsoft.com>
        Gerrit-Reviewer: Siye Liu <si...@microsoft.com>
        Gerrit-CC: Koji Ishii <ko...@chromium.org>
        Gerrit-CC: Sanket Joshi <sa...@microsoft.com>
        Gerrit-Attention: Siye Liu <si...@microsoft.com>
        Gerrit-Comment-Date: Wed, 24 Apr 2024 01:14:39 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        open
        diffy

        Koji Ishii (Gerrit)

        unread,
        Apr 24, 2024, 2:51:22 AMApr 24
        to Siye Liu, Anupam Snigdha, Sanket Joshi, Chromium LUCI CQ, chromium...@chromium.org, blink-...@chromium.org
        Attention needed from Siye Liu

        Koji Ishii voted and added 1 comment

        Votes added by Koji Ishii

        Code-Review+1

        1 comment

        Patchset-level comments
        Koji Ishii . resolved

        lgtm

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Siye Liu
        Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement satisfiedCode-Review
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I2ae411821ae41189061d5db0223e2e6e3c88a49c
        Gerrit-Change-Number: 5472192
        Gerrit-PatchSet: 5
        Gerrit-Owner: Siye Liu <si...@microsoft.com>
        Gerrit-Reviewer: Anupam Snigdha <sni...@microsoft.com>
        Gerrit-Reviewer: Koji Ishii <ko...@chromium.org>
        Gerrit-Reviewer: Siye Liu <si...@microsoft.com>
        Gerrit-CC: Sanket Joshi <sa...@microsoft.com>
        Gerrit-Attention: Siye Liu <si...@microsoft.com>
        Gerrit-Comment-Date: Wed, 24 Apr 2024 06:51:10 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        open
        diffy

        Siye Liu (Gerrit)

        unread,
        Apr 24, 2024, 11:34:02 AMApr 24
        to Koji Ishii, Anupam Snigdha, Sanket Joshi, Chromium LUCI CQ, chromium...@chromium.org, blink-...@chromium.org

        Siye Liu voted Commit-Queue+2

        Commit-Queue+2
        Open in Gerrit

        Related details

        Attention set is empty
        Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement satisfiedCode-Review
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I2ae411821ae41189061d5db0223e2e6e3c88a49c
        Gerrit-Change-Number: 5472192
        Gerrit-PatchSet: 5
        Gerrit-Owner: Siye Liu <si...@microsoft.com>
        Gerrit-Reviewer: Anupam Snigdha <sni...@microsoft.com>
        Gerrit-Reviewer: Koji Ishii <ko...@chromium.org>
        Gerrit-Reviewer: Siye Liu <si...@microsoft.com>
        Gerrit-CC: Sanket Joshi <sa...@microsoft.com>
        Gerrit-Comment-Date: Wed, 24 Apr 2024 15:33:52 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        open
        diffy

        Chromium LUCI CQ (Gerrit)

        unread,
        Apr 24, 2024, 11:48:39 AMApr 24
        to Siye Liu, Koji Ishii, Anupam Snigdha, Sanket Joshi, chromium...@chromium.org, blink-...@chromium.org

        Chromium LUCI CQ submitted the change

        Change information

        Commit message:
        Prune ComputeVisibleSelectionInDOMTreeDeprecated from InputMethodController

        This patch prunes several sites of the deprecated function by:
        - hoisting layout update out from it:
        - InputMethodController::CancelComposition.
        - InputMethodController::TextInputInfo.

        - layout already clean:
        - InputMethodController::ClearImeTextSpansByType.
        - InputMethodController::FinishComposingText.
        - InputMethodController::ReplaceComposition.
        - InputMethodController::ReplaceCompositionAndMoveCaret.
        - InputMethodController::InsertTextAndMoveCaret.
        - InputMethodController::SetComposition.
        - InputMethodController::SetCompositionFromExistingText.
        - InputMethodController::AddImeTextSpansToExistingText.
        - InputMethodController::GetSelectionOffsets.
        - InputMethodController::EphemeralRangeForOffsets.
        - InputMethodController::CreateRangeForSelection.
        - InputMethodController::ExtendSelectionAndDelete.
        - InputMethodController::DeleteSurroundingText.
        - InputMethodController::GetImeTextSpans.
        Bug: 40509385
        Change-Id: I2ae411821ae41189061d5db0223e2e6e3c88a49c
        Commit-Queue: Siye Liu <si...@microsoft.com>
        Reviewed-by: Koji Ishii <ko...@chromium.org>
        Reviewed-by: Anupam Snigdha <sni...@microsoft.com>
        Cr-Commit-Position: refs/heads/main@{#1291892}
        Files:
        • M third_party/blink/renderer/core/editing/ime/cached_text_input_info_test.cc
        • M third_party/blink/renderer/core/editing/ime/input_method_controller.cc
        • M third_party/blink/renderer/core/editing/selection_editor.cc
        Change size: M
        Delta: 3 files changed, 60 insertions(+), 66 deletions(-)
        Branch: refs/heads/main
        Submit Requirements:
        • requirement satisfiedCode-Review: +1 by Koji Ishii, +1 by Anupam Snigdha
        Open in Gerrit
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: merged
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I2ae411821ae41189061d5db0223e2e6e3c88a49c
        Gerrit-Change-Number: 5472192
        Gerrit-PatchSet: 6
        Gerrit-Owner: Siye Liu <si...@microsoft.com>
        Gerrit-Reviewer: Anupam Snigdha <sni...@microsoft.com>
        Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
        Gerrit-Reviewer: Koji Ishii <ko...@chromium.org>
        Gerrit-Reviewer: Siye Liu <si...@microsoft.com>
        open
        diffy
        satisfied_requirement

        Andrew Grieve (Gerrit)

        unread,
        Apr 25, 2024, 4:10:04 PMApr 25
        to Chromium LUCI CQ, Siye Liu, Andrew Grieve, Koji Ishii, Anupam Snigdha, Sanket Joshi, chromium...@chromium.org, blink-...@chromium.org

        Andrew Grieve added 1 comment

        Patchset-level comments
        File-level comment, Patchset 6 (Latest):
        Andrew Grieve . resolved

        FYI - This might be related to a new crash bug crbug.com/336992377

        With stack:
        ```
        0x8a3e0db4 (libmonochrome.so - immediate_crash.h: 176) base::ImmediateCrash()
        0x8a3e0db4 (libmonochrome.so - check.h: 211) logging::CheckFailure()
        0x8a3e0db4 (libmonochrome.so - selection_editor.cc: 418) blink::SelectionEditor::UpdateCachedVisibleSelectionIfNeeded() const
        0x88c5d56f (libmonochrome.so - selection_editor.cc: 79) blink::SelectionEditor::ComputeVisibleSelectionInDOMTree() const
        0x88c5d4f3 (libmonochrome.so - frame_selection.cc: 135) blink::FrameSelection::ComputeVisibleSelectionInDOMTree() const
        0x8a3d27e1 (libmonochrome.so - input_method_controller.cc: 1253) blink::InputMethodController::EphemeralRangeForOffsets(blink::PlainTextRange const&) const
        0x8a3d332d (libmonochrome.so - input_method_controller.cc: 1269) blink::InputMethodController::SetSelectionOffsets(blink::PlainTextRange const&, blink::InputMethodController::TypingContinuation)
        0x8a3d357f (libmonochrome.so - input_method_controller.cc: 1263) blink::InputMethodController::SetSelectionOffsets(blink::PlainTextRange const&)
        0x8a3d357f (libmonochrome.so - input_method_controller.cc: 1504) blink::InputMethodController::DeleteSurroundingText(int, int)
        0x8a422b85 (libmonochrome.so - web_local_frame_impl.cc: 1777) blink::WebLocalFrameImpl::DeleteSurroundingText(int, int)
        0x8a64cf1b (libmonochrome.so - frame_widget_input_handler_impl.cc: 131) blink::FrameWidgetInputHandlerImpl::DeleteSurroundingText(int, int)::$_0::operator()(base::WeakPtr<blink::mojom::blink::FrameWidgetInputHandler>, int, int) const
        0x8a64cf1b (libmonochrome.so - bind_internal.h: 656) void base::internal::DecayedFunctorTraits<blink::FrameWidgetInputHandlerImpl::DeleteSurroundingText(int, int)::$_0, base::WeakPtr<blink::mojom::blink::FrameWidgetInputHandler>&&, int&&, int&&>::Invoke<blink::FrameWidgetInputHandlerImpl::DeleteSurroundingText(int, int)::$_0, base::WeakPtr<blink::mojom::blink::FrameWidgetInputHandler>, int, int>(blink::FrameWidgetInputHandlerImpl::DeleteSurroundingText(int, int)::$_0&&, base::WeakPtr<blink::mojom::blink::FrameWidgetInputHandler>&&, int&&, int&&)
        0x8a64cf1b (libmonochrome.so - bind_internal.h: 930) void base::internal::InvokeHelper<false, base::internal::FunctorTraits<blink::FrameWidgetInputHandlerImpl::DeleteSurroundingText(int, int)::$_0&&, base::WeakPtr<blink::mojom::blink::FrameWidgetInputHandler>&&, int&&, int&&>, void, 0u, 1u, 2u>::MakeItSo<blink::FrameWidgetInputHandlerImpl::DeleteSurroundingText(int, int)::$_0, std::__Cr::tuple<base::WeakPtr<blink::mojom::blink::FrameWidgetInputHandler>, int, int>>(blink::FrameWidgetInputHandlerImpl::DeleteSurroundingText(int, int)::$_0&&, std::__Cr::tuple<base::WeakPtr<blink::mojom::blink::FrameWidgetInputHandler>, int, int>&&)
        0x8a64cf1b (libmonochrome.so - bind_internal.h: 1067) void base::internal::Invoker<base::internal::FunctorTraits<blink::FrameWidgetInputHandlerImpl::DeleteSurroundingText(int, int)::$_0&&, base::WeakPtr<blink::mojom::blink::FrameWidgetInputHandler>&&, int&&, int&&>, base::internal::BindState<false, false, false, blink::FrameWidgetInputHandlerImpl::DeleteSurroundingText(int, int)::$_0, base::WeakPtr<blink::mojom::blink::FrameWidgetInputHandler>, int, int>, void ()>::RunImpl<blink::FrameWidgetInputHandlerImpl::DeleteSurroundingText(int, int)::$_0, std::__Cr::tuple<base::WeakPtr<blink::mojom::blink::FrameWidgetInputHandler>, int, int>, 0u, 1u, 2u>(blink::FrameWidgetInputHandlerImpl::DeleteSurroundingText(int, int)::$_0&&, std::__Cr::tuple<base::WeakPtr<blink::mojom::blink::FrameWidgetInputHandler>, int, int>&&, std::__Cr::integer_sequence<unsigned int, 0u, 1u, 2u>)
        0x8a64cf1b (libmonochrome.so - bind_internal.h: 980) base::internal::Invoker<base::internal::FunctorTraits<blink::FrameWidgetInputHandlerImpl::DeleteSurroundingText(int, int)::$_0&&, base::WeakPtr<blink::mojom::blink::FrameWidgetInputHandler>&&, int&&, int&&>, base::internal::BindState<false, false, false, blink::FrameWidgetInputHandlerImpl::DeleteSurroundingText(int, int)::$_0, base::WeakPtr<blink::mojom::blink::FrameWidgetInputHandler>, int, int>, void ()>::RunOnce(base::internal::BindStateBase*)
        0x8850dbd5 (libmonochrome.so - callback.h: 156) base::OnceCallback<void ()>::Run() &&
        0x88928a45 (libmonochrome.so - main_thread_event_queue.cc: 510) blink::MainThreadEventQueue::DispatchEvents()
        ```

        Open in Gerrit

        Related details

        Attention set is empty
        Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement satisfiedCode-Review
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I2ae411821ae41189061d5db0223e2e6e3c88a49c
        Gerrit-Change-Number: 5472192
        Gerrit-PatchSet: 6
        Gerrit-Owner: Siye Liu <si...@microsoft.com>
        Gerrit-Reviewer: Anupam Snigdha <sni...@microsoft.com>
        Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
        Gerrit-Reviewer: Koji Ishii <ko...@chromium.org>
        Gerrit-Reviewer: Siye Liu <si...@microsoft.com>
        Gerrit-CC: Andrew Grieve <agr...@chromium.org>
        Gerrit-CC: Sanket Joshi <sa...@microsoft.com>
        Gerrit-Comment-Date: Thu, 25 Apr 2024 20:09:38 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        satisfied_requirement
        open
        diffy
        Reply all
        Reply to author
        Forward
        0 new messages