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

Issue 694396 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Mar 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 1
Type: Bug



Sign in to add a comment

Security chip on Mac Cocoa browser behaves strangely

Project Member Reported by dominickn@chromium.org, Feb 21 2017

Issue description

Chrome Version       : 56.0.2924.87
OS Version: OS X 10.12.3

What steps will reproduce the problem?
1. Visit https://permission.site
2. Request location permission, and ignore the prompt (but do not dismiss it)
3. Type google.com in the omnibox and press enter (with the prompt still showing)

Observe that the "Secure" security chip remains in the active state, and stays in the active state for all subsequent navigations to HTTPS pages until you get another permission request prompt.

A related bug is as follows:

1. Visit https://permission.site
2. Request location permission, and ignore the prompt (but do not dismiss it)
3. Open a new tab by clicking on the button in the tab strip, or switch to another open tab
4. Switch back to the permission.site tab

Observe that the security chip no longer carries the active state it had when first requesting the permission.

Screenshots attached. I've started poking around to work out how to fix this - spqchan, if you have quick advice that would be appreciated.
 
Screen Shot 2017-02-21 at 17.00.12.png
93.0 KB View Download
Screen Shot 2017-02-21 at 17.00.23.png
54.5 KB View Download
Description: Show this description
Cc: -spqc...@chromium.org
Owner: spqc...@chromium.org
This is most likely caused by the bubble not updating the decoration properly when it's dismissed by the navigation. I'll look into this

Comment 4 by shrike@chromium.org, Feb 25 2017

Labels: -Pri-3 M-58 Pri-1
I can't repro with the repro steps, but these work for me:

1. Go to permission.site
2. Click Camera to get prompt (but don't touch it)
3. Click Notifications
4. Click in omnibox and type www.apple.com, press Return
5. Cmd-[ to go back - prompt won't be visible but Secure will be highlighted

If the fixes are not involved, we should aim for M-58

Possibly related to https://bugs.chromium.org/p/chromium/issues/detail?id=695971

+1, M58 would be great if possible Sarah, thanks!

Comment 6 by t...@tobireif.com, Feb 27 2017

These might be related, I hope they can get fixed as well:

(On Mac), right-click on "🔒 Secure", move the pointer away, esc → the "🔒 Secure" field stays gray.

(On Mac), drag the "🔒 Secure" into a bookmark folder (inside the "Bookmarks Bar" folder) that appears on hover ">>" → the "🔒 Secure" field stays gray.

Status: Started (was: Available)
Components: -UI>Browser>Omnibox>SecurityIndicators UI>Browser>Omnibox>SecurityIndicators>VerboseChip
Labels: Merge-Request-58
Thanks for looking at this!
Project Member

Comment 12 by sheriffbot@chromium.org, Mar 17 2017

Labels: -Merge-Request-58 Hotlist-Merge-Approved Merge-Approved-58
Your change meets the bar and is auto-approved for M58. Please go ahead and merge the CL to branch 3029 manually. Please contact milestone owner if you have questions.
Owners: amineer@(Android), cmasso@(iOS), bhthompson@(ChromeOS), govind@(Desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Your change is approved for M58. Please merge ASAP so that it will be picked up for next Beta Release, RC cut on (Monday-03/20) at 5.00 PM PST.
Labels: TE-Verified-M59 TE-verified-59.0.3046.0
Verified the fix on Mac 10.12.3 using latest canary #59.0.3046.0 as per the comment #0.

Observed that "Secure" security chip did not remain in active state after typing google.com in the omnibox and pressing enter.

Hence, the fix is working as expected.

Attaching the screencast for reference

Adding the verified labels.

Thanks...!!
Attaching the screencast

694396.mp4
1.9 MB View Download
Project Member

Comment 16 by bugdroid1@chromium.org, Mar 20 2017

Labels: -merge-approved-58 merge-merged-3029
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/dcbb8a3ca037cb79a60ac1b56e661f900d72c872

commit dcbb8a3ca037cb79a60ac1b56e661f900d72c872
Author: spqchan <spqchan@chromium.org>
Date: Mon Mar 20 21:43:21 2017

[Mac] Fix for the security chip

There was a race condition with the Page Info icon where it might switch
between LocationIconDecoration and SecurityStateBubbleDecoration

BUG= 694396 

Review-Url: https://codereview.chromium.org/2752623003
Cr-Commit-Position: refs/heads/master@{#457521}
(cherry picked from commit 4cf8e7e6215f686f727736826109303c3b115eec)

Review-Url: https://codereview.chromium.org/2761903002 .
Cr-Commit-Position: refs/branch-heads/3029@{#312}
Cr-Branched-From: 939b32ee5ba05c396eef3fd992822fcca9a2e262-refs/heads/master@{#454471}

[modify] https://crrev.com/dcbb8a3ca037cb79a60ac1b56e661f900d72c872/chrome/browser/ui/cocoa/website_settings/permission_bubble_controller.h
[modify] https://crrev.com/dcbb8a3ca037cb79a60ac1b56e661f900d72c872/chrome/browser/ui/cocoa/website_settings/permission_bubble_controller.mm
[modify] https://crrev.com/dcbb8a3ca037cb79a60ac1b56e661f900d72c872/chrome/browser/ui/cocoa/website_settings/permission_bubble_controller_unittest.mm

Status: Fixed (was: Started)
Labels: TE-Verified-M58 TE-Verified-58.0.3029.33
Verified the fix on Mac 10.12.3 using latest beta #58.0.3029.33 as per the comment #0.

Observed that "Secure" security chip did not remain in active state after typing google.com in the omnibox and pressing enter.

Hence, the fix is working as expected.

Attaching the screencast for reference

Adding the verified labels.

Thanks...!!
694396.mp4
594 KB View Download

Sign in to add a comment