11.2.12rc4+ - Opening a mp4 file = videoElement is undefined (chrome://global/content/TopLevelVideoDocument.js:21)

Bug reports and enhancement requests
Post Reply
User avatar
Harest
Posts: 2
Joined: Fri Dec 31, 2021 5:48 am

11.2.12rc4+ - Opening a mp4 file = videoElement is undefined (chrome://global/content/TopLevelVideoDocument.js:21)

Post by Harest » Fri Dec 31, 2021 6:01 am

Hi,

I initially posted the issue on the Firefox support forum, but i found the issue was from NoScript so here am i.

The issue: Opening a video file that can be played in the browser, like a mp4 file is triggering a JavaScript error, only with NoScript installed. I'm allowing medias by default. It only started with the latest version, v11.2.14 (2021-12-30). The video will play normally, there's just this error i'll put below. The error is triggered multiple times, it doesn't stop from what i saw.

The error:

Code: Select all

   05:05:35,632 Uncaught TypeError: videoElement is undefined
       setFocusToVideoElement chrome://global/content/TopLevelVideoDocument.js:21
       <anonymous> chrome://global/content/TopLevelVideoDocument.js:29
   TopLevelVideoDocument.js:21:5  
Here are some video samples if you need, and a direct mp4 link too as i saw the site without any extension and i'd rather let you avoid that.

I'm using the latest Firefox version 95.0.2 on W10.
Edit: As a goal to have all the important info in the OP, cf. @Barbaz:
This error does not occur in 11.2.12rc3 but does occur starting with 11.2.12rc4
Last edited by Harest on Fri Dec 31, 2021 5:34 pm, edited 2 times in total.
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0

barbaz
Senior Member
Posts: 10401
Joined: Sat Aug 03, 2013 5:45 pm

Re: 11.2.14 - Opening a mp4 file = videoElement is undefined (chrome://global/content/TopLevelVideoDocument.js:21)

Post by barbaz » Fri Dec 31, 2021 1:15 pm

I get a different error -

Code: Select all

TypeError: can't access property "focus", videoElement is undefined  TopLevelVideoDocument.js:21:5
    setFocusToVideoElement chrome://global/content/TopLevelVideoDocument.js:21
It doesn't seem to affect anything here, is your error breaking something?

EDIT
This error does not occur in 11.2.12rc3 but does occur starting with 11.2.12rc4
*Always* check the changelogs BEFORE updating that important software!
-

User avatar
Harest
Posts: 2
Joined: Fri Dec 31, 2021 5:48 am

Re: 11.2.14 - Opening a mp4 file = videoElement is undefined (chrome://global/content/TopLevelVideoDocument.js:21)

Post by Harest » Fri Dec 31, 2021 5:30 pm

I didn't say it here while i talked about it a bit in the thread on Firefox forum (because that's what let me see the issue in the first place): It breaks a GreaseMonkey script i've to bypass having to enable some JavaScript to see videos. A script that auto-redirect to the video file and set some custom settings on the video element. The error prevents my script execution.

So that's a low priority for sure, it probably doesn't affect a lot of users, if any excluding me.
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0

Post Reply