DescriptionDon't fail the style assert in Element::rendererIsFocusable if the document is active.
This avoids crashing in call sites that happen during document setup and shutdown
of the document. An example of the former appears to be in the attached bug.
An example of the latter is easily reproducible: load a document with hyperlinks
in it, select some text via the text finding widget (ctrl-f), then click on the
hyperlink. The code to close the find box will call into Blink and check
if the elements are focusable. However, the elements no longer have renderers
since the document has been deactivated to prepare for navigation.
TBR=abarth@chromium.org
BUG=251163
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181497
Patch Set 1 #Patch Set 2 : Fix. #Patch Set 3 : Fix compile. #
Messages
Total messages: 15 (6 generated)
|