Giving camera permission with Remember this decision ticked to a local .html file will automatically give this permission to another .html file (in the same tab)
Categories
(Firefox :: Site Permissions, defect)
Tracking
()
People
(Reporter: duckhiem, Unassigned)
References
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36
Steps to reproduce:
(I think this is a bypassing of the fixing at https://bugzilla.mozilla.org/show_bug.cgi?id=1811181.)
On macOS Ventura 13.1 and Firefox Nightly 112.0a1 (2023-02-15) (64-bit):
Create two local .html files with different names and the same source code:
<div id="container">
<video id="gum-local" autoplay playsinline></video>
<button id="showVideo">Open camera</button>
</div>
<script src="https://webrtc.github.io/samples/src/content/getusermedia/gum/js/main.js"></script>
Load the first file, click Open camera, tick Remember this decision and allow the camera permission.
In the same tab, change the path to the second file, click Open camera, the camera permission is automatically granted to the second file.
Actual results:
In the same tab, change the path to the second file, click Open camera, the camera permission is automatically granted to the second file.
Expected results:
Remember this decision is used for the current file or for the current files and all the next files?
Updated•3 years ago
|
Comment 1•3 years ago
|
||
I can't reproduce this issue in Nightly. Even if I use the checkbox to remember the choice there is a new prompt for the second file. The permission is only set for the first file. Could you please test this again with an up-to-date Nightly, perhaps you tested it with a Nightly version without the patch from Bug 1811181?
Comment 2•3 years ago
|
||
Marking this as incomplete as we couldn't reproduce and didn't get a response from the reporter - we can reopen if more details show that there is still something wrong here.
Updated•3 years ago
|
Updated•2 years ago
|
Description
•