Open Bug 1478024 Opened 3 years ago Updated 2 years ago

Error in Browser Console after granting temporary autoplay permission to websites

Categories

(Firefox :: Site Permissions, defect, P3)

63 Branch
defect

Tracking

()

Tracking Status
firefox63 --- affected

People

(Reporter: gpalko, Unassigned)

Details

[Environment:]
Windows 10, Mac OSX 10.13
Nightly 63.0a1 BuildId 20180724100052

[Steps:]
1. Open the Browser Console
2. Open any site triggering the block autoplay doorhanger (e.g. www.arcticmonkeys.com/
3. Uncheck "Remember this decision" and click Allow

[Actual Result:]
 The following error is displayed in console:

[Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIContentPermissionRequest.element]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: resource:///modules/PermissionUI.jsm :: get browser :: line 409"  data: no]

NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIContentPermissionRequest.element] at PermissionUI.jsm:409

[Expected Result:]
No error should be logged after granting permissions to websites
Chris, do you know which code is causing the error message in the description?
Rank: 15
Flags: needinfo?(cpearce)
Priority: -- → P2
I believe this is benign. I looked into this a while back and IIRC the front end code has multiple code paths that lead to reporting a permission request response to Gecko, those code paths touch nsIContentPermissionRequest.element, and after the first response is reported the connection between the front end and Gecko is severed [1], leading to this error being reported [2] upon responses after than the first.

[1] https://searchfox.org/mozilla-central/rev/bdfd20ef30d521b57d5b6feeda71325e8b4cad66/dom/base/nsContentPermissionHelper.cpp#686
[2] https://searchfox.org/mozilla-central/rev/bdfd20ef30d521b57d5b6feeda71325e8b4cad66/dom/base/nsContentPermissionHelper.cpp#651
Blocks: block-autoplay-frontend
No longer blocks: block-autoplay
Component: Audio/Video: Playback → Site Identity and Permission Panels
Flags: needinfo?(cpearce)
Product: Core → Firefox
Priority: P2 → P3
Component: Site Identity → Site Permissions
You need to log in before you can comment on or make changes to this bug.