186 points · by lmedinas · 10y ago · 273 comments
a) wants to keep flash alive longer.
b) wants to replace their javascript (aka already memsafe) PDF renderer with a C++ one.
I mean I get that pdf.js is not perfect. It had some bad security vulns in the past. But pdfium also has a pretty bad wrap when it comes to vulns (I got plenty of bounties for it myself). But more than that: It's moving from a memsafe language back to C++. That doesn't seem to make any sense at all. If anything they should move their PDF renderer to Rust.
And Flash... please just let it die in peace and don't put any more effort into supporting it.
Shumway shumway SHUMWAY!
This is what Shumway was supposed to be for. Creating a Flash runtime in javascript/html5 which would allow all that "existing valuable fun, educational, historical etc Flash content" to live on, without making it attractive to continue creating Flash content. Allowing all that content to be archived for the future.
Unfortunately, according to that same thread, Shumway's been killed off. Without shumway, we're now losing a huge chunk of the web's early history and the first years of online video games, gaming on the web, etc.
Whatever.
Any sensible person could have figured this out, but Javascript developers are arrogant enough to think that they should use JS for everything and succeed.
This is a more than welcome wake-up call.
Separate projects/apps should instead be maintained by whomever thinks it's worth the investment.
If no one else steps up to maintain such a niche Flash project, then we know maybe the content wasn't worth saving.
Flash support runs contrary to maintaining a modern browser, while it's entirely aligned with the mission to preserve parts of the internet as reference material.
So switching to Pdfium means added user friendliness and convenience for users and significantly higher performance (when we last evaluated PDF.js, it was far from fast).
In other words: market realities are more important than philosophical arguments about programming languages.
They took the right decision IMO, they can't afford working on irrelevant side-projects when they're losing the browser war.
That said it doesn't look like they are on path to integrate pepper-flash in any reasonable timeline. It's not even listed in the goals/milestones. It may be too complicated as I've heard the sentiment that pepper-flash uses 150% of PPAPI.
[1] https://blog.mozilla.org/futurereleases/2015/10/08/npapi-plu...
They can't keep up with the juggernauts with full time staff (Google, MS, Apple) so they are caving in and slowly going "me too".
Nope, that's not happening. Instead, it seems Mozilla is investing more of their relatively smaller resources on the most important two things that actually matter: a) Browser engine and b) JavaScript.
This is exactly what they should do. Produce the fastest, leanest, safest browser core. After playing with Servo, I feel it will be as big a release as the original Firefox was in the early 2000s.
And in 2014, Mozilla had expenses of 212 million for software development, so they definitely do invest most of their budget there.
https://static.mozilla.com/moco/en-US/pdf/Mozilla_Audited_Fi...
Or am I just completely confused?
They weren't sandboxing web content previously (which I assume means PDF.js wasn't sandboxed?). But they announced this year [2] that they will be copying Chrome's security model and again supporting per-tab sandboxing. Instead of running all web content in one big process. Not sure if this was rolled out yet.
[1] https://support.mozilla.org/en-US/questions/1111998
[2] http://www.myce.com/news/firefox-finally-gets-sandboxing-imp...
Although I didn't read the flash thing as finding a reason to keep it longer?
Edit: removed comment about Chromium, I forgot PDF.js was manually installed :p
Fortunately Chrome stopped supporting Foxit and Adobe PDF plugins with version 45 (released a year ago) when they depreciated NPAPI.
> As of Chrome 45, support for old, insecure NPAPI plugins is permanently removed. I believe Adobe Reader and Foxit Reader both integrate with web browsers through NPAPI plugins. If so, the old NPAPI-based Adobe Reader and Foxit Reader no longer works in Chrome, regardless of whichever version you have installed. http://www.chromium.org/developers/npapi-deprecation
It's interesting that they still expose their own C++ code to remote PDFs which apparently had some servere bugs: http://blog.talosintel.com/2016/06/pdfium.html
JS a safer language than C++? I would argue the opposite.
This also appears to be a step away from Mozillas strategy of web-technologies everywhere.
Why on earth would they move away from PDF.js (which is a fantastic project) and then use that move to justify Mortar?
Also, I just learned this from the thread: Why the fuck would they kill Shumway? I'm all for killing Flash, but Shumway is an important tool not just for migration, it's also really important for archival.
God damn it Mozilla. I've talked about this before, too: Hearing Mozilla executives, each Mozfest, talk about commitment to the free web. Commitment to open technologies. What commitment, exactly?
In a handful of years, Mozilla has managed to severely damage its poster child web browser's reputation by including then subsequently dropping drm, by including then subsequently dropping Hello (a good initiative with a horrible user experience), by completely screwing up the launch of Pocket (which they could only have done by massively misunderstanding their userbase).
In that same handful of years, Mozilla took some good initiatives, such as Persona and Firefox OS, completely botched marketing and experience on both, severely underestimated the required efforts on the latter, then dropped both projects.
In that same handful of years, Mozilla dropped support for its second poster child, Thunderbird, arguably the last decent FOSS email client.
It all screams mismanagement and I haven't even talked about half of the problems. I've been upset about all this for some time but now writing it all out I'm starting to wonder of Mozilla isn't just in a free fall.
PS: I 100% understand the concerns and difficulties of allocating development time but this is a pattern I keep seeing with Mozilla: Spin up a project, get it to 80%, give up. You could build a castle with the amount of efforts wasted on projects either doomed from the beginning (FxOs), or dropped near the finish line. This is all absurd.
So the options are to either keep developing Shumway but not ship it, or stop developing it and not ship it. The latter is a bit more attractive if resources are limited.
Mozilla is an organization that needs to be careful about allocating their resources. These projects are open-source and with enough interest they can continue. If Mozilla's Persona died, that's because it never had a future in the first place and killing it was the right call ;-)
And on Hello and Pocket, I really don't understand the drama. I think the Internet is making some of us way too pissy.
Shumway hasn't been worked on in a while. No idea why, but I would guess that it has something to do with how large the Flash feature set is. Long tail and all that.
The reasoning here is probably like so (speculating here):
- We want to deprecate most plugin APIs
- We still want to support flash
- Shumway isn't there yet, let's use pepper flash
- Flash and PDF probably need very similar feature sets as far as the API is concerned
- Supporting the subset of PPAPI needed for Flash is probably going to let us include PDFium too, which is already supported by Google. As long as we're going down this path, let's try to include PDFium too.
- In case PDFium turns out to work, we can decide if pdf.js needs to be replaced
I personally hope that pdf.js isn't replaced; since a JS thingy is far better than a vulnerability-ridden C program. At the same time, this depends on how much the demand for a full pdf feature set is.
OTOH, this probably means more work gets done on Gecko, Servo, the *Monkeys, and Rust. Which is pretty good.
Well, does it? Are they moving devs from PDF.js to the Rust ecosystem? It seems more likely to me that they would either lay them off, or move them to the PDFium stuff. Same applies to Shumway.
What a backwards step either way. As for Servo, how's it doing these days? Is it anywhere near done? What terrifies me is Mozilla would drop Servo when it's 80% done, just like it did with all its other projects, because "well, we already have Gecko, and it works, and it's too much work to finish Servo".
Aside from Rust and some Firefox tech, I haven't seen anything concrete come out of Mozilla in a long, long time. Rust, FWIU, has its own organization and is no longer handled by Mozilla alone (thank god); everything else gets killed off like a westerosi wedding.
Last I checked both were bigger than the number Mozilla has working on Firefox.
And yes, the people who were working on Firefox OS are now working on other things, and we _still_ don't have enough people to cover all the things that need doing...
Their market share is currently in the single digits on the desktop and they have virtually no market share on mobile which increasingly is more relevant than the desktop in terms of usage.
It's smart for them to decrease costs and maintenance burden right now while they still have the resources.
It doesn't seem that way, considering all of the effort they've put into Servo.
Just feels like a step towards chrome further dominating.
Importing Chrome's SWF and PDF is a way to stress test their new plugin implementation.
Not maintaining pdf.js seems a budgeting decision but Flash is restoring functionality to Linux via a cross-browser plugin, which Adobe had abandoned for Chrome only.
> The core of the Windows sandbox is Google's chromium sandbox.
https://wiki.mozilla.org/Security/Sandbox#Windows_2
Any more components that are coming directly from Chromium?
This is an interesting move if it allows Mozilla to focus on Servo and the new Rust components. At least I hope that's what they are doing, after the recent Firefox OS news.
It's easier to just use an existing PDF renderer like PDFium that already has the 100%.
The Flash thing is separate. Flash is sadly still necessary on the web - most people won't use a browser without Flash, except on mobile. And the pepper version of Flash is more stable than the other.
Where the two connect is that if you support enough pepper for pepper-Flash, then you also have the option to use that pepper support to run PDFium.
Which is to say, whatever happened to https://en.wikipedia.org/wiki/Object_Linking_and_Embedding ?
Mozilla had XPCOM many years ago, and they killed it.
So no, it can't be done. Certainly not safely.
I don't really have a preference one way or another between PDFs opening in evince or PDF.js.
As for PDF, the PDF viewers shipped in browsers seem to be much more hardened against attack than the stand alone ones people use, so as a practical matter, including a PDF viewer helps keep users safe.
[1] https://chrome.googleblog.com/2016/08/flash-and-chrome.html
[2] https://blog.mozilla.org/futurereleases/2016/07/20/reducing-...
If you care about security, you simply don't use Firefox.
If Mozilla drops in-browser PDF support, I think it would make them the only major browser with no support?
The reason Flash is still around is because of ads. Most (video) ads are served through Flash still and publishers still don't know how to switch, or don't want to.
Source: I work for a video player company
The last ESR of Firefox was reasonably fast, since I updated to 45 everything is sluggish. The upside is that some HTML5 audio features work better now, the downside is that the Youtube video player is so inefficient I needed to install a plugin that disables it (the fan is roaring).
Many years ago I installed a native Mplayer plugin for Firefox, and I could watch videos on the web. It was a 800Mhz CPU, and a 32MB Radeon graphics card? I could play videos without touching the CPU?
Right now I am typing a HN comment and FF sits at 100% for whatever reason...
My point is, everything implemented in a browser that is not a HTML/CSS renderer or JS JIT compiler, seems to suck to the point of being useless.
As much as I would like to get rid of the Flashplayer plugin, its the most reasonable way to play video in FF. Less of a CPU hog, less crashes. How did we get into this mess?
That's the plan: PDFium is an open-source PDF reader.
Sure web > pdf > flash in terms of mozilla's focus, but I fear pdf will be part of the web for a long time to come.
Don't get me wrong, Rust is an amazing project and I am happy it exists and grateful for their work on it, but if I had to choose between Rust and Firefox, for the shake of internet and freedom I would choose Firefox.
I guess a PDF viewer or just another implementation of Flash is not sexy, interesting work, but IMHO is more aligned with the mission of Mozilla.
Mozilla had the option of either remaining in long-term software maintenance mode and falling behind or doing something to move forward the state of the art in browser design and security. Sometimes the seemingly-risky choice is actually the safer option; I hope it works out.
Do you really think that the people working on Rust would just drop it and work on something else instead? More like leave Mozilla and work on what they like while getting paid by someone else. Not all people are easily allocable resources that you can move from project to project based on corporate political goals. Some things take combination of deep technical insight and passion, none of the two optional.
Better for them to keep a few of these high value people on pay so at least they can try and nudge them in directions that help Mozilla more.
Ideally, NPAPI and Pepper should both die, but I don't necessarily mind them killing NPAPI and adding this minimal set of Pepper support for Flash. Pepper crashes the browser less (though most of the fault lies with Flash).
But even if this enables PDFium, it should not be adopted, and the talk of adopting it makes me want to oppose the whole idea of "project mortar."
It's a pretty good case study in why rebuilding your product entirely in JavaScript isn't necessarily a good idea.
Clinging to Gecko is akin to the slow death of Symbian when Maemo was around the corner.
Some Servo components are close enough to being "done" that we're considering sharing them with gecko.
Give Firefox and the broader web a cross-platform, free, opensource PDF-renderer (you can use it to embed PDF in webpages)
Give Mozilla real-world experience with bottle-necks in their PDF-renderer.
Slightly longer answer: one of the two main contributors is active in this threads and state that none of the work full time on it.
That said, if someone has to do it, I felt better about PDF.js than I feel about the Chrome implementation, for a few reasons. Higher level language means less surface area for vulnerabilities (though I guess it's never been perfect, either). Being a huge and complex project in JavaScript means it works the JS engine and renderer in the browser pretty hard and can provide a great test suite for the browser itself. Being JavaScript also means improvements in the VM (whether performance or security) automatically improve the PDF renderer (though I guess PDFium is quite a bit faster already, so that's less of a benefit on the PDF.js side).
Honestly, though, these are dead technologies, to me. I use them only when absolutely necessary. I don't have Flash installed on any of my machines and have no intention to do so. I do have to look at PDFs now and then, but I don't like it. I'm tired of people slapping the paper skeuomorph onto web pages. Web pages are better than paper, in every dimension, so stop imitating paper! Having to load up a buggy, quirky, weird-looking, plugin to view the damned thing is just adding insult to injury.
So...let'em die. But, I guess if Mozilla feels like they need to keep providing it for now, I'm fine with them doing whatever they have to do to make it cost as little as possible. Mozilla has wasted enough money over the years on weird projects; I guess supporting Flash and PDF count as another one. (Even though I like PDF.js a lot, for making PDF less of an asshole.)
I recently removed PDF export of invoices from my company shopping cart, and converted it to use an HTML document instead; I spent a couple of days of my labor removing PDF functionality. Same style sheet, looks the same when printed, provides the same information, but no external tools needed. PDF is an anti-pattern, and if I'm working with someone and they send me a PDF I instantly like them less (except in the very rare circumstance that it's necessary to print the thing, like signing documents, though even that can be mostly automated away with tech).
So, I'll answer your question with my own: What are you sending your clients in PDF? Why? Why isn't it online yet? Why are you manually creating these docs, whatever they are, and emailing them to someone? I switched payment providers because my last one mailed me a PDF form, and asked me to sign and send it back. I said "no thanks", and signed up with someone who lives in this century.
There's very little that people do with PDF that can't be done better some other way.
What do you mean by "online"? Obviously PDFs can be online. Are you implying some clunky proprietary webapp that must allow me to share something?
Let's say some project is going to post a schematic and I'd like to read it. I'd much rather grab that in a PDF than the native format of whatever CAD program they used to capture it (although obviously the latter is necessary for editing). You're either saying that CAD programs should print-to-file as vector-perfect HTML (why?), or that local programs should be deprecated?
To me, PDF is just a nicer page-precise layout compared to PS. And for many locally-saved documents, I'd rather not even involve my web browser - just a simple evince <file>.
Is the PDF support on nonfree platforms really that bad that it's created such hate for the whole format? It sounds like that failing is better attributed to the operating system itself.
My favorite websites to read are not PDF. "Fidelity" is not important to me...being easy to read on the device I'm reading it on is what is important to me. In fact, I find it painful to read a PDF on my computer, whereas I read tons of documentation on web pages without trouble.
Finally, a web page today can look like pretty much anything, including a "book" layout. PDF isn't necessary or useful. Fonts can be embedded, styling can be done down to the pixel level, scalable illustrations can be embedded in SVG, etc. The only reason people don't lay out stuff on the web like a PDF is because it's not as functional as treating it like a web page.
That said, I have been reading material from http://www.accountingcoach.com and the author has got good design on pretty much all browsers I've used, including my iPhone so I suppose it can be done.
Odd. I'd thought PDF support in that market was widespread. Perhaps Kindle is an outlier.
Does anyone outside Mozilla think this is a great decision?
I'm asking in good faith - just not sure how they came to this direction, and unable to see how it's in their best interest.
Otherwise, Mozilla will still be spending resources integrating pdfium and Pepper Flash codebase and debugging bugs related to their usage.
On the other hand they've got over a billion (!) of dollar over the years, created dozens of projects that had nothing to do with the browser, develop their own language and now want to cut costs on Firefox.
Every in browser PDF renderer seems to start with the same "we don't like plugins" mindset, they implement the basic stuff in a frenzy.. and then leave it broken without support for important, real world features.
Chrome doesn't do annotations, need not talk about PDF.js..
PDF used to be a pretty reliable compatibility format, if read only, and browsers are single-handedly trying to ruin it. It's like they are jealous.
I've been using FF since it was in beta as Phoenix and never stopped using it. I would have to agree with you. I don't share all of Eich's politics in general but I also don't care about Eich's politics (I'm an adult). Mozilla chose politics over tech. I think the only path to redemption for Mozilla is to bring back Eich with a full apology and give him total control. Let him clean out some of these clowns. That won't happen, they're probably done.
This is just another nail in its quality koffin.