New issue
Advanced search Search tips

Issue 846527 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocking:
issue 725457
issue 845849



Sign in to add a comment

Inconsistent results between FrameSelection::ComputeVisibleSelectionInDOMTree and ComputeVisibleSelectionInFlatTree

Project Member Reported by xiaoche...@chromium.org, May 25 2018

Issue description

The two functions normally should give consistent results: either both null, or both non-null.

For effeciency, the two functions also cache results in SelectionEditor; furthermore, if one of them gets null, it also changes the other's cached result to null.

However, we found some cases where the two functions return inconsistent result. This leads to some surprising execution, for example:

VisibleSelection vs = ComputeVisibleSelectionInDOMTree(); // non-null
... ComputeVisibleSelectionInFlatTree() ... // null
VisibleSelection vs2 = ComputeVisibleSelectionInDOMTree(); // null
// assumes |vs == vs2| and run into trouble
 
Blocking: 725457 845849
Some known cases where the inconsistency happens...

Sign in to add a comment