News for hackers. Stuff that matters.
Re:Stopping FTP support in Firefox 90 by billyhoffman on Tuesday July 20, 2021 @04:36PM (#27898950)
> ftp is a relatively simple protocol, not particularly complicated to implement

Parts of it are, sure, but parts of it are an absolutely horror show (The client opens a port, and then the server connects back to it!?), text conversion and binary modes that's based on ASCII, different list formats, etc. It's not great. Worse, it doesn't support the good stuff like implicit TLS extensions

> Supporting FTP isn't some big technical challenge. The code has been there in the firefox codebase for nearly 20 years now, running just fine. All you need to do to continue to support ftp is nothing at all.

Not at all. Continuing to support FTP means continuing to defend attack surface that's implemented as 20 year-old code, to deliver a feature that in 2021 the majority of people do not use.

It's a cost-benefit analysis. I want Mozilla to do more. If they believe removing FTP support enables them to do more, I'll all for it.

Re:Stopping FTP support in Firefox 90 by antisol on Tuesday July 20, 2021 @05:00PM (#27899255)
>It's not great

It's simpler than a pdf viewer.

>It's a cost-benefit analysis

If it were, they'd have never added a pdf viewer in the first place. Everyone already had one. Near-zero benefit, huge cost.

>I want Mozilla to do more.

At this point I'm afraid we're just going to have to agree to disagree. For the last 5+ years, Every time Mozilla "do more", I throw up in my mouth a little.

Re:Stopping FTP support in Firefox 90 by oblio on Wednesday July 21, 2021 @04:13AM (#27903673)
> If it were, they'd have never added a pdf viewer in the first place. Everyone already had one. Near-zero benefit, huge cost.

Every time I clicked a PDF online, I dreaded the external viewer opening (especially Adobe Reader). I very much liked when they integrated a PDF viewer. Chrome also has one.

I'm willing to bet the internal PDF viewer has at least 100x (more likely 1000x) the users the FTP client had.

Re:Stopping FTP support in Firefox 90 by antisol on Wednesday July 21, 2021 @05:01AM (#27903971)
Sounds like you had a shitty pdf viewer installed. Which is not my problem.

Why was I forced to install a substandard, feature-poor, ridiculously slow pdf viewer that I never wanted and which took over as the default pdf viewer against my wishes and without asking me, just because you couldn't be bothered to install a decent one?

>I'm willing to bet the internal PDF viewer has at least 100x (more likely 1000x) the users the FTP client had.

Yeah, that tends to happen when you change the defaults without asking.

Re:Stopping FTP support in Firefox 90 by oblio on Wednesday July 21, 2021 @05:09AM (#27904008)
Vent, rant, get it out of your system :-)
Re:Stopping FTP support in Firefox 90 by antisol on Wednesday July 21, 2021 @05:10AM (#27904009)
Way ahead of ya ;)

but you didn't address my question

Re:Stopping FTP support in Firefox 90 by oblio on Wednesday July 21, 2021 @07:11AM (#27904739)
All PDF viewers are crap in my experience. If you don't agree, you haven't used PDF enough. PDF has Javascript as a programming language, it has extensions for 3D models and a ton of other stuff (I think even sound). As a format it's almost as complex as the entire web stack.

Multiple web browsers have embedded PDF viewers because the PDF viewing experience for most people sucked so much. That's not a product decision taken lightly.

Your personal experience does not reflect that of many other browser users, it seems. Even on mobile I dread clicking a PDF link.

Re:Stopping FTP support in Firefox 90 by kragen on Wednesday July 21, 2021 @09:44AM (#27906153)
Yeah, PDF can play embedded sound files. It is an overly complex format. Its character encodings are defined by embedded CMap files, which are a restricted subset of PostScript. It includes by reference the CCITT G3 fax standard, PNG, JPEG, JPEG-2000, JS, Deflate, TrueType, the PostScript Type 1 font format, a separate richtext format that isn't PDF for annotations (ISO 32000-1:2008 §12.7.3.4), and several other things. In different contexts it represents line endings as \r, \n, or your choice of either of those plus \r\n. And the 3-D models thing isn't an extension; it's in the base spec (§13.6), although the actual 3-D format is ECMA-363, which is included by reference, like Deflate and JPEG.

But it's nowhere close to the complexity of the entire web stack, not within an order of magnitude. It's much, much simpler.

Re:Stopping FTP support in Firefox 90 by antisol on Wednesday July 21, 2021 @08:19AM (#27905284)
You still haven't addressed my question.

I'd respond to the rest of your vague and incorrect opinions, but why would I do that if you're not even going to bother to address my points despite me asking you to repeatedly?

Re:Stopping FTP support in Firefox 90 by oblio on Wednesday July 21, 2021 @11:02AM (#27907254)
> You still haven't addressed my question.

If I must spell it out, there you go:

> Why was I forced to install a substandard, feature-poor, ridiculously slow pdf viewer that I never wanted and which took over as the default pdf viewer against my wishes and without asking me, just because you couldn't be bothered to install a decent one?

Because you are part of a minority of Chrome and Firefox users and I'm probably part of the majority of users, in this regard. I don't know this for sure, but if a Google program manager decided to back building and embedding an entire PDF reader into a browser, I'm 99% convinced this is true.

We're dumb and you have to live with us.

Life's tuff.

Re:Stopping FTP support in Firefox 90 by antisol on Wednesday July 21, 2021 @12:52PM (#27908755)
That's.......... actually not a bad answer to my question, goddamnit ;)

BUT: you do have to concede that it's not a technical reason. It boils down to "Adobe are goddamn useless, let's just do their job for them because it will make our life a bit easier". There's no requirement for pdf viewing in the HTML spec or anything like that. It's not required for web browsing and it doesn't really have any place in the browser in a technical/engineering sense - from an "engineering purity" perspective these two things should be separate, even if you do like your pdf viewers written in javascript. The "correct/pure" engineering solution would have been for them to bundle their awful javascript pdf viewer in an electron(ish) app and release it as the "google pdf viewer", with all the requisite spam in gmail and the technical press, and to have chrome default to it if it's installed. Hell, you could make it a separate application and still bundle it with chrome.

There must have been a LOT of support enquiries about "the adobe doesn't work" for it to survive a cost/benefit analysis for implementing an entire pdf viewer. That's not a trivial piece of work that somebody churned out in an afternoon (despite the performance of the thing feeling like it ;) )

If I was that product manager, I would not make that decision lightly. First I'd have built a special page into my support area that redirects the user to adobe.com/support if they type "pdf" or "adobe" into the "search support" bar. (You know what I mean - you've seen it in action on help desk sites where they try to fob you off rather than just giving you a "contact us" box straight away).

This is all a whole lot easier to implement than a pdf viewer. In fact if you're using something like zendesk you get it for free. For me to decide to build a pdf viewer into my browser, I'd have to be getting a high volume of support emails about it after I'd implemented the change above.

I don't think that's what happened.

In the post i largely ignored, you said:

>Multiple web browsers have embedded PDF viewers because the PDF viewing experience for most people sucked so much

Allow me to give you an alternate explanation / interpretation, which I admit might come across as "a little bit cynical" or paranoid, but which I believe to be more fully borne out by the facts than the "cost/benefit analysis" theory you advocate. I don't think "multiple browsers" did that at all. Here's my theory:

1. Google decided to build a pdf viewer into chrome because they were busy trying to turn chrome into an operating system (see also: chrome os), and they knew that would mean including a pdf viewer, since a pdf viewer is a fairly essential tool for an operating system if it wants any kind of mainstream adoption. This had the added side-effect that for many users their pdf viewing experience would improve, because adobe are basically incapable of doing software. So it was really a "two-fer" for google.

2. Mozilla, seeing google's announcement for a pdf viewer built into their browser, did what Mozilla has been doing for the past decade: copy Chrome without giving any thought at all to any of the considerations you and I are discussing today. Or indeed any consideration other than "what is google doing with chrome this week?".

Now, I do try to keep my paranoia and cynicism in check, but to me this seems like a far more likely explanation. Perhaps I'm wrong. It would be kind of nice if I was. If you have some data to support your theory I'd love to see it.

I don't have much data to back up my theory. I can't be bothered looking into what chrome's support site was like pre-pdf-support. But I do have one data point: I can confirm that chrome added pdf support first, with Mozilla aping them almost immediately (they were pretty much at parity within a year or two).

Maybe Mozilla had coincidentally already done a full cost/benefit analysis of adding a pdf viewer before google went live with theirs. It's not impossible. But it seems a little unlikely to me.

</rant> ;)

Re:Stopping FTP support in Firefox 90 by apostacy on Tuesday July 20, 2021 @10:55PM (#27901845)
> It's a cost-benefit analysis. I want Mozilla to do more. If they believe removing FTP support enables them to do more, I'll all for it.

This was the justification for removing RSS support.

And look at what Mozilla has chosen to develop instead.

Re:Stopping FTP support in Firefox 90 by kragen on Tuesday July 20, 2021 @05:01PM (#27899279)
It's not a well-designed protocol, but it's still a relatively simple protocol.

Your reasoning, that "Continuing to support $x means continuing to defend attack surface that's implemented as $y year-old code, to deliver a feature that in $z the majority of people do not use," would ultimately consign every feature on the web to the book-burners' flames, except for the worthless minority of features that the majority of people do use. Chinese HTML text support, I suppose, and biometric authentication, and whatever the latest video codec is.

After all, it's 02045. Who watches videos encoded in VP9 now anyway? It's been obsolete since 02028! Or reads English text? Much less Hebrew? The majority of people do not use those features. Why should we continue to defend that attack surface?

Re:Stopping FTP support in Firefox 90 by billyhoffman on Tuesday July 20, 2021 @05:36PM (#27899690)
Straw men are not helpful. I never suggested removing a language used by millions of people. Let me be more specific: Pruning support for old formats and protocols is a feature, not a bug.

Let's pick something else from this golden age of "browsing HTML pages via the FTP protocol" that people on this thread keep professing: XBM images, the very first image format ever supported by browsers, and used when Marc Andreessen literally invented the IMG tag [0].

XBM is a crazy simple image format [1]. Yet, because it is essentially C code that defines a buffer size and then gives you a char array, caused security bugs over and over [2] in all major browsers. Since virtually no one was using XBM images, the browsers all removed support for it [3].

The browsers removed code that was already written, and abandoned functionality that had already existed, because it reduced attack surface supporting something that virtually no website was using. Exactly like FTP support.

0 - https://eager.io/blog/to-what-extent-did-marc-andreessen-inv...

1- https://en.wikipedia.org/wiki/X_BitMap

2- https://www.cvedetails.com/google-search-results.php?q=xbm+i...

3- https://en.wikipedia.org/wiki/X_BitMap#Support

Re:Stopping FTP support in Firefox 90 by kragen on Tuesday July 20, 2021 @06:10PM (#27900002)
> I never suggested removing a language used by millions of people. Let me be more specific: Pruning support for old formats and protocols is a feature, not a bug.

You're contradicting yourself here; Hebrew is a language used by millions of people (about ten million, so 99.9% of the world's population does not use it) and also an old format (about 3000 years old). "Pruning" support for old formats makes history inaccessible; "pruning" support for old protocols requires constant effort to keep your servers compatible with whatever is fashionable with today's cascade of attention-deficit teenagers [CADT].

And if we follow your originally stated reasoning, "Continuing to support $x means continuing to defend attack surface that's implemented as $y year-old code, to deliver a feature that in $z the majority of people do not use," we ineluctably arrive at the conclusion that we should remove support for languages used by millions of people.

Taken literally, we should remove support for all languages, since no language is used by more than 50% of the world population, but in keeping with the principle of charity, I interpreted your "majority" as "vast majority". I'm not sure where exactly the vast-majority cutoff lies: a feature that 90% of people do not use? That would include all natural languages except English and Chinese. 95%? All languages except those, Hindi, and Spanish. (In particular, it leaves out all those RTL languages that cause so much complication in text rendering, like Arabic.) 99%? That leaves 20 languages, but not, for example, Persian, Swahili, Italian, or Thai. Even a cutoff of 99.9% might leave out Hebrew, Uighur, and Greek.

What percentage of users do you think use View Source? The web inspector? Printing?

That's not a strawman argument; it's a slippery-slope argument. And, I think, it's a valid slippery-slope argument. If we are going to avoid removing support for these things, we need a better basis on which to make the decision than, "Continuing to support $x means continuing to defend attack surface that's implemented as $y year-old code, to deliver a feature that in $z the [vast] majority of people do not use."

I do agree that there needs to be some kind of cutoff. Gopher is probably below it; WAIS and XBM certainly are. But FTP?

XBM was never very widely used in web pages because it didn't support color, grayscale, or compression, although for a little while it was the only image format supported by browsers that supported transparency. I did put it on a few of my web pages, but as soon as Netscape added support for transparent pixels in GIFs, I switched over and never looked back. This would have been about 01994.

By contrast, there are about 1.1 million anonymous FTP servers today, one out of every 4000 public IP addresses, and about one for every 30 HTTP(S) servers: https://zakird.com/papers/dsn-ftp.pdf That's more than the number of HTTP servers that existed for the first seven years of the Web, up to 01997: https://news.netcraft.com/archives/2021/05/31/may-2021-web-s...

You can be sure that there's millions of people using them. Probably more people than speak Hebrew, in fact.

Re:Stopping FTP support in Firefox 90 by billyhoffman on Tuesday July 20, 2021 @06:25PM (#27900117)
We are at an impasse that can only be solved by data: how many unique users downloaded a document via an FTP URI in a web browser in a month? If I were a betting man, I'd wager it's less than the unique number of users who visited a webpage rendered using Hebrew, but we don't know.

Hopefully the browser makers will be transparent with this telemetry.

Re:Stopping FTP support in Firefox 90 by kragen on Tuesday July 20, 2021 @07:11PM (#27900434)
Precisely what I'm arguing is that we should stop destroying access to all information except the most popular—I'm astounded to find that you disagree! That is not an impasse that can be resolved by data.

Popularity is not a valid measure of value. The July 02021 issue of People magazine sold 3 million copies, in a single month, and is almost completely devoid of value. (Maybe in 02068 it will provide valuable insights into vapid 02020s US popular culture.) Amazon tells me Claude Shannon's Mathematical Theory of Communication is outsold by 185,210 other books at present, so perhaps it has sold 100 copies this month, but it is the foundation of data compression, error correction, and significant amounts of artificial intelligence work. One Hundred Years of Solitude has sold about 50 million copies—over the past 54 years, so perhaps it sells 80,000 copies a month, 40 times less than the July 02021 issue of People. (But probably less; it probably doesn't sell as much as it did 30 years ago.)

40:1 is more than the ratio between the number of HTTPS servers and the number of anonymous FTP servers.