Page 1 of 1

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

Posted: Fri Dec 31, 2021 6:01 am
by Harest
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

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

Posted: Fri Dec 31, 2021 1:15 pm
by barbaz
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

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

Posted: Fri Dec 31, 2021 5:30 pm
by Harest
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.