Youtube HTML5 video causes page refresh

Ask for help about NoScript, no registration needed to post
Lurion
Junior Member
Posts: 36
Joined: Wed Jul 23, 2014 12:38 pm

Youtube HTML5 video causes page refresh

Post 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.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0
User avatar
Giorgio Maone
Site Admin
Posts: 9546
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Youtube HTML5 video causes page refresh

Post by Giorgio Maone »

Test URL?
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0
Lurion
Junior Member
Posts: 36
Joined: Wed Jul 23, 2014 12:38 pm

Re: Youtube HTML5 video causes page refresh

Post 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.
Its time to kick ass and chew bubble gum, and Im all out of gum.
User avatar
therube
Ambassador
Posts: 7980
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Youtube HTML5 video causes page refresh

Post by therube »

Already discussed in this thread, viewtopic.php?f=7&t=19903.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0 SeaMonkey/2.26.1
Lurion
Junior Member
Posts: 36
Joined: Wed Jul 23, 2014 12:38 pm

Re: Youtube HTML5 video causes page refresh

Post 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?
Its time to kick ass and chew bubble gum, and Im all out of gum.
barbaz
Senior Member
Posts: 11144
Joined: Sat Aug 03, 2013 5:45 pm

Re: Youtube HTML5 video causes page refresh

Post 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
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; Linux i686; rv:34.0) Gecko/20100101 Firefox/34.0 SeaMonkey/2.30a1
Lurion
Junior Member
Posts: 36
Joined: Wed Jul 23, 2014 12:38 pm

Re: Youtube HTML5 video causes page refresh

Post 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!
Its time to kick ass and chew bubble gum, and Im all out of gum.
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: Youtube HTML5 video causes page refresh

Post 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.
======
Thrawn
------------
Religion is not the opium of the masses. Daily life is the opium of the masses.

True religion, which dares to acknowledge death and challenge the way we live, is an attempt to wake up.
Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:31.0) Gecko/20100101 Firefox/31.0
Post Reply