New issue
Advanced search Search tips

Issue 669983 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Dec 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 3
Type: Bug



Sign in to add a comment

Empty in-page search results on the page containing the search pattern

Project Member Reported by koten...@yandex-team.ru, Nov 30 2016

Issue description

Version: 57.0.2931.0
OS: Mac, maybe others

What steps will reproduce the problem?
(1) Navigate to google.com
(2) In-page search "cat", there should be no matches.
(3) Type "cat" into the search box, hit enter.
(4) Open in-page search again, hit enter.

What is the expected result?
Multiple "cat"s found.

What happens instead?
Zero "cat"s found, but the page will scroll to the first result.

 
The word is actually found, but nothing is highlighted. Another way to reproduce it is to add text containing the search pattern via Javascript.
The problem is that TextFinder::shouldScopeMatches() returns false for the same text if the previous scoping found nothing, which is controlled by m_lastFindRequestCompletedWithNoMatches.
I will address this problem, but first I'll introduce a small refactoring of the scoping process.
Components: -Blink UI>Browser>FindInPage
Status: Started (was: Untriaged)
Project Member

Comment 4 by bugdroid1@chromium.org, Dec 5 2016

Status: Fixed (was: Started)

Sign in to add a comment