DescriptionReland "Clear highlight when the highlighted node gets removed from the document"
Some web pages use a mask element to intercept tap gesture and then hide
the element immediately. The orphaned highlight can be very annoying.
For example, pages that show a popup often use a full screen transparent
element to intercept events, and will hide the popup if the user attempt
to tap on the main document. If we don't remove highlight from the hidden
element, the whole screen will be covered by a highlight.
This patch clears highlight from a layer when the tap node is no longer valid.
TEST=webkit_unit_tests:LinkHighlightTest.resetDuringNodeRemoval
BUG=232926
R=jamesr@chromium.org
Originally reviewed in https://chromiumcodereview.appspot.com/14582012
Later reverted in https://codereview.chromium.org/14921004/
The test failure was due to failing to unregister mocked URLs after test.
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=149838
Patch Set 1 #
Messages
Total messages: 4 (0 generated)
|