New issue
Advanced search Search tips

Issue 789260 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Dec 2017
Cc:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: ----



Sign in to add a comment

Webapp not sized correctly

Project Member Reported by tedc...@chromium.org, Nov 28 2017

Issue description

Application Version (from "Chrome Settings > About Chrome"): 64.0.3280.0

Steps to reproduce: 
1.) Navigate to news.google.com (or any webapp capable site)
2.) Add to homescreen
3.) Open link on the homescreen (try w/ killing chrome and without)

Observed behavior: 
The content does not fill the screen, but seems to be height - toolbar

Expected behavior: 
The contents should be full screen.

Frequency: 
10/10

Additional comments: 

 
Cc: boliu@chromium.org
Owner: jinsuk...@chromium.org
Status: Assigned (was: Untriaged)
Assigning to jinsukkim@ who has been touching resizing.
screenshot-002e3dd30e64ad50-20171128T132058.png
516 KB View Download
Status: Started (was: Assigned)
I'm clueless why I can't reproduce this bug.. but why it happens is clear - CCT/Webapp-hosted tabs should have fixed browser control info, unlike the tabs in Chrome. Their WebContentsDelegate however inherits from TabWebContentsDelegate, therefore inherits the dynamic browser control update feature too. This should be prevented by overriding again. 

https://chromium-review.googlesource.com/c/chromium/src/+/795479
I got a clue - it has to do with the view size being updated along the way a tab is created. Looks like my CL set a valid view size sooner than it should , somehow it confused blink/cc. The problem goes away if the size is kept to zero till that point. I'm testing if the new fix doesn't have any other side effect. 
Project Member

Comment 6 by bugdroid1@chromium.org, Dec 7 2017

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

commit 708d46e3653a5ae94414689b885051333bf59e35
Author: Jinsuk Kim <jinsukkim@chromium.org>
Date: Thu Dec 07 20:00:39 2017

Prevent CCT/Webapp tab from resizing incorrectly

This CL removes a spurious |WebContents.setSize()| at
the tab initialization that sets a wrong view size to
fix the bug of giving a wrong view height for CCT/Webapp.

Bug:  789260 
Change-Id: Ie93e81b4fd9f1387e121105dd048c22015238f12
Reviewed-on: https://chromium-review.googlesource.com/795479
Commit-Queue: Jinsuk Kim <jinsukkim@chromium.org>
Reviewed-by: Ted Choc <tedchoc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#522517}
[modify] https://crrev.com/708d46e3653a5ae94414689b885051333bf59e35/chrome/android/java/src/org/chromium/chrome/browser/compositor/CompositorViewHolder.java

Labels: Merge-Request-64
Project Member

Comment 8 by sheriffbot@chromium.org, Dec 8 2017

Labels: -Merge-Request-64 Hotlist-Merge-Approved Merge-Approved-64
Your change meets the bar and is auto-approved for M64. Please go ahead and merge the CL to branch 3282 manually. Please contact milestone owner if you have questions.
Owners: cmasso@(Android), cmasso@(iOS), kbleicher@(ChromeOS), abdulsyed@(Desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Project Member

Comment 9 by bugdroid1@chromium.org, Dec 11 2017

Labels: -merge-approved-64 merge-merged-3282
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/31dfbbc70b0a8fffd05952f4d02963b8933ac272

commit 31dfbbc70b0a8fffd05952f4d02963b8933ac272
Author: Jinsuk Kim <jinsukkim@chromium.org>
Date: Mon Dec 11 01:18:16 2017

Prevent CCT/Webapp tab from resizing incorrectly

This CL removes a spurious |WebContents.setSize()| at
the tab initialization that sets a wrong view size to
fix the bug of giving a wrong view height for CCT/Webapp.

Bug:  789260 
Change-Id: Ie93e81b4fd9f1387e121105dd048c22015238f12
Reviewed-on: https://chromium-review.googlesource.com/795479
Commit-Queue: Jinsuk Kim <jinsukkim@chromium.org>
Reviewed-by: Ted Choc <tedchoc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#522517}(cherry picked from commit 708d46e3653a5ae94414689b885051333bf59e35)

TBR=tedchoc@chromium.org

Change-Id: Ie93e81b4fd9f1387e121105dd048c22015238f12
Reviewed-on: https://chromium-review.googlesource.com/818608
Reviewed-by: Jinsuk Kim <jinsukkim@chromium.org>
Cr-Commit-Position: refs/branch-heads/3282@{#118}
Cr-Branched-From: 5fdc0fab22ce7efd32532ee989b223fa12f8171e-refs/heads/master@{#520840}
[modify] https://crrev.com/31dfbbc70b0a8fffd05952f4d02963b8933ac272/chrome/android/java/src/org/chromium/chrome/browser/compositor/CompositorViewHolder.java

Status: Fixed (was: Started)

Sign in to add a comment