New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 604393 link

Starred by 1 user

Issue metadata

Status: Archived
Owner:
Closed: Jul 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Bug



Sign in to add a comment

DevTools: scrollbar emulation not reset when tab is duplicated

Reported by teo8...@gmail.com, Apr 18 2016

Issue description

Chrome Version       : 49.0.2623.112
OS Version: 
URLs (if applicable) :
Other browsers tested:
  Add OK or FAIL after other browsers where you have tested this issue:
     Safari 5:
  Firefox 4.x:
     IE 7/8/9:

What steps will reproduce the problem?
1. In a tab, open Developer Tools
2. Click on the mobile icon on the top-left corner of the DevTools panel, to view the page as it would appear on a touchscreen (let's call it "mobile mode")
3. Rightclick on the current tab and select "Duplicate"

What is the expected result?
Either of these:
A) the DevTools would be open in the new tab as they were in the original tab, and DevTools would be in the same status as the original tab, hence in "mobile mode"
OR
B) DevTools are not open in the new tab, and the new tab should behave like any other normal tab


What happens instead of that?
The new tab doesn't have the Developer Tools open, and (obviously) it is not in "mobile mode". However, it has a ridiculous thin and auto-hide scrollbar, different from the usual scrollbar that you would see in any normal Chrome tab, and somewhat similar to the typical scrollbars of a (real or emulated) touchscreen device.



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

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



 
Cc: kavvaru@chromium.org
Labels: Needs-Feedback
 teo8976@ Thanks for the issue.

Unable to reproduce the issue on windows 7, Linux Ubuntu 14.04 and Mac 10.11.4 using chrome version 49.0.2623.112 and latest stable 50.0.2661.75 and canary 52.0.2711.0 with the below steps

1. Opened Dev tools
2.Clicked on mobile icon in devtools and slected any mobile device
3.Right click on tab and duplicate
4.Normal new tab opened

Please find the attached screen cast and confirm anything missed here.
Request you please try the issue on latest stable and update the thread with OS details to trigae the issue further.

Thanks,
604393.mp4
596 KB Download

Comment 2 by teo8...@gmail.com, Apr 19 2016

Can you try on Ubuntu 15.10?


Comment 3 by teo8...@gmail.com, Apr 19 2016

OMG just had a look at your screencast. Your page doesn't even exceed the screen height, so you obviously have no scrollbars at all. How did you expect that to be a test for a scrollbar-related issue??
Project Member

Comment 4 by sheriffbot@chromium.org, Apr 20 2016

Labels: -Needs-Feedback Needs-Review
Owner: kavvaru@chromium.org
Thank you for providing more feedback. Adding requester "kavvaru@chromium.org" for another review and adding "Needs-Review" label for tracking.

For more details visit https://sites.google.com/a/chromium.org/dev/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: -Needs-Review Needs-Bisect
Cc: pfeldman@chromium.org
Components: Platform>DevTools
Labels: -Needs-Bisect Needs-Feedback
Owner: ----
Thnaks for the update.
Unable to reproduce the issue on windows 7, Linux Ubuntu 14.04 and Mac 10.11.4
using chrome version 50.0.2661.87.Not observed any issue with small browser window.
Please find the attached screen cast.

Request you please provide us any screen shot or video would help us for better understanding the issue.

Thanks,
604393.ogv
1.4 MB Download

Comment 7 by teo8...@gmail.com, Apr 25 2016

Actually the thin and vanishing scrollbar can be observed in your very screencast at 0:17.
Cc: -pfeldman@chromium.org
Components: Blink>Scroll
Labels: -Pri-3 -Needs-Feedback M-52 OS-Windows Pri-2
Status: Untriaged (was: Unconfirmed)
Thanks for the quick update.
Able to reproduce the issue on windows 7, Linux Ubuntu 14.04 using chrome version 50.0.2661.87 and canary 52.0.2715.0.
Able to see the thin scrollbar in new tab.
this is non regression issue from M30 builds.Hence marking it as Untriaged to get more inputs from dev team.

Thanks,

Comment 9 by teo8...@gmail.com, Apr 25 2016

I don't mean to be rude, but if you had actually read the report and tested the issue with a minimum of attention, this could have been confirmed since day 1 without asking the original reporter (in this case, me) *twice* for additional information, whci wasn't "additional" at all.

What worries me is that I have seen the exact same happen with another bug report of mine (namely 604074). In both cases I struggle to see what may have not been sufficiently clear in the original reports.

Comment 10 by teo8...@gmail.com, Apr 26 2016

I am also observing a related, sort of the-other-way-around issue, though I haven't found a way of systematically reproduce it, and it doesn't  seem to involve duplicating tabs.

At random times, after turning mobile emulation off and on, or after reloading the page with mobile emulation on, EITHER or both of the following happen:
- in the emulated mobile screen, I observe desktop-like thick scrollbars (overlapping with the expected thin autohide touchscreen-like scrollbars);
- the cursor pointer is a regular arrow pointer rather than a circle

Some random combination of refreshing and switching mobile emulation off and on again and again, usually ends up "fixing" the issue.

Comment 11 by bokan@chromium.org, Apr 28 2016

Cc: bokan@chromium.org dgozman@chromium.org
Components: -Platform>DevTools -Blink>Scroll Platform>DevTools>Mobile
Reproduced on Linux stable 50.0.2661.75. Good catch. It looks like we're not resetting some of the mobile emulation settings when we duplicate a tab. +dgozman@ for DevTools attention.
Owner: dgozman@chromium.org
Status: Assigned (was: Untriaged)
Summary: DevTools: scrollbar emulation not reset when tab is duplicated (was: Thin scrollbar)
Labels: -OS-Linux -OS-Windows -Pri-2 -M-52 OS-All Pri-3
This is a flaw of current design - we enable overlay scrollbar for a renderer process, and duplicated tab is in the same process. This will not be fixed soon, as it requires substantial redesign.

Comment 14 by teo8...@gmail.com, May 13 2016

Are you sure?

This is NOT specific to duplicating tabs.

Every time you switch mobile emulation on or off in the Developer Tools (or you open/close the Developer tools when they have mobile emulation on), all the scrollbars that are already visible will fail to be updated to the new mode. 

However, scrollbars that appear afterwards will be rendered as expected. You can end up with a mix of regular scrollbars and overlay scrollbars.

Indeed, when there are scrollbars that have been rendered in the wrong mode (e.g. they showed up when you were in mobile mode so they are overlay scrollbars, then you switch to regular screen mode and the scrollbars remain overlay), if you enlarge the window so that the scrollbars disappear, and then shrink the window again, the scrollbars will reappear in the expected mode.

To me it looks more like you forget to update existing scrollbars, than anything related with processes.
What you describe in #c14 is a separate issue, which we are aware of. It has the same cause of "overlay scrollbars" flag being static global. The workaround is to reload the page after engaging with mobile emulation.
Status: Archived (was: Assigned)
Why the f*** was this archived?

> This is a flaw of current design [...] it requires substantial redesign

Then do the redesign. This bug is tremendously annoying. And it persists after reloading the page.

It has slightly changed: the scrollbar observed at step 3 in the duplicated tab, now is no longer thin and doesn't auto-hide. It has the thickness of a regular desktop scrollbar, but the alpha of a touchscreen scrollbar, it has no background or up/down buttons, and sometimes (randomly) it becomes transparent to clicks so you can't use it. There's no workaround except closing the tab, copying the url and opening a new tab.

Sign in to add a comment