New issue
Advanced search Search tips

Issue 896819 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

Find in page highlighted text is offset on long lines

Project Member Reported by martiniss@chromium.org, Oct 18

Issue description

Chrome Version       : 69.0.3497.100
OS Version: Linux (debian)
URLs (if applicable) : https://logs.chromium.org/logs/infra/buildbucket/cr-buildbucket.appspot.com/8932302458280297504/+/steps/presubmit/0/stdout
Other browsers tested:
  Add OK or FAIL after other browsers where you have tested this issue:
     Safari: OK
    Firefox: OK
    IE/Edge: Didn't test

What steps will reproduce the problem?
1. Visit URL
2. Find in page for "tryserver_mail_test"

What is the expected result?
The string `'tests/tryserver_mail_test.py']` gets partially highlighted at the end of a long line near the top of the page.

What happens instead of that?
The correct line is highlighted, but the orange highlight is offset from the actual text on the page.

Please provide any additional information below. Attach a screenshot if
possible.

I was able to reproduce this with other strings than just the one at the end of the line. The incorrect offset seemed to be related to how far along inside the string it is.

UserAgentString: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36

Also tested on Chrome 'Version 70.0.3538.67 (Official Build) beta (64-bit)'. A coworker tested on mac osx and found the same bug.

Also reproduces in https://pastebin.com/9ZL4cnDu, which is a minimal version of the bug I think.


 
screenshot.png
67.5 KB View Download
Cc: susan.boorgula@chromium.org
Labels: -Pri-3 Triaged-ET Target-72 M-72 Needs-Triage-M69 FoundIn-71 FoundIn-70 FoundIn-72 OS-Mac OS-Windows Pri-2
Status: Untriaged (was: Unconfirmed)
martiniss@ Thanks for the issue.

Able to reproduce the issue on Windows 10, Mac OS 10.13.3 and Ubuntu 17.10 on the latest Stable 70.0.3538.67 and the latest Canary 72.0.3588.0.
Attached is the screen shot for reference.

This is a Non-Regression issue as this is observed from M-60 chrome builds.
Hence marking this as Untriaged for further updates from Dev.

Thanks..
896819-M60.PNG
62.5 KB View Download
Labels: Hotlist-DesktopUIConsider
Labels: Group-Toolbar
Components: -UI>Browser>FindInPage Blink>Editing>Selection
Labels: Hotlist-DesktopUIExternal
Labels: -Hotlist-DesktopUIConsider Hotlist-DesktopUITriaged
Components: UI>Browser>FindInPage
Components: -UI>Browser>FindInPage -Blink>Editing>Selection Blink>Paint
Route to Blink>Paint for triage.
It seems scrolling causes this.
Status: Available (was: Untriaged)
Attaching the test case. I presume the offset sum is not the same as it is for the text painting.
cr896819.html
47.7 KB View Download
Labels: -M-72 -Target-72 M-73 Target-73
Labels: -Group-Toolbar Group-Find

Sign in to add a comment