58
you are viewing a single comment's thread
view the rest of the comments
[-] refalo@programming.dev 8 points 3 weeks ago
[-] lemmyvore@feddit.nl 4 points 3 weeks ago

I'm still trying to understand what "proprietary JavaScript" means.

[-] possiblylinux127@lemmy.zip 6 points 3 weeks ago* (last edited 3 weeks ago)

JavaScript that's under a proprietary license (code that doesn't give you the 4 freedoms)

[-] lemmyvore@feddit.nl 1 points 3 weeks ago

What I don't understand is how they can tell. There's no mechanism (that I'm aware of) for signalling the licensing of deployed (minified!) JS code. The development code has licensing and versioning and so on but none of that makes it into production. As far as the client is concerned it's all proprietary.

[-] possiblylinux127@lemmy.zip 2 points 3 weeks ago

Technically that is what LibreJS is for. However, beyond LibreJS you can look at the code and see if it is similar to existing JavaScript frontends or libraries.

It is a imperfect solution but it is better than just arbitrarily running programs in your browser or disabling JavaScript completely.

[-] refalo@programming.dev 1 points 3 weeks ago* (last edited 3 weeks ago)

Apparently it's (by default) everything that doesn't explicitly specify a license (especially a FOSS one) within the javascript code of the page, which is a ridiculously huge portion of JS on the internet.

What if they did this with HTML too? :p

[-] tarix29@lemmy.world 1 points 3 weeks ago

It doesn't apply to HTML because HTML is fundamentally not code that runs, but rather a markup. It's just like how licensing a book under the GPL would be weird and unnatural, because it represents someone's words. JS is code that runs on your computer, just like any other program

[-] refalo@programming.dev -1 points 3 weeks ago

where is the line drawn though, and who gets to decide?

MANY people say "html code" even if you consider that wrong.

Is a shell script or python "code"? Because it doesn't directly translate to machine code?

See what I'm getting at?

[-] tarix29@lemmy.world 1 points 3 weeks ago* (last edited 3 weeks ago)

There is definitely a grey area, but HTML is pretty far away from it. HTML doesn't "execute" and is very far from Turing completeness. You cannot write programs in it, and that is the key. Pure HTML is very much on the side of "rendering text" and not "running software." Once we start talking about things like LaTex though, the line gets a lot harder to see. Note that whether HTML is "code" is irrelevant. The point is that whether it's "code" or not, it is never a program.

Edit: typo in "grey"

[-] fossphi@lemm.ee 1 points 3 weeks ago

Shell and python scripts are also code which is executed. HTML (at least back in the day) wasn't really a network shipped executable, but more like markdown file which is just parsed and rendered

[-] Murdoc@sh.itjust.works 0 points 3 weeks ago

This feels a bit like the debate over whether a virus is "alive" or not. "But the virus/HTML has DNA/code." "But it requires another cell/web browser in order to replicate/execute." etc. 😄

[-] fossphi@lemm.ee 1 points 3 weeks ago

I really don't think so.

For the sake of simplicity, let's go back to the time when websites were not full of JS and other modern web stuff

You could in principle just wget the html file from a server and parse/render it without having to run that file. Like I said, it is like a simple markdown file.

In terms of modern web, a crude analogy would be to look at the output from static site generators. In those, the server essentially doesn't execute code, hence a lot of cloud providers can host your static sites for free

[-] jack@monero.town 1 points 3 weeks ago* (last edited 3 weeks ago)

I agree. Html could also be compared to a config file. Only parsed; it doesn't provide new instructions (unlike python etc)

[-] lemmyreader@lemmy.ml 1 points 3 weeks ago

Apparently it’s (by default) everything that doesn’t explicitly specify a license (especially a FOSS one) within the javascript code of the page, which is a ridiculously huge portion of JS on the internet.

It is never to late to start something and make people aware of problems and as far as I am concerned not only about software licenses but JavaScript as a security problem.

this post was submitted on 06 May 2024
58 points (100.0% liked)

Privacy

29356 readers
396 users here now

A place to discuss privacy and freedom in the digital world.

Privacy has become a very important issue in modern society, with companies and governments constantly abusing their power, more and more people are waking up to the importance of digital privacy.

In this community everyone is welcome to post links and discuss topics related to privacy.

Some Rules

Related communities

Chat rooms

much thanks to @gary_host_laptop for the logo design :)

founded 4 years ago
MODERATORS