New issue
Advanced search Search tips

Issue 887064 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Oct 2
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Mac
Pri: 1
Type: Bug-Regression



Sign in to add a comment

DevTool's device emulator doesn't resize the webpage but crops it

Project Member Reported by hhli@chromium.org, Sep 19

Issue description

I pinpointed the problem to this revision(432553b5cb40):
https://chromium.googlesource.com/chromium/src/+/432553b5cb40dde1ae7ac1817dc7e2deecbf8e4e
Its parent revision (d91dacc021d) is fine.

OS: MacOS, Linux

What steps will reproduce the problem?
(1) Open a new tab, navigate to a website
(2) Launch DevTools
(3) Enable mobile device emulation

What is the expected result?
> The webpage should resize according to the height and width of the emulated device screen

What happens instead?
> The webpage is not resized.

I pinpointed the problem to this revision(432553b5cb40):
https://chromium.googlesource.com/chromium/src/+/432553b5cb40dde1ae7ac1817dc7e2deecbf8e4e
Its parent revision (d91dacc021d) is fine.


Please use labels and text to provide additional information.

If this is a regression (i.e., worked before), please consider using the
bisect tool (https://www.chromium.org/developers/bisect-builds-py) to help
us identify the root cause and more rapidly triage the issue.

For graphics-related bugs, please copy/paste the contents of the about:gpu
page at the end of this report.


 
Labels: -Pri-0 Pri-1
Cc: dgozman@chromium.org
Components: Platform>DevTools
Labels: -Type-Bug Type-Bug-Regression
Owner: bokan@chromium.org
Status: Assigned (was: Untriaged)
Add a screenshot
Screen Shot 2018-09-19 at 15.42.57.png
226 KB View Download
Project Member

Comment 4 by bugdroid1@chromium.org, Sep 24

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

commit eb643a6b869cf13fc8a00a7c259073925c531434
Author: David Bokan <bokan@chromium.org>
Date: Mon Sep 24 14:58:14 2018

Revert "Improve rotation check on viewport resize"

This reverts commit 432553b5cb40dde1ae7ac1817dc7e2deecbf8e4e.

Reason for revert: width == height isn't enough since the system bar affects only height. Broke 887064, 887330, 887899

Original change's description:
> Improve rotation check on viewport resize
>
> Since rotation used to be supported only on Android, where windows can't
> be resized, we made the assumption that if the width changes it must be
> a rotation.
>
> This changes in ChromeOS where entering tablet mode enables rotation but
> also resizes the window (when entering tablet mode). This caused
> inappropriate rotation anchoring.
>
> The underlying issue has been fixed in other patches linked to this bug,
> the rotation trigger should be improved to check that the width and
> height are swapped.
>
> Bug:  831473 
> Change-Id: I0acd39d16319d8cb7819faac4c4ce54b6f7a2e46
> Reviewed-on: https://chromium-review.googlesource.com/1224711
> Reviewed-by: Dave Tapuska <dtapuska@chromium.org>
> Commit-Queue: David Bokan <bokan@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#591430}

TBR=bokan@chromium.org,dtapuska@chromium.org

# Not skipping CQ checks because original CL landed > 1 day ago.

Bug:  831473 ,887899, 887064 , 887330 
Change-Id: Ib0f3cad366a80506effc62fcc352e1c75f2fcd55
Reviewed-on: https://chromium-review.googlesource.com/1239726
Commit-Queue: David Bokan <bokan@chromium.org>
Reviewed-by: David Bokan <bokan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#593536}
[modify] https://crrev.com/eb643a6b869cf13fc8a00a7c259073925c531434/third_party/blink/renderer/core/exported/web_view_impl.cc
[modify] https://crrev.com/eb643a6b869cf13fc8a00a7c259073925c531434/third_party/blink/renderer/core/frame/rotation_viewport_anchor_test.cc
[modify] https://crrev.com/eb643a6b869cf13fc8a00a7c259073925c531434/third_party/blink/renderer/core/html/image_document.h
[modify] https://crrev.com/eb643a6b869cf13fc8a00a7c259073925c531434/third_party/blink/renderer/core/html/image_document_test.cc

Status: Fixed (was: Assigned)
The CL in question was reverted.

Sign in to add a comment