New issue
Advanced search Search tips

Issue 687088 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Dec 5
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

Remote debugging api Page.startScreencast, Page.screencastFrame scroll offset metadata often wrong

Reported by pda...@gmail.com, Jan 31 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.76 Safari/537.36

Steps to reproduce the problem:
when using remote debugging api to produce sceenshots using Page.startScreencast, the given scrollOffset values are often wrong when a scroll occurs.

What is the expected behavior?
expected scrollOffset values to match screenshot scroll state

What went wrong?
the scrollOffset is wrong in some of the sample screenshots

Did this work before? N/A 

Chrome version: 58.0.2997.1  Channel: stable
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version: 

attached a nodejs and html file that show the issue using a canvas representing the real "scrollOffsetY"

to run, make sure to install chrome-remote-interface and png-js using npm

 

Comment 1 by pda...@gmail.com, Jan 31 2017

The attached files...
main.js
1.2 KB View Download
test.html
1.3 KB View Download
Owner: allada@chromium.org

Comment 3 by ajha@chromium.org, Feb 3 2017

Labels: Needs-Triage-M58
Cc: kkaluri@chromium.org
Labels: Needs-Feedback
Tested this issue on Windows 10 with chrome version #56.0.2924.87

These are the steps followed 

1. Downloaded attached files in same folder.
2. Installed chrome-remote-interface and png-js using npm
3. Loaded the test.html page in chrome
4. In the devtools -> console, for "scrollOffset" cmd it has given O/P as "10" and for "Page.startScreencast" cmd it has given "Uncaught ReferenceError: Page is not defined"

Seen the same behavior in FireFox browser too.

pdaniq@ could you please look into the attached screen-cast and let us know any steps i have missed while reproducing the scenario.

Thank You...
Issue 687088.mp4
1.6 MB View Download

Comment 5 by pda...@gmail.com, Feb 28 2017

you shouldn't just load test.html in chrome
run main.js using node, it will open chrome with the test.html for you
in CMD:
node main.js

make sure chrome is closed before running

this should give you output like this:
------------------------------------
expected offset: 90
metadata offset: 90

expected offset: 90
metadata offset: 80
!!!offset mismatch!!!

expected offset: 110
metadata offset: 110

expected offset: 260
metadata offset: 260

expected offset: 260
metadata offset: 250
!!!offset mismatch!!!
------------------------------------

if you dont see any output. close chrome and run it again.
Labels: -Needs-Feedback
Thank you for providing feedback. removing "Needs-Feedback" label.
Cc: jmukthavaram@chromium.org
Labels: Needs-Feedback
As per comment#5, 
Installed node.js & NPM on Windows 10 machines & followed below steps:
1.Downloaded above both main.js & .html files & kept in a separate folder
2.Opened Terminal (Command prompt)
3.Typed node -v & observd the version
4.Typed npm -v & Observed npm version
5.Now typed node main.js & hit enter
6.Observed errors as displayed in the attached screenshot.

Hence unable to proceed further to test the issue.
pdaniq@Please find the attached scrrenshot & suggest us for further triaging the issue.

Thanks in advance!!



687088.PNG
179 KB View Download

Comment 8 by pda...@gmail.com, Mar 2 2017

please run 
npm install png-js
npm install chrome-remote-interface

if chrome is not in your path (running "chrome" in cmd does not open chrome) please add it to your path using
set PATH=%PATH%;<path_to_chrome>
for example
set PATH=%PATH%;C:\Program Files (x86)\Google\Chrome\Application

close all browser instances
then run
node main.js

waiting to hear about your progress
Project Member

Comment 9 by sheriffbot@chromium.org, Mar 2 2017

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "jmukthavaram@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: -Needs-Triage-M58 M-58
Status: Untriaged (was: Unconfirmed)
Thanks for the reply.
Able to reproduce the issue on Windows 10 using chrome stable-56.0.2924.87 & Canary-58.0.3028.0.
Observed all the mismatched results after running the 'node main.js' command via  terminal & same issue observed from M45 builds to latest chrome versions.Since it ia a non regression issue , marking it as 'Untriaged'.

Note: Earlier builds of M45 are getting crashed ,hence unable to test this issue.
Please find the attached screencast for reference.

687088-win10.mp4
2.3 MB View Download
Owner: dgozman@chromium.org
Status: Assigned (was: Untriaged)
Status: WontFix (was: Assigned)
This is low priority, closing due to lack of resources.

Sign in to add a comment