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

Issue 623862 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Long OOO (go/where-is-mgiuca)
Closed: Jul 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome
Pri: 1
Type: Bug-Regression

Blocked on:
issue 624296



Sign in to add a comment

Regression: 'Press Esc to exit fullscreen' covered up by permission prompts

Reported by rk...@etouch.net, Jun 28 2016

Issue description

Chrome Version: 53.0.2781.0 Revision d855b4a44ca015cc874b69b828717bb4293c3092-refs/heads/master@{#402177}(32/64 bit)
OS: Windows(7,8,10),Linux(Ubuntu 14.04 LTS)

What steps will reproduce the problem?
(1) Launch chrome, navigate to https://permission.site/
(2) Press F11 to browser fullscreen, then click on Location(Permission bubble will appear)
(3) Then Click on 'Fullscreen' option on page and observe info bar

'Press Esc to exist fullscreen' info bar doesnot appear when browser in fullscreen mode.

'Press Esc to exist fullscreen' info bar should appear even if browser in fullscreen mode.

This is a regression issue, broken in 'M-53', below is bisect info:

Good Build: 53.0.2780.0
Bad Build: 53.0.2781.0

Narrow Bisect:
https://chromium.googlesource.com/chromium/src/+log/c5f27175f60bdeb0a7c42f3a3f564649c5d9cfaf..c1f6fef2827f3d3269c2c103b23706d7260da9bd?pretty=fuller&n=100

Suspecting: r402133

Note: Issue is not seen on Mac OS.
 
Actual_Bubble.mp4
611 KB View Download
Expected_Bubble.mp4
584 KB View Download
Labels: ReleaseBlock-Stable
Adding RB label as this is a recent regression.

Comment 2 by mgiuca@chromium.org, Jun 29 2016

Labels: -ReleaseBlock-Stable ReleaseBlock-Beta Security_Severity-Medium Restrict-View-SecurityTeam
Ah yeah, this is a security problem. The order in which the prompts are shown determines their stacking order. It's now possible to cause the permission prompt bubble to appear in front of the fullscreen notification, which means a site can enter fullscreen, then immediately request location, to mask the fullscreen bubble completely.

The previous behaviour ( Issue 619894 ) was weird but not a security issue, so we could just revert to that. I'll see how easy it is to fix the stacking order.

Comment 3 by mgiuca@chromium.org, Jun 29 2016

Summary: Regression: 'Press Esc to exit fullscreen' covered up by permission prompts (was: Regression: 'Press Esc to exist fullscreen' info bar doesnot appear when browser is in fullscreen mode.)

Comment 4 by mgiuca@chromium.org, Jun 29 2016

Blockedon: 624296

Comment 5 by mgiuca@chromium.org, Jun 29 2016

Cc: benwells@chromium.org f...@chromium.org rolfe@chromium.org raymes@chromium.org
It is really hard to fix the stacking order :(. I think a good fix for this is to just move the permission prompt over to the top-left corner and give it an arrow treatment (similar to when out of fullscreen mode). See  Issue 624296 .

CL: https://codereview.chromium.org/2109663005

Sorry to do this after already spending people's time on the previous CL.
fullscreen-permission-corner.png
121 KB View Download

Comment 6 by rolfe@chromium.org, Jun 29 2016

I love this solution!

Comment 7 by mgiuca@chromium.org, Jun 30 2016

Labels: OS-Chrome OS-Mac
> Note: Issue is not seen on Mac OS.

Wait, I just tested on macOS and it *is* reproducible. That's concerning because r402133 couldn't have caused this (it must have been an issue on Mac the whole time). My above CL is not going to fix on Mac either. (In some sense this is less severe on Mac because it's not a regression.)

Comment 8 by mgiuca@chromium.org, Jun 30 2016

My CL won't be able to land by branch point (there are some issues with RTL as well as multi-monitor). I'll try to merge it later. I don't think it's correct to revert the previous CL as that re-introduces a different bug.

I also tried a different approach, changing the stacking order:
https://codereview.chromium.org/2115433002

This works on Views but not Mac. So... I'm not clear on whether we should land both of these or just one. I think the one that moves it to the corner is desirable anyway, and Ben said he would be able to do it on Mac, so I think we'll go with that one.
M53 is branched today (2785) and will be promoted to Beta this month.Your bug is labelled as Beta ReleaseBlock, pls make sure to land and merge the fix to M53 branch 2785 by 5:00 PM PST on Friday 07/22 (sooner the better so it gets chance to bake in M53 dev releases it self). Thank you.
Project Member

Comment 10 by bugdroid1@chromium.org, Jul 6 2016

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

commit 22beefb92cb521c2aa381431b7041f2d488c7227
Author: mgiuca <mgiuca@chromium.org>
Date: Wed Jul 06 02:25:04 2016

Permission prompts show in the top-left corner in fullscreen mode.

Previously they were shown in the center, which causes interference with
the fullscreen notification. This way, they are treated more
consistently both in and out of fullscreen mode.

BUG= 623862 , 624296 
TEST=On https://permission.site, click Fullscreen then Location. The location
  prompt should be in the top-left corner and not overlapping the "Press Esc to
  exit full screen" bubble.
TEST=As above, but with the browser window on a secondary monitor.
TEST=As above, but in Arabic or Hebrew language (should be in top-right corner).

Review-Url: https://codereview.chromium.org/2109663005
Cr-Commit-Position: refs/heads/master@{#403840}

[modify] https://crrev.com/22beefb92cb521c2aa381431b7041f2d488c7227/chrome/browser/ui/views/website_settings/permissions_bubble_view.cc
[modify] https://crrev.com/22beefb92cb521c2aa381431b7041f2d488c7227/chrome/browser/ui/views/website_settings/permissions_bubble_view.h
[modify] https://crrev.com/22beefb92cb521c2aa381431b7041f2d488c7227/chrome/browser/ui/views/website_settings/permissions_bubble_view_views.cc

Labels: -Restrict-View-SecurityTeam -OS-Mac Merge-Request-53
Status: Fixed (was: Assigned)
Fixed on Views. Reported  Issue 625915  for Mac (which is a non-regression).

Requesting merge to M53 (rationale: regressed in M53).

Comment 12 by dimu@google.com, Jul 7 2016

Labels: -Merge-Request-53 Merge-Approved-53 Hotlist-Merge-Approved
Your change meets the bar and is auto-approved for M53 (branch: 2785)
Project Member

Comment 13 by bugdroid1@chromium.org, Jul 7 2016

Labels: -merge-approved-53 merge-merged-2785
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/2735281192ab10e3930275697983a06df06b8171

commit 2735281192ab10e3930275697983a06df06b8171
Author: Matt Giuca <mgiuca@chromium.org>
Date: Thu Jul 07 03:07:35 2016

Permission prompts show in the top-left corner in fullscreen mode.

Previously they were shown in the center, which causes interference with
the fullscreen notification. This way, they are treated more
consistently both in and out of fullscreen mode.

BUG= 623862 , 624296 
TEST=On https://permission.site, click Fullscreen then Location. The location
  prompt should be in the top-left corner and not overlapping the "Press Esc to
  exit full screen" bubble.
TEST=As above, but with the browser window on a secondary monitor.
TEST=As above, but in Arabic or Hebrew language (should be in top-right corner).

Review-Url: https://codereview.chromium.org/2109663005
Cr-Commit-Position: refs/heads/master@{#403840}
(cherry picked from commit 22beefb92cb521c2aa381431b7041f2d488c7227)

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

Cr-Commit-Position: refs/branch-heads/2785@{#38}
Cr-Branched-From: 68623971be0cfc492a2cb0427d7f478e7b214c24-refs/heads/master@{#403382}

[modify] https://crrev.com/2735281192ab10e3930275697983a06df06b8171/chrome/browser/ui/views/website_settings/permissions_bubble_view.cc
[modify] https://crrev.com/2735281192ab10e3930275697983a06df06b8171/chrome/browser/ui/views/website_settings/permissions_bubble_view.h
[modify] https://crrev.com/2735281192ab10e3930275697983a06df06b8171/chrome/browser/ui/views/website_settings/permissions_bubble_view_views.cc

Labels: TE-Verified-53.0.2785.14 TE-Verified-M53
Verified the issue on Win 7 and Ubuntu 14.04 using 53.0.2785.14 and its working fine.
623862_July_12.mp4
1.2 MB View Download
Status: Verified (was: Fixed)
Verified as per initial bug repro steps. Permission bubble appears in the top-left corner and does not hide 'Press Esc to exist fullscreen' infobar.

Build: ChromeOS 8530.35.0, 53.0.2785.36

Sign in to add a comment