News for hackers. Stuff that matters.
Re:Firefox 66.0 Aims to Reduce Online Annoyances by anoncake on Tuesday March 19, 2019 @12:43PM (#19432550)
We cant ban just the bad Javascript, a browser cannot distinguish it from the good. And overall, Javascript does more harm than good.
Re:Firefox 66.0 Aims to Reduce Online Annoyances by tehlike on Tuesday March 19, 2019 @12:51PM (#19432646)
Citation needed. I dont believe gmail would be as useful eithout javascript, docs wouldnt really be possible, i dont think i could video chat with my family without extensions, and so on.

Installing apps is really not aomething i want. I am trying to keep apps on my phone low for a reason, browser is actually perfect for most of what i do.

Re:Firefox 66.0 Aims to Reduce Online Annoyances by anoncake on Tuesday March 19, 2019 @12:52PM (#19432659)
Email clients, word processors and video chat would be very much possible without Javascript.
Re:Firefox 66.0 Aims to Reduce Online Annoyances by ceejayoz on Tuesday March 19, 2019 @12:56PM (#19432716)
Email clients, sure.

Word processors? Only if you're requiring something like Markdown.

Video chat seems right out, unless you're permitting a Flash solution, which would be severely cheating.

Re:Firefox 66.0 Aims to Reduce Online Annoyances by thatfunkymunki on Tuesday March 19, 2019 @12:58PM (#19432750)
He's not talking about cancerous in-browser webapps. He's talking about actual clients.
Re:Firefox 66.0 Aims to Reduce Online Annoyances by tehlike on Tuesday March 19, 2019 @01:13PM (#19432921)
You mean clients i can hardly update, and most often clunky as well? I dont see the improvement.

I can use web apps on any platform without waiting for the company to do it.

I refuse to install apps on my devices.

Re:Firefox 66.0 Aims to Reduce Online Annoyances by anoncake on Tuesday March 19, 2019 @01:20PM (#19433020)
> You mean clients i can hardly update

Yes! You dont have to update if you dont want to. Thats a feature. Of course, the rise of proprietary APIs over interoperable protocols has lessened that advantage.

Re:Firefox 66.0 Aims to Reduce Online Annoyances by saagarjha on Tuesday March 19, 2019 @01:23PM (#19433049)
> You mean clients i can hardly update, and most often clunky as well? I dont see the improvement.

Is better performance and more features not an improvement to you?

Re:Firefox 66.0 Aims to Reduce Online Annoyances by tehlike on Tuesday March 19, 2019 @01:40PM (#19433275)
What more features? All can be done in javascript, without making users install garbage, without spending extra resources. I prefer companies spend their resources on improving the product instead of implementing same thing thrice.

What most people dont realize is web apps are a boon to linux people. Most companies would not develop for linux at all.

Re:Firefox 66.0 Aims to Reduce Online Annoyances by saagarjha on Tuesday March 19, 2019 @01:54PM (#19433455)
> What more features?

Support for most platform APIs?

> I prefer companies spend their resources on improving the product instead of implementing same thing thrice.

Funny, this is exactly my issue with web apps. I don't want to use software where the engineers have done a poor job reimplementing things the system provides for free.

Re:Firefox 66.0 Aims to Reduce Online Annoyances by tehlike on Tuesday March 19, 2019 @02:32PM (#19433979)
Build the tools to enable them. Dont blame engineers lack of experience on the language. I used libreoffice early on, was not impressed. Same story.
Re:Firefox 66.0 Aims to Reduce Online Annoyances by anoncake on Tuesday March 19, 2019 @12:59PM (#19432753)
> Word processors? Only if you're requiring something like Markdown.

You havent heard of LibreOffice?

Re:Firefox 66.0 Aims to Reduce Online Annoyances by benj111 on Tuesday March 19, 2019 @01:17PM (#19432984)
Everything old is new again.

'offline' apps, 'local' cloud. Its the future!

Re:Firefox 66.0 Aims to Reduce Online Annoyances by tehlike on Tuesday March 19, 2019 @01:44PM (#19433324)
Web apps are boon to linux people. Most companies would not even bother developing for linux first
Re:Firefox 66.0 Aims to Reduce Online Annoyances by benj111 on Tuesday March 19, 2019 @01:53PM (#19433442)
personally I havent found a webapp that I need, or even doesn't just make me think a normal app would be better.

That's not to say I disagree though. The tech world is very good at creating monopolies.

Re:Firefox 66.0 Aims to Reduce Online Annoyances by tehlike on Tuesday March 19, 2019 @01:13PM (#19432930)
Why would i install some hundreds of mbs of apps when i am complaining about javascript.
Re:Firefox 66.0 Aims to Reduce Online Annoyances by benj111 on Tuesday March 19, 2019 @01:25PM (#19433072)
Because you don't have the redownload libreoffice everytime you want to write something?

Theres Ted if you cant stretch to libreoffice though. https://www.nllgg.nl/Ted/

Re:Firefox 66.0 Aims to Reduce Online Annoyances by ceejayoz on Tuesday March 19, 2019 @01:28PM (#19433114)
> You havent heard of LibreOffice?

Don't be disingenuous. The thread's about Firefox and JavaScript. It's quite clear @tehlike wasn't talking about native desktop apps, but web apps.

Re:Firefox 66.0 Aims to Reduce Online Annoyances by anoncake on Tuesday March 19, 2019 @01:32PM (#19433164)
I dont disagree that web apps would not exist if web apps did not exist.
Re:Firefox 66.0 Aims to Reduce Online Annoyances by swebs on Tuesday March 19, 2019 @01:40PM (#19433283)
You can upload and download video streams just fine without any Javascript.
Re:Firefox 66.0 Aims to Reduce Online Annoyances by ceejayoz on Tuesday March 19, 2019 @01:53PM (#19433446)
In a browser? We're on a thread talking about Gmail (a web app) in a thread about Firefox.
Re:Firefox 66.0 Aims to Reduce Online Annoyances by droobles on Tuesday March 19, 2019 @01:09PM (#19432866)
The main Gmail app would not work. There is an html only Gmail and I use it all the time!
Re:Firefox 66.0 Aims to Reduce Online Annoyances by dymk on Tuesday March 19, 2019 @12:50PM (#19432620)
We'll probably just have to agree to disagree re: "JS does more harm than good".

I have at least 5 progressive webapps open right now, none of which could work without javascript. Of the other 20 websites I have open in other tabs, none are being annoying or aggressive, and I'm not even using an adblocker.

Re:Firefox 66.0 Aims to Reduce Online Annoyances by JohnFen on Tuesday March 19, 2019 @01:07PM (#19432844)
Fair enough. Personally, I avoid PWAs entirely due to (in part) security concerns. But I'm also one of those who views client-side scripting as a threat vector, and prevent it when at all possible.
Re:Firefox 66.0 Aims to Reduce Online Annoyances by anoncake on Tuesday March 19, 2019 @12:51PM (#19432644)
They could be proper applications instead.
Re:Firefox 66.0 Aims to Reduce Online Annoyances by geofft on Tuesday March 19, 2019 @12:57PM (#19432735)
Having them be proper applications would be a huge problem for the security and therefore the computing autonomy of the average person. The fact that you don't generally download unsandboxed, unsigned apps from the internets any more (and don't run shrink-wrapped apps from the local CompUSA that are full of C string parsing vulnerabilities, either) is one of the most meaningful accomplishments in computer security in the last decade. If you want to throw it out, you personally can clean up the Bonzi Buddies on every Windows user's computer. The most malicious JavaScript web page still can't install Bonzi Buddy. We've even gotten to an era where most people don't need to install anti-virus, because moving everything to the web has fixed the fundamental problems with desktop OS design that required a quasi-snake-oil, theoretically-untenable approach to maintain a semblance of integrity.

There's another alternative, which is curated and audited app stores à la iOS, but the fact that you can't use applications unless they're approved by a megacorporation would also be bad for people's computing autonomy.

(Also, what makes you think that the developers of bloated JS apps won't make bloated desktop apps?)

Re:Firefox 66.0 Aims to Reduce Online Annoyances by anoncake on Tuesday March 19, 2019 @01:03PM (#19432802)
Thats a false dilemma. You can have sandboxing without running pseudo-applications in a document viewer and without walled gardens.

> (Also, what makes you think that the developers of bloated JS apps won't make bloated desktop apps?)

Nothing. Its possible to create garbage desktop apps. But its impossible to create non-garbage web apps.

Re:Firefox 66.0 Aims to Reduce Online Annoyances by geofft on Tuesday March 19, 2019 @01:11PM (#19432907)
> You can have sandboxing without running pseudo-applications in a document viewer and without walled gardens.

Please expand on this claim. What is a "pseudo-application" and what is a "document viewer"? In particular, how does having an app runtime outside a "document viewer" accomplish the goals you would like to see?

> Its possible to create garbage desktop apps. But its impossible to create non-garbage web apps.

Please expand on this claim. I've seen tons of non-garbage web apps.

Re:Firefox 66.0 Aims to Reduce Online Annoyances by saagarjha on Tuesday March 19, 2019 @01:26PM (#19433091)
> What is a "pseudo-application" and what is a "document viewer"?

Presumably, a webpage in a browser.

> In particular, how does having an app runtime outside a "document viewer" accomplish the goals you would like to see?

> I've seen tons of non-garbage web apps.

Good web software can't compete with good native software in things like performance and platform features, so this is my guess as to what is considered to be non-"garbage".

Re:Firefox 66.0 Aims to Reduce Online Annoyances by JoshTriplett on Tuesday March 19, 2019 @12:54PM (#19432686)
They are applications. They run in a safe sandbox in the browser, rather than being all-powerful programs running directly on the system. They allow nuances of trust ("I trust this application with the data I'm giving it") rather than absolute trust ("I trust this application with access to my entire system and all my data").
Re:Firefox 66.0 Aims to Reduce Online Annoyances by anoncake on Tuesday March 19, 2019 @12:58PM (#19432745)
Proper applications follow OS UI conventions, they appear in the task bar, are launched from the application launcher etc. Proper applications can also be sandboxed, though Spectre makes it a bad idea to run untrusted code anyway.
Re:Firefox 66.0 Aims to Reduce Online Annoyances by JoshTriplett on Tuesday March 19, 2019 @01:11PM (#19432908)
> Proper applications follow OS UI conventions

(I'm going to ignore the use of "proper application" instead of "native (non-web) application"; it isn't helping your argument.)

Native applications can choose whether they follow UI conventions or not; many games don't, for instance. Web applications have the same choice; they can use native controls provided by the browser, and I certainly agree that well-behaved web applications should if they don't have a good reason to do otherwise (e.g. use standard form controls for native look-and-feel and better integration/interaction).

> they appear in the task bar

So do progressive web apps (PWAs).

> are launched from the application launcher

PWAs are as well. (Likewise for many other aspects of integration with the rest of the system.)

> Proper applications can also be sandboxed

But there aren't yet standard mechanisms for that (outside of mobile platforms), and you can't necessarily trust that an application will sandbox itself. Current sandbox mechanisms mostly get used by applications to protect against exploits, not for users to protect themselves against applications.

Re:Firefox 66.0 Aims to Reduce Online Annoyances by saagarjha on Tuesday March 19, 2019 @01:32PM (#19433158)
> there aren't yet standard mechanisms for that (outside of mobile platforms)

macOS certainly has one.

Re:Firefox 66.0 Aims to Reduce Online Annoyances by hombre_fatal on Tuesday March 19, 2019 @01:19PM (#19433004)
That has downsides of its own.

For example, url sharing / deep linking goes out the window. I can't share what I'm looking at in macOS' Maps.app like I can on the Google Maps website, pure downgrade.

I also don't want to download an application for everything. Very few things deserve a permanent spot on my computer. I have much less control over desktop apps than I do a website.

Or look at macOS' News.app. Another downgrade from reading news in a browser tab. It has no tabs. There's no right-click. It implemented its own back button. It only supports the few news sources that come preinstalled on it. I can't add my own. Why would I prefer this?

Obviously native applications have their place, but let's not suggest there aren't trade-offs.

What's odd about your posts is that you suggest it's an inconvenience that you might have to disable Javascript. Maybe you have to use NoScript or uMatrix or uBlock. But at least you have the option and this sort of control over the web browser. If a native application does something that you don't like, you have basically zero recourse beyond uninstalling it or begging the developer to change something you could've done in the browser with a quick browser extension or CSS tweak.

Re:Firefox 66.0 Aims to Reduce Online Annoyances by saagarjha on Tuesday March 19, 2019 @01:30PM (#19433133)
> I can't share what I'm looking at in macOS' Maps.app like I can on the Google Maps website, pure downgrade.

But you can? For example, https://maps.apple.com/?ll=36.103117,-103.901438&spn=0.00098...

> Or look at macOS' News.app. Another downgrade from reading news in a browser tab. It has no tabs. There's no right-click. It implemented its own back button. It only supports the few news sources that come preinstalled on it. I can't add my own. Why would I prefer this?

You shouldn't; you should be annoyed that Apple shipped this and demand that they give you better.

Re:Firefox 66.0 Aims to Reduce Online Annoyances by hombre_fatal on Tuesday March 19, 2019 @01:42PM (#19433296)
Your maps.apple.com example is perfect: the recipient needs to have an Apple device and Maps.app to see the link. It's like a peek into how things might've been in a dismal alternate reality.

Now try this: https://goo.gl/maps/dvhDpd93gJs

Re:Firefox 66.0 Aims to Reduce Online Annoyances by saagarjha on Tuesday March 19, 2019 @01:47PM (#19433357)
Did you try clicking on the link I posted? On my Linux machine, it redirects to Google Maps.
Re:Firefox 66.0 Aims to Reduce Online Annoyances by anoncake on Tuesday March 19, 2019 @01:25PM (#19433077)
> For example, url sharing / deep linking goes out the window.

Yes, thats the one good thing about the web. But there is no reason proper applications cannot support this.

> Or look at macOS' News.app.

Im not familiar with that app but I guess its some sort of reader for hypertext documents (published by news organizations)? The one thing a browser is good at?

Re:Firefox 66.0 Aims to Reduce Online Annoyances by dymk on Tuesday March 19, 2019 @12:52PM (#19432655)
Not really. It's way harder (and therefore the barrier is higher, they'd be less likely to exist, etc) to develop cross platform native applications than it is to just implement them as webapps.

If it was just as easy to write and distribute native applications, we'd be doing that, instead of bolting it onto the web. But it's pretty clearly not.

Re:Firefox 66.0 Aims to Reduce Online Annoyances by anoncake on Tuesday March 19, 2019 @12:54PM (#19432691)
Its the other way round. If web apps didnt exist, there would be more pressure to develop tools that make it easy to write and distribute proper applications.
Re:Firefox 66.0 Aims to Reduce Online Annoyances by geofft on Tuesday March 19, 2019 @01:00PM (#19432782)
Serious question: do you remember the late '90s and early '00s? Have you used Visual Basic, or Qt, or anything? There was an era before web apps existed, and there were tools that made it easy to write and distribute proper applications - are you claiming that that didn't happen, or what?
Re:Firefox 66.0 Aims to Reduce Online Annoyances by anoncake on Tuesday March 19, 2019 @01:04PM (#19432818)
I didnt, dymk did.
Re:Firefox 66.0 Aims to Reduce Online Annoyances by geofft on Tuesday March 19, 2019 @01:13PM (#19432925)
You're the one claiming that tools would exist to make it easy. I am saying that they did exist, and they were as easy as possible. What remains to be done, and why didn't it happen before the invention of XMLHTTPRequest? Could it get easier, and if so, how?
Re:Firefox 66.0 Aims to Reduce Online Annoyances by dymk on Tuesday March 19, 2019 @12:58PM (#19432749)
Under what circumstances would webapps not exist in some form or another? It's a system for deploying applications via the web, and JavaScript is primarily the language that they're implemented in.

I will bet you that in 99% of alternative timelines, we'd end up with something incredibly similar to what we've got today, and you'd still be complaining that applications aren't "native" enough, because practically nobody cares that a taskbar or button isn't a native OS component. They care that their application works, and can be quickly deployed and updated.

Re:Firefox 66.0 Aims to Reduce Online Annoyances by anoncake on Tuesday March 19, 2019 @01:05PM (#19432828)
> Under what circumstances would webapps not exist in some form or another?

Browsers not supporting nonsense like Javascript.

Re:Firefox 66.0 Aims to Reduce Online Annoyances by snaky on Tuesday March 19, 2019 @01:04PM (#19432819)
> We cant ban just the bad Javascript

Well, technically it's possible, and even some parts of the script could be allowed to run or not.

> a browser cannot distinguish it from the good

But the user can. And the machine could help, thanks to machine learning.

Re:Firefox 66.0 Aims to Reduce Online Annoyances by JohnFen on Tuesday March 19, 2019 @01:09PM (#19432873)
> But the user can.

How? I don't think that users even agree what consists of "good" and "bad" JavaScript.

Re:Firefox 66.0 Aims to Reduce Online Annoyances by snaky on Tuesday March 19, 2019 @01:20PM (#19433007)
For the simplest possible example, ask any Noscript extension user.

For the more advanced things, like identifying the part of Javascript code that brings e.g. 'the fancy eating 40% of the CPU scrollbar' user want to disable, some automation is needed.

Re:Firefox 66.0 Aims to Reduce Online Annoyances by JohnFen on Tuesday March 19, 2019 @01:55PM (#19433475)
I am a NoScript user. I use it to block all JS by default. If a web site won't work properly that way, and the site is somehow really important, I'll work out what the minimum scripts necessary to let the site do what I need is, and just allow those. If the site isn't somehow critical, I just don't use the site.

I have to do it that way because it's very difficult to determine which scripts are bad and which aren't without actually reviewing the JS itself. In my view, "bad" usually means that the script is phoning home in some way.

Re:Firefox 66.0 Aims to Reduce Online Annoyances by anoncake on Tuesday March 19, 2019 @01:36PM (#19433224)
Consider Javascript that replaces native browser functions. Web pages that are essentially static documents, but still dont work without Javascript.

Is this good Javascript? I dont think so. Does disabling it on an individual level help? No.