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

Issue 606630 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
OOO until 4th Feb
Closed: Jul 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

Can't request media permissions after navigation with active media permission prompt

Reported by chromium...@gmail.com, Apr 26 2016

Issue description

Version : 52.0.2715.0 canary
OS      : Windows 7

1. Visite https://permission.site
2. Click on Video and Audio (don't allow or block them)
3. Now go to the omnibox and navigate to any website "abc.xyz"

The The permission request bubble should not be displayed again.
 
result.png
38.2 KB View Download
Cc: ashej...@chromium.org
Labels: Needs-Feedback OS-Windows
Thanks for the report and the screenshot. I am unable to reproduce the above issue on Windows (10 & 7) with chrome version '52.0.2717.0', followed the steps provided & permission request bubble was not seen on abc.xyz.

I would request you to please try the above issue on Latest canary 52.0.2717.0 and let us know if the issue still persists.

I really appreciate your help.

Thank you!
You're welcome! yeah I'm still able to reproduce this on M52.0.2717.0 - Watch please the video.
Recording#Bubble.mp4
341 KB Download
Project Member

Comment 3 by sheriffbot@chromium.org, Apr 27 2016

Labels: -Needs-Feedback Needs-Review
Owner: ashej...@chromium.org
Thank you for providing more feedback. Adding requester "ashejole@chromium.org" for another review and adding "Needs-Review" label for tracking.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: -Needs-Review Needs-Feedback
Unable to reproduce the issue on Win7/64 bit - Version 52.0.2718.0 canary (64-bit)

Steps Followed:
1. Navigate to apprtc.appspot.com which shows the permission bubble asking to Allow or Block.
2. Did not select anything.
3. Navigated to abc.xyz.

Permission bubble is not seen again on abc.xyz upon being navigated to.

chromium.khalil@, can you please upgrade to the latest build available and check if you still see this issue ?
Components: UI>Browser>Bubbles

Comment 6 Deleted

Actually you don't have to use pprtc.appspot.com which shows the permission bubble asking to Allow or Block for Audio + Video in the same request, and that's why you're not able to reproduce. As I said in my steps in "#0 comment" you should to request Video then Audio (not Audio + Video) means you will get two permission bubbles.

I've created a testcase (don't select anything):

<script>
navigator.webkitGetUserMedia({video: true}, function(){}, function(){});
navigator.webkitGetUserMedia({audio: true}, function(){}, function(){});
setTimeout('document.location = "https://abc.xyz";', 1000)
</script>  
testcase.html
227 bytes View Download
Project Member

Comment 8 by sheriffbot@chromium.org, Apr 28 2016

Labels: -Needs-Feedback Needs-Review
Thank you for providing more feedback. Adding "Needs-Review" label for tracking.

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

Comment 10 by sheriffbot@chromium.org, Jun 27 2017

Status: Archived (was: Unconfirmed)
Issue has not been modified or commented on in the last 365 days, please re-open or file a new bug if this is still an issue.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Cc: raymes@chromium.org
Labels: -Pri-3 M-61 Pri-2
Owner: timloh@chromium.org
Status: Available (was: Archived)
This is a real issue, I just verified it on ChromeOS.
No longer repros on Windows Canary but it's still broken. If you navigate with a media permission prompt active, it seems the tab can't request any further media permissions...
Cc: -raymes@chromium.org timloh@chromium.org
Owner: raymes@chromium.org
Status: Assigned (was: Available)
Summary: Can't request media permissions after navigation with active media permission prompt (was: The permission request bubble of video and audio displays again after navigation to another origin)
(re-titling as per comment #12)
Project Member

Comment 14 by bugdroid1@chromium.org, Jul 6 2017

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

commit 158a8c15d0f9aa1162c6a4583047b3a8c50046d6
Author: raymes <raymes@chromium.org>
Date: Thu Jul 06 02:52:59 2017

Ensure media permission requests are correctly cancelled when permission prompts are ignored

Currently when permission prompts are ignored, the PermissionManager
will still hold on to the callback that was passed in to
RequestPermission. |pending_requests_| is not cleaned up. This means
that the callers have no way of knowing if a request was ignored. This
CL changes the code so that |pending_requests_| is correctly cleaned up
when a prompt is ignored. This makes media permission prompts behave
correctly.

BUG= 606630 

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

[modify] https://crrev.com/158a8c15d0f9aa1162c6a4583047b3a8c50046d6/chrome/browser/media/webrtc/media_stream_device_permission_context.cc
[modify] https://crrev.com/158a8c15d0f9aa1162c6a4583047b3a8c50046d6/chrome/browser/media/webrtc/media_stream_device_permission_context.h
[modify] https://crrev.com/158a8c15d0f9aa1162c6a4583047b3a8c50046d6/chrome/browser/permissions/permission_manager.cc
[modify] https://crrev.com/158a8c15d0f9aa1162c6a4583047b3a8c50046d6/chrome/browser/permissions/permission_manager.h
[modify] https://crrev.com/158a8c15d0f9aa1162c6a4583047b3a8c50046d6/chrome/browser/permissions/permission_manager_unittest.cc

Status: Fixed (was: Assigned)

Sign in to add a comment