You can download videos using
sudo apt-get install youtube-dl
Then watch the videos using VLC.
That provides more privacy but security wise I doubt anyone can comment on that. It’s like asking which code is more easily exploited, the firefox or vlc video parsing code.