News for hackers. Stuff that matters.
Re:NPAPI Plugins in Firefox by mindcrime on Thursday October 08, 2015 @01:18PM (#10354220)
Typical "follow, not lead" mentality from Mozilla. Anybody who remembers the very early days of the project, back when releases were named M1, M2 and so on, will remember the many fights over various aspects of the browser that ended with "We must do this because Internet Explorer does it" or "We can't do that because Internet Explorer doesn't do that."

Now, in 2015, it's more of the same, following Google Chrome instead of having a vision, sticking to it, and just implementing it.

Plugins are a source of performance problems, crashes, and security incidents for Web users.

They're also a source of cutting-edge and/or specialized functionality that isn't part of the browser and may never be.

Websites and publishers which currently use plugins such as Silverlight or Java should accelerate their transition to Web technologies

I'm having a hard time coming up with a definition of "web technology" that doesn't include Java, outside of "things that are baked into the browser out the box" which is awfully narrow.

The Web platform is powerful and can usually do everything that a plugin can do. In the rare cases where a site needs to extend Web technologies, the recommended solution is to develop the additional features as a Firefox add-on.

Why should it be rare? Innovation will always outrace the ability (or willingness) of browser vendors to incorporate new technologies. I mean, there's a reason plugins exist and I don't see that anything has changed to negate that. They're a place to try out new stuff, or things that aren't widely used enough (or supported by a company with enough money) to get incorporated into the browsers.

OTOH, maybe this is a win. We need to get away from this whole "The browser is a poor man's operating system" model anyway. Let the browser do a great job of browsing hypermedia and then hand off to specialized programs when we want to do something outside that paradigm. In this regard, JWS is a great approach that should probably be more widely used.

Re:NPAPI Plugins in Firefox by chimeracoder on Thursday October 08, 2015 @01:35PM (#10354365)
> Now, in 2015, it's more of the same, following Google Chrome instead of having a vision, sticking to it, and just implementing it.

I disagree. This is 100% in line with Mozilla's vision (except arguably the Flash exception).

> They're also a source of cutting-edge and/or specialized functionality that isn't part of the browser and may never be.

That runs directly counter to Mozilla's vision for the Web as a dominant, universal platform. They're non-standard, oftentimes non-portable, and rarely provide functionality that couldn't be replicated in the browser[0].

> I mean, there's a reason plugins exist and I don't see that anything has changed to negate that.

Anecdotally, all the plugins that I can remember ever using - as far back as Shockwave during the 90s - were really just stopgaps that attempted to bridge the holes that have since been filled by HTML5 features such as audio, video, WebGL, etc.

What are the plugins that still exist that wouldn't be better implemented as web-native, and which don't make good candidates for extending the definition of what should be considered web-native?

[0] Rarely, not never. Though in the cases where they can't, it's worth thinking whether these should be added to the HTML5 standards - necessity is how we got stuff like WebAudio, after all.

Re:NPAPI Plugins in Firefox by pcwalton on Thursday October 08, 2015 @02:00PM (#10354636)
> I'm having a hard time coming up with a definition of "web technology" that doesn't include Java, outside of "things that are baked into the browser out the box" which is awfully narrow.

By that measure, Mobile Safari has never used Web technology.

Re:NPAPI Plugins in Firefox by tosseraccount on Thursday October 08, 2015 @03:54PM (#10355642)
"coming up with a definition of "web technology" that doesn't include Java"

What browser or server requires java?

Re:NPAPI Plugins in Firefox by mindcrime on Thursday October 08, 2015 @05:05PM (#10356233)
Who said anything about requiring. I'm just saying that Java has been an important part of the overall web technology ecosystem since pretty close to the beginning, and especially since the beginning of mass adoption of the web. Trying to shuck off Java as not being "web technology" sounds like revisionist history to me.
Re:NPAPI Plugins in Firefox by uxcn on Thursday October 08, 2015 @02:16PM (#10354796)
The native api isn't only necessary for accessing operating system resources or running natively compiled code. It's also to interact with the browser at a fundamental level. It's extremely useful for things that modify the user interface or need to interact with the dom, like vimperator, ublock, tab mix plus, etc...

I think one of the bigger problems with a non-native plugin api is that doing anything non-trivial could become either unnecessarily complex or possibly even intractable. I'd be curious how they are planning to support extensions like vimperator or even no-script.

Re:NPAPI Plugins in Firefox by Excavator on Thursday October 08, 2015 @02:36PM (#10354981)
Well, the folks behind Vimperator sound optimistic at least.

https://github.com/vimperator/vimperator-labs/issues/264

Re:NPAPI Plugins in Firefox by jccalhoun on Thursday October 08, 2015 @03:05PM (#10355239)
The creator of noscript also seems optimistic: https://hackademix.net/2015/08/22/webextensions-api-noscript...
Re:NPAPI Plugins in Firefox by uxcn on Thursday October 08, 2015 @03:53PM (#10355634)
native.js looks interesting. It almost seems like it's recreating micro-kernel type interaction within the browser.
Re:NPAPI Plugins in Firefox by uxcn on Thursday October 08, 2015 @03:06PM (#10355244)
I guess the real worry is the quality of the APIs that are going to replace native access.
Re:NPAPI Plugins in Firefox by eleh on Thursday October 08, 2015 @02:27PM (#10354893)
> I'd be curious how they are planning to support extensions like vimperator or even no-script.

That will not be supported anymore. Regardless of the user's desires.

They want you to consume media and buy their apps in the browsers app store. That's all you are supposed to do with your browser in the future vision of Google, Mozilla & Co.

Time for a revival of fat client desktop applications, even if they mainly display HTML content or call web services...

Re:NPAPI Plugins in Firefox by mrbig4545 on Thursday October 08, 2015 @02:32PM (#10354947)
addons do not use npapi, so vimperator, ublock, tab mix plus, etc will still work
Re:NPAPI Plugins in Firefox by uxcn on Thursday October 08, 2015 @02:43PM (#10355050)
For now, but XUL and XPCOM are also on the chopping block. Overall, it looks like Mozilla is planning to get rid of native access entirely.
Re:NPAPI Plugins in Firefox by dblohm7 on Friday October 09, 2015 @05:05PM (#10363277)
There's nothing stopping you from bundling native code with your addon and having the addon launch the native process and communicate via a pipe.
[deleted]
Re:NPAPI Plugins in Firefox by uxcn on Thursday October 08, 2015 @02:59PM (#10355188)
From what I can glean, content handlers should no longer be native, and WebExtensions are going to be more controlled in what you can and can't access.
Re:NPAPI Plugins in Firefox by bobajeff on Thursday October 08, 2015 @02:00PM (#10354629)
>We need to get away from this whole "The browser is a poor man's operating system" model anyway. Let the browser do a great job of browsing hypermedia and then hand off to specialized programs when we want to do something outside that paradigm.

While I don't believe the Web should be an OS. There absolutely needs to be vendor neutral, hardware/system independent software runtimes. And I see no reason for one of those not to be the Web.

The idea of software applications running on a specific system or machine is about as useful and sane as video, audio or image files with that same limitation.

Re:NPAPI Plugins in Firefox by cpeterso on Thursday October 08, 2015 @01:57PM (#10354600)
> I'm having a hard time coming up with a definition of "web technology" that doesn't include Java

Neither Chrome nor Edge support Java or Silverlight.

Re:NPAPI Plugins in Firefox by smacktoward on Thursday October 08, 2015 @03:39PM (#10355523)
> We need to get away from this whole "The browser is a poor man's operating system" model anyway. Let the browser do a great job of browsing hypermedia and then hand off to specialized programs when we want to do something outside that paradigm.

Yes, we should definitely take an entire category of applications that hundreds of millions (billions?) of people use productively every day and throw it out the window because we think they're Doing It Wrong™.

I'm sure their users will understand; if users care about anything, it's that their software be as elegant as it possibly can be.

Re:NPAPI Plugins in Firefox by Excavator on Thursday October 08, 2015 @02:25PM (#10354873)
> We need to get away from this whole "The browser is a poor man's operating system" model anyway. Let the browser do a great job of browsing hypermedia and then hand off to specialized programs when we want to do something outside that paradigm.

Sounds like you're really gonna love WebAssembly then.

https://blog.mozilla.org/luke/2015/06/17/webassembly/

Re:NPAPI Plugins in Firefox by eleh on Thursday October 08, 2015 @02:09PM (#10354738)
> OTOH, maybe this is a win. We need to get away from this

> whole "The browser is a poor man's operating system" model

> anyway. Let the browser do a great job of browsing

> hypermedia

Yes that is the only win I can see as well. Obviously they want to turn browsers from general kitchen utensils to pure entertainment and amusement platforms, for media and information consumption.

(Hm wait, wasn't that what the WWW was supposed to be, back in its early days? Are we going back to the dark ages or is it just the usual turn of history?)

Re:NPAPI Plugins in Firefox by motoboi on Thursday October 08, 2015 @02:34PM (#10354967)
http://xkcd.com/1367/

"Why not skip installing things and make a phone that has every app 'installed' already and just downloads them and runs them on the fly"

What! This is a browser!

Re:NPAPI Plugins in Firefox by codingdave on Thursday October 08, 2015 @04:10PM (#10355795)
What would you prefer? That Mozilla says, "Well, Chrome did it, so we'd better not." That would be asinine.
Re:NPAPI Plugins in Firefox by eleh on Thursday October 08, 2015 @04:37PM (#10356010)
> That would be asinine.

No, absolutely not. That would mark a real position, and maintain a competitive advantage for Mozilla in enterprise environments (where browsers are used for more than playing games and watching videos, and plugins are not substituted from one day to the other).

Apart from that there is nothing wrong with npapi. It's about how it is used, how stable the plugin is, and how trustworthy the vendor of a plugin is. The risks that are involved are the same as for any software, mostly less with sandboxed plugins.

I think, taking away NPAPI is taking away a piece of freedom from the user - the freedom to use plugins. And freedom is just what Mozilla was standing for, a long time. Instead of taking away NPAPI, they should implement a mechanism for trusted plugins, e.g. to load/execute them only when they are cert signed.