News for hackers. Stuff that matters.
Re:Embedded PDF viewer in Firefox 81 supports filling forms by elric on Tuesday September 22, 2020 @10:59AM (#24555205)
That built in PDF viewer is another feature that could have been an addon. It's bloat which increases the browser's attack surface. It's completely unneeded given that just about every OS ships with some kind of PDF reader out of the box.
Re:Embedded PDF viewer in Firefox 81 supports filling forms by axelf4 on Tuesday September 22, 2020 @11:02AM (#24555242)
> It's bloat which increases the browser's attack surface.

AFAICT PDF.js is just another JavaScript application and thus as sandboxed as any other website.

Re:Embedded PDF viewer in Firefox 81 supports filling forms by est31 on Tuesday September 22, 2020 @11:31AM (#24555664)
It's a js application and thus less exploitable than your average C application with tons of unsound code, but IIRC it belongs to the class of "privileged js" layer that Firefox has, so has special rights that usual website js doesn't have.
Re:Embedded PDF viewer in Firefox 81 supports filling forms by morpheuskafka on Tuesday September 22, 2020 @11:04AM (#24555272)
The built-in PDF reader on Windows is literally to open the PDF in Edge.. so not very good UX for Firefox and also a good argument that browsers are expected to have PDF readers.
Re:Embedded PDF viewer in Firefox 81 supports filling forms by toyg on Tuesday September 22, 2020 @11:33AM (#24555685)
Thank Google - Chrome was the first browser to ship with a pdf reader, and people loved it. Now it's just expected that any browser should have a workable PDF reader built-in.
Re:Embedded PDF viewer in Firefox 81 supports filling forms by sp332 on Tuesday September 22, 2020 @11:58AM (#24556071)
The alternative was installing an Adobe plugin with no sandbox, so it made sense at the time.
Re:Embedded PDF viewer in Firefox 81 supports filling forms by godshatter on Tuesday September 22, 2020 @12:53PM (#24556864)
I would like to see Mozilla modularize Firefox more. Browsers are such huge beasts that contain everything imaginable plus the kitchen sink these days. It would be nice for these kinds of features to be add-ons that can be disabled or deleted if their functionality is not needed or desired, freeing resources for other use.

They can be part of the initial install so that Mozilla can provide the browser as they envision it, but be able to be removed for those who have other ideas of what their browser should consist of.

I don't know how technically feasible that is with their code, but it makes sense to me from a developer standpoint.