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

Issue 596038 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner:
Closed: Apr 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 1
Type: Bug-Regression



Sign in to add a comment

Regression: NTP Background Does Not Follow Zoom Factor

Reported by rk...@etouch.net, Mar 18 2016

Issue description

Chrome Version: 51.0.2682.0 Revision 153a9028e5cb73e3c707b4884550499e2a08af5c-refs/heads/master@{#381839}(32/64 bit)
OS: Windows(Win-7 Aero Enabled)

URL: https://chrome.google.com/webstore/detail/wolf-and-the-ice-planet/gffkhmkbijdmbncaoclaclldnbndflck?hl=en

What steps will reproduce the problem?
(1) Launch chrome,navigate to above url and click on 'ADD TO CHROME'
(2) Open NTP, press ctrl+ and  observe.

Wearied behavior of page is seen on zoom action after applied theme.

No such behavior should seen on zoom action after applied theme. 

This is a regression This is a regression issue,broken in 'M-51', Manual regression range:

Good Build: 50.0.2633.3
Bad Build: 50.0.2634.0

Narrow Bisect:
https://chromium.googlesource.com/chromium/src/+log/120a7c8d5e882458dbebd6b302087ccb2cc8ed6f..587840943312698e8de4714d21673788c4eaf16b?pretty=fuller&n=100

Suspecting: r372163

Note: Issue is not seen on Mac OS.

@Oshima: Could you please help me to reassign this issue,if your change is not cause for it?
 
Actual_Theme.mp4
851 KB Download
Expected_Theme.mp4
555 KB Download
Labels: ReleaseBlock-Stable
Adding release block label, please undo if not the case.

Comment 2 by osh...@chromium.org, Mar 18 2016

Can you tell me the devicePixelRatio you get at https://bjango.com/articles/min-device-pixel-ratio/? (Make sure you reset the zoom to 100%)

I couldn't reproduce this on ChromeOS. I'll test it on linux soon.

If this indeed caused this, that means that NTP was relying on buggy behavior of image set. I'll look into NTP code then.

Comment 3 Deleted

Comment 4 by osh...@chromium.org, Mar 18 2016

I couldn't reproduce this on Linux ToT either (51.0.2684.0). I tested with following device scale factors.

1, 1.25, 1.5 and 2.

Waiting for the answer for the question above.


Comment 5 by rk...@etouch.net, Mar 23 2016

Labels: -OS-Linux -Needs-Feedback
With respect to comment 4:

Issue is not reproducible on Linus using latest chrome 51.0.2688.0, but issue is reproducible on Windows OS.

Comment 6 by osh...@chromium.org, Mar 23 2016

Cc: robliao@chromium.org
Labels: Needs-Feedback
What was your devicePixelRatio?

If this only happens on Windows, the root cause could be same as this Windows bug  crbug.com/561183 .
Summary: NTP Theme Background Does Not Fill Entire Background When NTP Page Is Zoomed (was: Regression: Wearied behavior of page is seen on zoom action after applying theme.)
This bug seems to be specific to a change in behavior of the renderer viewport.

561183 applies to backgrounds in the Chrome Frame. On 561183, NTP was noted to have the correct background scale.

Comment 8 by osh...@chromium.org, Mar 23 2016

Status: Started (was: Assigned)
Summary: Regression: Wearied behavior of page is seen on zoom action after applying theme. (was: NTP Theme Background Does Not Fill Entire Background When NTP Page Is Zoomed)
It's not about NTP not filling background. It's been this way even before 49. If that's 

 crbug.com/561183  is about a way to handle multiple device scale factors, and this will indeed changes the devicePixelRatio, which can be affected by this bug. (repro step in 561183 does not include that scenario)

My current guess is that when you zoom in, it'll change devicePixelRatio to 1, but chrome still loads 2x assets due to that bug, which causes misalignment.

I'll try to repro this on Linux by applying the same problem on Linux first. If not, I'll investigate on Windows.

Comment 9 by osh...@chromium.org, Mar 23 2016

I noticed that my comment was incomplete, sorry about that. What I was trying to say is

If NTP not filling the content is not expected behavior, we should file a separate bug.
Summary: Regression: NTP Background Does Not Follow Zoom Factor (was: Regression: Wearied behavior of page is seen on zoom action after applying theme.)
Clarifying title after offline discussion.
I could reproduce similar behavior on Linux by mimicking Windows device scale factor behavior (similar to what I did in  crbug.com/561183 ). However, the patch that worked on Linux did not seem to work. I'll investigate this on Windows.
rkote@etouch.net, could you please answer my question about devicePixelRatio?

I want to make sure that we're reproducing your issue correctly.
By the way, here is the behavior I'm getting. At ~67% scale, the background gets bigger, probably because it keeps returning 2x background image even the image-set requested one for 1x.


https://drive.google.com/file/d/0B5h6yCnehPpJMkFyNzEyZlpkQ00/view?usp=sharing


and this CL (https://codereview.chromium.org/1825863002/) fixes this behavior.
I was testing on 1.5 scale factor. I could reproduce when I test it on 1x. I'll look into it.
The same issue but I needed one more change to support 1x -> 2x transition.
CL is up for review. https://codereview.chromium.org/1825863002/
Project Member

Comment 16 by bugdroid1@chromium.org, Mar 30 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/cb8feac7b8a21a9e63b9d20ad58d5a8121c28fb2

commit cb8feac7b8a21a9e63b9d20ad58d5a8121c28fb2
Author: oshima <oshima@chromium.org>
Date: Wed Mar 30 22:17:02 2016

Allow windows to use both 100P, 200P assets

Theme may use the wrong assets when deviceScaleFactor/devicePixelRatio changes without this change.

BUG= 561183 , 596038 

Review URL: https://codereview.chromium.org/1825863002

Cr-Commit-Position: refs/heads/master@{#384114}

[modify] https://crrev.com/cb8feac7b8a21a9e63b9d20ad58d5a8121c28fb2/ui/base/resource/resource_bundle.cc

Labels: M-50
I'll wait a bit to fully baked on ToT.
Labels: Merge-Request-50

Comment 19 by tin...@google.com, Apr 2 2016

Labels: -Merge-Request-50 Merge-Approved-50 Hotlist-Merge-Approved
Your change meets the bar and is auto-approved for M50 (branch: 2661)
Please merge your change to M50 branch 2661 by 5:00 PM on Monday, 04/04/16 so we can take it for next week beta. Thank you.
Project Member

Comment 21 by bugdroid1@chromium.org, Apr 4 2016

Labels: -merge-approved-50 merge-merged-2661
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/363ef03169c5bc60d3ac1a53a169dcd49aba1f85

commit 363ef03169c5bc60d3ac1a53a169dcd49aba1f85
Author: Mitsuru Oshima <oshima@chromium.org>
Date: Mon Apr 04 22:08:34 2016

Allow windows to use both 100P, 200P assets

Theme may use the wrong assets when deviceScaleFactor/devicePixelRatio changes without this change.

BUG= 561183 , 596038 

Review URL: https://codereview.chromium.org/1825863002

Cr-Commit-Position: refs/heads/master@{#384114}
(cherry picked from commit cb8feac7b8a21a9e63b9d20ad58d5a8121c28fb2)

Review URL: https://codereview.chromium.org/1853403002 .

Cr-Commit-Position: refs/branch-heads/2661@{#483}
Cr-Branched-From: ef6f6ae5e4c96622286b563658d5cd62a6cf1197-refs/heads/master@{#378081}

[modify] https://crrev.com/363ef03169c5bc60d3ac1a53a169dcd49aba1f85/ui/base/resource/resource_bundle.cc

Labels: TE-Verified-M51 TE-Verified-51.0.2700.0
Rechecked this on chrome version 51.0.2700.0 on Windows 7. Fix is working as intended. No weird behavior is displayed when performed Zoom operation after applying theme.

Adding TE-Verified labels.
Labels: TE-Verified-M50 TE-Verified-50.0.2661.66
Tested the issue on Windows 7 using 50.0.2661.66.Observed that weird behavior is not seen on zoom action after applied theme.Please find attached screencast.

Marking it as TE-Verified.

596038.mp4
5.6 MB Download
Status: Fixed (was: Started)

Sign in to add a comment