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

Issue 766720 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Sep 2017
Cc:
EstimatedDays: ----
NextAction: ----
OS: iOS
Pri: 2
Type: Bug



Sign in to add a comment

iPhone X top layout issues for BVC

Project Member Reported by justincohen@chromium.org, Sep 19 2017

Issue description

iPhone X top layout issues for BVC
 
Labels: Merge-Request-62
Status: Fixed (was: Assigned)
Fixed in https://chromium-review.googlesource.com/669484
Project Member

Comment 2 by sheriffbot@chromium.org, Sep 19 2017

Labels: -Merge-Request-62 Merge-Review-62 Hotlist-Merge-Review
This bug requires manual review: M62 has already been promoted to the beta branch, so this requires manual review
Please contact the milestone owner if you have questions.
Owners: amineer@(Android), cmasso@(iOS), bhthompson@(ChromeOS), abdulsyed@(Desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
I assume this is IOS only, but can you please mark all impacted OS's?
Labels: OS-iOS

Comment 5 by pkl@chromium.org, Sep 20 2017

Cc: justincohen@chromium.org
 Issue 764869  has been merged into this issue.

Comment 6 by pkl@chromium.org, Sep 20 2017

Cc: gambard@chromium.org linds...@chromium.org
 Issue 764928  has been merged into this issue.

Comment 7 by pkl@chromium.org, Sep 20 2017

 Issue 764874  has been merged into this issue.

Comment 8 by cma...@chromium.org, Sep 21 2017

Owner: jif@chromium.org
Hey jif@ could you assess the work involved in getting this into M62? Like how many CLs will be cherry picked?

Comment 9 by jif@chromium.org, Sep 22 2017

Justin wrote an other CL that fixes a bunch of other bugs, but it's a little hacky.

To have it less hacky requires a large amount of code to be changed, so it's an other 200 loc easily.
Labels: -Hotlist-Merge-Review -Merge-Review-62 Merge-Approved-62
Please let's merge the fix for this issue only for now and handle other CLs on a case by case basis.
rohitrao@ Should I merge https://bugs.chromium.org/p/chromium/issues/detail?id=766720#c9, or are there followup CLs pending?
Go ahead and merge, thanks.  There may be other fixes coming too, but nothing that should hold this one up.
Project Member

Comment 13 by bugdroid1@chromium.org, Sep 25 2017

Labels: -merge-approved-62 merge-merged-3202
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/2a90829b7e3af82ec8f639880592859669ad7905

commit 2a90829b7e3af82ec8f639880592859669ad7905
Author: Justin Cohen <justincohen@google.com>
Date: Mon Sep 25 11:57:51 2017

[ios] Short term solution to iPhone X top layout issues for BVC.

The proper solution is to either way for ios/clean or refactor BVC to use
topLayoutGuide.  Unfortunately, this change will require more than just
replacing usinag of StatusBarHeight, it will also require refactoring various
portions of BVC so layout happens within -viewSeAreaInsetsDidChange.

Instead, take advantage of the fact that, for now, the status bar frame can be
used to fake the topLayoutGuide, and can be used at anytime.

TBR=justincohen@google.com

(cherry picked from commit b3170c396ef5c034aec1af5c4f671f3cc6b07804)

Bug:  766720 
Change-Id: I7b05ce78a0104884fb77d21be512c641b1da0e95
Reviewed-on: https://chromium-review.googlesource.com/669484
Reviewed-by: Rohit Rao (ping after 24h) <rohitrao@chromium.org>
Reviewed-by: Mark Cogan <marq@chromium.org>
Reviewed-by: Jean-François Geyelin <jif@chromium.org>
Commit-Queue: Justin Cohen <justincohen@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#502756}
Reviewed-on: https://chromium-review.googlesource.com/681456
Reviewed-by: Justin Cohen <justincohen@chromium.org>
Cr-Commit-Position: refs/branch-heads/3202@{#421}
Cr-Branched-From: fa6a5d87adff761bc16afc5498c3f5944c1daa68-refs/heads/master@{#499098}
[modify] https://crrev.com/2a90829b7e3af82ec8f639880592859669ad7905/ios/chrome/browser/ui/browser_view_controller.mm
[modify] https://crrev.com/2a90829b7e3af82ec8f639880592859669ad7905/ios/chrome/browser/ui/ui_util.h
[modify] https://crrev.com/2a90829b7e3af82ec8f639880592859669ad7905/ios/chrome/browser/ui/ui_util.mm

Project Member

Comment 14 by bugdroid1@chromium.org, Sep 25 2017

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

commit b1e8731c93867078fd2eb93414480619e46ce981
Author: Justin Cohen <justincohen@chromium.org>
Date: Mon Sep 25 12:04:19 2017

Revert "[ios] Short term solution to iPhone X top layout issues for BVC."

This reverts commit 2a90829b7e3af82ec8f639880592859669ad7905.

Reason for revert: error in resolving conflicts.

Original change's description:
> [ios] Short term solution to iPhone X top layout issues for BVC.
> 
> The proper solution is to either way for ios/clean or refactor BVC to use
> topLayoutGuide.  Unfortunately, this change will require more than just
> replacing usinag of StatusBarHeight, it will also require refactoring various
> portions of BVC so layout happens within -viewSeAreaInsetsDidChange.
> 
> Instead, take advantage of the fact that, for now, the status bar frame can be
> used to fake the topLayoutGuide, and can be used at anytime.
> 
> TBR=justincohen@google.com
> 
> (cherry picked from commit b3170c396ef5c034aec1af5c4f671f3cc6b07804)
> 
> Bug:  766720 
> Change-Id: I7b05ce78a0104884fb77d21be512c641b1da0e95
> Reviewed-on: https://chromium-review.googlesource.com/669484
> Reviewed-by: Rohit Rao (ping after 24h) <rohitrao@chromium.org>
> Reviewed-by: Mark Cogan <marq@chromium.org>
> Reviewed-by: Jean-François Geyelin <jif@chromium.org>
> Commit-Queue: Justin Cohen <justincohen@chromium.org>
> Cr-Original-Commit-Position: refs/heads/master@{#502756}
> Reviewed-on: https://chromium-review.googlesource.com/681456
> Reviewed-by: Justin Cohen <justincohen@chromium.org>
> Cr-Commit-Position: refs/branch-heads/3202@{#421}
> Cr-Branched-From: fa6a5d87adff761bc16afc5498c3f5944c1daa68-refs/heads/master@{#499098}

TBR=rohitrao@chromium.org,jif@chromium.org,marq@chromium.org,justincohen@chromium.org

Change-Id: I670c2138fa43300d54f6d178b3b53cabdac137e7
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug:  766720 
Reviewed-on: https://chromium-review.googlesource.com/681554
Reviewed-by: Justin Cohen <justincohen@chromium.org>
Cr-Commit-Position: refs/branch-heads/3202@{#422}
Cr-Branched-From: fa6a5d87adff761bc16afc5498c3f5944c1daa68-refs/heads/master@{#499098}
[modify] https://crrev.com/b1e8731c93867078fd2eb93414480619e46ce981/ios/chrome/browser/ui/browser_view_controller.mm
[modify] https://crrev.com/b1e8731c93867078fd2eb93414480619e46ce981/ios/chrome/browser/ui/ui_util.h
[modify] https://crrev.com/b1e8731c93867078fd2eb93414480619e46ce981/ios/chrome/browser/ui/ui_util.mm

Project Member

Comment 15 by bugdroid1@chromium.org, Sep 25 2017

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

commit 75f7ecede5a0702a0948fdfed45a6b853e0cfd43
Author: Justin Cohen <justincohen@google.com>
Date: Mon Sep 25 13:11:00 2017

[ios] Short term solution to iPhone X top layout issues for BVC.

The proper solution is to either way for ios/clean or refactor BVC to use
topLayoutGuide.  Unfortunately, this change will require more than just
replacing using of StatusBarHeight, it will also require refactoring various
portions of BVC so layout happens within -viewSeAreaInsetsDidChange.

Instead, take advantage of the fact that, for now, the status bar frame can be
used to fake the topLayoutGuide, and can be used at anytime.

Bug:  766720 
Change-Id: I5f50f7580854c2dfa37d9c48206bc0f27e814e5f
Reviewed-on: https://chromium-review.googlesource.com/669484
Reviewed-by: Rohit Rao (ping after 24h) <rohitrao@chromium.org>
Reviewed-by: Mark Cogan <marq@chromium.org>
Reviewed-by: Jean-François Geyelin <jif@chromium.org>
Commit-Queue: Justin Cohen <justincohen@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/681417
Reviewed-by: Justin Cohen <justincohen@chromium.org>
Cr-Commit-Position: refs/branch-heads/3202@{#423}
Cr-Branched-From: fa6a5d87adff761bc16afc5498c3f5944c1daa68-refs/heads/master@{#499098}
[modify] https://crrev.com/75f7ecede5a0702a0948fdfed45a6b853e0cfd43/ios/chrome/browser/ui/browser_view_controller.mm
[modify] https://crrev.com/75f7ecede5a0702a0948fdfed45a6b853e0cfd43/ios/chrome/browser/ui/ui_util.h
[modify] https://crrev.com/75f7ecede5a0702a0948fdfed45a6b853e0cfd43/ios/chrome/browser/ui/ui_util.mm

Sign in to add a comment