Open Bug 1478024 Opened 3 years ago Updated 2 years ago
Error in Browser Console after granting temporary autoplay permission to websites
[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?
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 , leading to this error being reported  upon responses after than the first.  https://searchfox.org/mozilla-central/rev/bdfd20ef30d521b57d5b6feeda71325e8b4cad66/dom/base/nsContentPermissionHelper.cpp#686  https://searchfox.org/mozilla-central/rev/bdfd20ef30d521b57d5b6feeda71325e8b4cad66/dom/base/nsContentPermissionHelper.cpp#651
You need to log in before you can comment on or make changes to this bug.