New issue
Advanced search Search tips

Issue 605374 link

Starred by 4 users

Issue metadata

Status: Fixed
Owner:
Closed: Feb 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug

Blocking:
issue 603373


Participants' hotlists:
MacViews-Task-Queue


Sign in to add a comment

MacViews: PageAction bubbles aren't dismissed when their tab closes via keyboard command

Project Member Reported by tapted@chromium.org, Apr 21 2016

Issue description

Chrome Version       : 52.0.2713.0
OS Version: OS X 10.11.4

What steps will reproduce the problem?
0. Have 2 tabs
1. Open https://permission.site/ in one tab, click Audio+Video, deny
2. Click PageAction icon that appears to the left of the bookmark star
3. Press Cmd+w to close the tab

What is the expected result?

Tab should close, bubble should dismiss

What happens instead of that?

Tab closes, bubble sticks around.


Please provide any additional information below. Attach a screenshot if
possible.

UserAgentString: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2713.0 Safari/537.36



 

Comment 1 by tapted@chromium.org, Apr 21 2016

context screenshot
Screen Shot 2016-04-21 at 11.29.46 AM.png
36.0 KB View Download
Project Member

Comment 2 by sheriffbot@chromium.org, Jul 13 2016

Labels: -M-53 M-54 MovedFrom-53
Moving this nonessential bug to the next milestone.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
The behavior seems to have changed. Instead now when a MacViews bubble is active, pressing Cmd+W does not close the tab, which is not in line with Cocoa. The behavior can also be seen on the current Stable. Running a bisect gave this CL as the cause - https://codereview.chromium.org/1955343002. Reverting it fixes the closing of the tab via Cmd+W, but brings back the above issue.  
Status: WontFix (was: Available)
So I don't think this is a bug. The closest thing to our bubbles is NSPopover. In Safari, if I right-click a bookmark in the sidebar and say 'Edit Address...', keys like Cmd+w will go to the popover -- not the parent window.

But on Mac, dialogs are not dismissed by Cmd+w, so having a dialog like this with a button ignore Cmd+w seems like the right thing to do.

I think it's an accident/bug that Cmd+w would close the tab. It would have been a result of the behaviour around the private API `-_sharesParentKeyState` that we never fully understood.

Comment 5 by tapted@chromium.org, Dec 12 2016

 Issue 612067  has been merged into this issue.
Labels: -Pri-1 -M-54 M-58 Pri-2
Owner: tapted@chromium.org
Status: Assigned (was: WontFix)
Reopening this, since the CL in https://codereview.chromium.org/2666523002/ probably changes things around this.
Labels: -M-58 -MovedFrom-53 M-64 MacViews-Dialogs
macviews triage: This bug is still live and still needs to be fixed before Harmony launches.

tapted: what's our status here?

Comment 8 by tapted@chromium.org, Oct 12 2017

we should fix this
Cc: tapted@chromium.org ellyjo...@chromium.org
Owner: sdy@chromium.org
Load balancing! Over to sdy@ :)
(note the fix will likely be similar to r526878 -- i.e. ContentSettingBubbleContents is already a WebContentsObserver, it just needs to observe WasHidden and GetWidget()->Close() itself .. technically the bubble on Windows have this problem too, but it's hard to switch tabs while the bubble is open since keyboard shortcuts are blocked [which is a separate bug - they shouldn't be blocked - that's Issue 319109])
Cc: -ellyjo...@chromium.org sdy@chromium.org
Owner: ellyjo...@chromium.org
Status: Started (was: Assigned)
Yoink :)
Note there's also  Issue 780131  - if that cl fixes both, it can probably be deduped into this bug.
Project Member

Comment 14 by bugdroid1@chromium.org, Feb 13 2018

Status: Fixed (was: Started)

Sign in to add a comment