Remix.run Logo
xnx 2 days ago

I'm increasingly suspicious that Java applets were removed from the browser so it wouldn't be easy for non-nerds to easily run tools like yt-dlp from their browser.

apfsx 2 days ago | parent | next [-]

How about like 10-15 years ago when everybody and their mother could spin up a RAT and do drive-by installations with a webpage?

hnlmorg 2 days ago | parent | prev | next [-]

YouTube wasn’t even around when Java applets were a thing.

Also back then anything multimedia was also served via a plugin. Multimedia in the Java applet era was either streaming via Real Player, or later, via Flash.

xnx 2 days ago | parent [-]

Right. I'm saying that Java Applets could've put too much control into the hands of the user, so they had to be removed in 2015.

hnlmorg 2 days ago | parent [-]

Java Applets had fallen out of fashion long before then. Like a decade earlier. The only reason browsers and JRE continued to support it was because of enterprise middleware like Oracle. But for home users applets had long since been replaced by Flash.

The reason applets were unfashionable had nothing to do with control. It was because:

1. They were hard to support: there was different Java runtimes (thanks to Microsoft creating an incompatible version of Java, which eventually lead to them inventing .NET). But even with Sun Java, there are different versions of JRE and no way to guarantee a particular browser had the right version of JRE installed.

2. Insecure. I really don’t miss the days of drive by download exploits

3. Too much effort to program for. When you had Flash with its mostly drag and drop interface, why would most people want to learn Java?

4. HTML5 eventually became a thing. Meaning you didn’t even need Flash let alone Java.

5. Applets were never ported to mobile devices. Which is ironic given Java runs on a plethora of niche hardware from some types of optical storage through to Android itself. However applets themselves were strictly limited to desktop browsers. A limitation even Flash didn’t have.

Java applets were removed because it was a technological dead end. Users hated it, security teams hated it, Windows administrators hated it, and web developers didn’t even use it.

I can’t remember exactly when I fell out of love with applets but I have a feeling it was before even the 00s.

And as for your point about control, you could still do everything you described without the need for applets. It was really easy to rip streams back then (just as it still is easy now).

01HNNWZ0MV43FF 2 days ago | parent | prev [-]

I would think the big factor for running yt-dlp in a browser would be CORS, not the language used to implement the downloader?

xnx 2 days ago | parent [-]

Yes, and other limitations of network access that Java applets did not have.

duskwuff 2 days ago | parent [-]

Java had restrictions on cross-domain access just like Javascript does and Flash did.

Users could grant applets additional permissions - but that also granted them local permissions (like reading files) which were unambiguously a security risk.