Page 1 of 1

Youtube HTML5 video causes page refresh

Posted: Thu Jul 24, 2014 8:41 am
by Lurion
I've searched the forum a bit, but couldn't find anything related. Perhaps I was using the wrong keywords?

Anyway, I'm having a strange issue on youtube and other websites that link youtube videos. I don't have Flash installed on my Firefox, so youtube brings up the HTML5 video instead. I've configured NoScript Embeddings to apply restrictions to whitelisted sites, and I blocked elements like <video>. The youtube.com and ytimg.com are both allowed, but basically I also did "Temporarily allow all this page" during the test. The video element gets blocked properly on youtube as I can see the yellowish placeholder with an orange film icon in the center and the noscript icon on the top left.

The problem is when I click the element to unblock/allow it, the entire page will refresh instead, and the element will once again be blocked.

Re: Youtube HTML5 video causes page refresh

Posted: Thu Jul 24, 2014 9:41 am
by Giorgio Maone
Test URL?

Re: Youtube HTML5 video causes page refresh

Posted: Thu Jul 24, 2014 9:55 am
by Lurion
Basically any youtube video will do. Like this one: https://www.youtube.com/watch?v=9bZkp7q19f0
Videos on sites that link to youtube also don't work: https://robertsspaceindustries.com/comm ... Episode-30

If I go to the Noscript menu => Blocked Objects => Temporarily allow video/ogg@https://something.googlevideo.com (this is the last option at the bottom of the list) then it will work normally. You think this is caused by a clash with another addon?

EDIT: Nope. I've just created a new FF profile, installed only NoScript, and the same thing happens.

Re: Youtube HTML5 video causes page refresh

Posted: Thu Jul 24, 2014 10:34 am
by therube
Already discussed in this thread, viewtopic.php?f=7&t=19903.

Re: Youtube HTML5 video causes page refresh

Posted: Thu Jul 24, 2014 10:52 am
by Lurion
Thank you, that explains it.

So it's a website problem then. Do you think something like this can be fixed with a surrogate script? Or am I'm just better off adding the googlevideo.com to the whitelist? I can't find any menu options to permanently allow certain embedding on a given website. Am I missing something or do I have to manually edit the noscript.allowedMimeRegExp string?

Re: Youtube HTML5 video causes page refresh

Posted: Thu Jul 24, 2014 4:40 pm
by barbaz
Lurion wrote:Thank you, that explains it.

So it's a website problem then. Do you think something like this can be fixed with a surrogate script? Or am I'm just better off adding the googlevideo.com to the whitelist? I can't find any menu options to permanently allow certain embedding on a given website. Am I missing something or do I have to manually edit the noscript.allowedMimeRegExp string?
No, you can't fix it with a surrogate script, and it sounds like you're not missing anything.

Your best option is allowing googlevideo.com because its JS actually seems needed if you enable Media Source Extensions. If you Apply Embeddings restrictions to whitelisted sites too, then you would need to edit allowedMimeRegExp manually (there is no GUI for it) as well.

Interesting browser / OS you've got there BTW :D

Re: Youtube HTML5 video causes page refresh

Posted: Thu Jul 24, 2014 9:28 pm
by Lurion
Thank you for confirming it.

I added the video/ogg@https?://.*\.googlevideo.com exception to the noscript.allowedMimeRegExp, and it seems to work fine. The videos start playing automatically, but I can live with this for now. And yes, I apply restrictions to embeddings on whitelisted pages because I have to allow javascript on certain websites, but I do not wish to permit the embeddings to load. Sounds like a whitelist for embeddings is an important option IMO. May I ask why was such an option not included in the noscript gui/menus and is instead hidden in the about:config?

Regards!

Re: Youtube HTML5 video causes page refresh

Posted: Mon Jul 28, 2014 11:46 am
by Thrawn
Lurion wrote:May I ask why was such an option not included in the noscript gui/menus and is instead hidden in the about:config?
I would suggest that reason #1 is because it's probably not a good idea for anyone to try editing it without coming here and reading up on it first; and #2 is because Giorgio's development time is limited.