Closed Bug 1817121 Opened 3 years ago Closed 3 years ago

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)

Firefox 112
defect

Tracking

()

RESOLVED INCOMPLETE

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?

Component: Untriaged → Site Permissions
See Also: → 1817116

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?

Flags: needinfo?(duckhiem)

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.

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → INCOMPLETE
Group: firefox-core-security
Flags: needinfo?(duckhiem)
You need to log in before you can comment on or make changes to this bug.