by hannob · 10y ago · 0 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.
1. The flash plugin is honestly a piece of crap. Has always been. If running "a flash interpreter in javascript" is bad on your hardware, the plugin will be just as bad.
2. Nobody cares about performance on low hardware in the context of a project that is meant to move you off Flash and into more standard/open technologies.
3. We're talking about archival here. Performance isn't a concern today, and it definitely won't be in 70 years.
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...
I've had browsers crash, become unresponsive, use unreasonable amounts of memory or cpu. I've had youtube throw errors, load forever or pause videos and refuse to continue playing them. I've had js pdf readers produce unreadable garbage.
On the other hand, I've never had any problems with my choice of media player or pdf viewer, even though they offer far more features related to their specific job than any in-browser solution i've seen.
And browsers just keep adding more features - more resource hogs, more opportunities to crash and bigger attack surfaces.
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...
Yes, but Mozilla doesn't also maintain the world's largest search engine, sell an operating system and office suite and gaming systems, or make computers, laptops, tablets, phones, and develop chips to run them on.
All Mozilla does is make software. And they only have one primary product. If x hundred million dollars per year is not enough for them to do that, I don't think the problem is that they don't have enough money.
Also it would be interesting what the 212 million of sofware development include from a payroll perspective, e.g. is it mostly developers, how much they are paid etc.
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.