Open Bug 1478024 Opened 3 years ago Updated 2 years ago

Error in Browser Console after granting temporary autoplay permission to websites


(Firefox :: Site Permissions, defect, P3)

63 Branch



Tracking Status
firefox63 --- affected


(Reporter: gpalko, Unassigned)


Windows 10, Mac OSX 10.13
Nightly 63.0a1 BuildId 20180724100052

1. Open the Browser Console
2. Open any site triggering the block autoplay doorhanger (e.g.
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.

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.