Closed
Bug 1698000
Opened 4 years ago
Closed 4 years ago
Grace periods should disappear on block, not when blocks are cleared.
Categories
(Firefox :: Site Permissions, defect, P1)
Tracking
()
RESOLVED
FIXED
88 Branch
Tracking | Status | |
---|---|---|
firefox88 | --- | fixed |
People
(Reporter: jib, Assigned: pbz)
References
(Blocks 1 open bug)
Details
(Whiteboard: [proton-door-hangers])
Attachments
(2 files)
+++ This bug was initially created as a clone of Bug #1693621 +++
(I'm filing this as a follow-up to bug 1693621 so the latter can land.)
STRs:
- Open https://mozilla.github.io/webrtc-landing/enumerate.html in a new tab
- Click
Start Cam!
and Allow in prompt - Click
Stop!
- Click
Start Both!
and Don't Allow in prompt - Refresh the page with ↻
- Click
Start Cam!
Expected result: prompt
Actual result: camera turns on
Reasoning:
- The purpose of blocks is to block future getUserMedia calls, so having grace periods co-exist with them is confusing.
- The fact that blocks can be lifted by ↻ while grace periods can't doesn't change user intent when enacting (as opposed to lifting) them.
Known corner-case:
- Due to bug 1695757, there's a corner case with device switching, where a site may have an active camera, while at the same time be blocked from calling
getUserMedia
again. I don't think I care terribly about whether there's a grace period or not when that active camera stops capturing, as I'd rather we fix bug 1695757 to avoid that user trap.
Proposal:
- Don't store opposing intents. If we clear all grace periods at the point a block is enacted, I think that should do the right thing.
Found by written test, which I'll add to this bug.
Updated•4 years ago
|
See Also: → https://jira.mozilla.com/browse/FIDEFE-503
Reporter | ||
Comment 1•4 years ago
|
||
Depends on D107948
Assignee | ||
Comment 2•4 years ago
•
|
||
partly-obsolete |
(obsolete)
Assignee: nobody → pbz
Status: NEW → ASSIGNED
Assignee | ||
Comment 3•4 years ago
|
||
Updated•4 years ago
|
Attachment #9208600 -
Attachment description: Bug 1698000 - Test that permission grace periods are cleared by blocks. → Bug 1698000 - Test that permission grace periods are cleared by blocks. r=johannh!
Pushed by pzuhlcke@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4c4a84ba40a5
Test that permission grace periods are cleared by blocks. r=jib,johannh
https://hg.mozilla.org/integration/autoland/rev/bd76766e6018
Clear grace periods when user denies WebRTC permission prompt. r=johannh,jib
Comment 5•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/4c4a84ba40a5
https://hg.mozilla.org/mozilla-central/rev/bd76766e6018
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
status-firefox88:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 88 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•