Firefox 扩展和插件有什么区别?
Firefox 中有插件和扩展。您能向我解释一下为什么这些插件有不同的名称和选项卡吗?它们的差异如此之大以至于需要不同的名称吗?我认为区分这些东西有点不自然,扩展具有越来越多的功能,与插件相比,它们缺少什么?
In Firefox there are plugins and extensions. Could you please explain to me why these addons have different name and tabs ? Does they differ so much so they need different names? I think it's a little unnatural to differ these things, extensions have so much and more functionality, what they lack for comparing to plugins?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
区别既有历史的,也有现实的:
canvas
- 这完全是另一回事:网页的本机部分))在网页内部并自行处理,其方式很大程度上独立于浏览器。因此,尽管插件和扩展可能看起来相关,但它们背后的技术却截然不同。
The difference is both historical and real:
canvas
- that's something else altogether: a native part of the webpage)) inside the webpage and handle it themselves, in a way that's largely independent of the browser.So, although the plugins and extensions might appear to be related, they're very different technologies behind the scenes.
根据 Mozilla 的说法,插件可以帮助浏览器显示内容,例如播放媒体。扩展实际上为浏览器添加了新功能。
请参阅此处的前几段:
https://developer.mozilla.org/en/extensions
According to Mozilla, plugins help the browser display content, such as playing media. Extensions actually add new functionality to the browser.
See the first couple paragraphs here:
https://developer.mozilla.org/en/extensions
一种是与 Firefox 并行运行的程序。他们得到一个画布,当他们在画布上绘画时,Firefox 会渲染它。著名的例子:Flash、Java、QuakeLive。
另一种是在 firefox 的 javascript 解释器/编译器中运行的程序。它们更直接地扩展了 Firefox 的功能,因为它们可以访问 Firefox 的内部结构,而不仅仅是一个画布。此外,它们更加可移植,因为它们不需要操作系统的底层支持。
两种方法都有优点和缺点,并且它们解决不同的任务。
One are programs which runs side-by-side of firefox. They get a canvas and when they paint on the canvas, firefox renders it. Notable examples: Flash, Java, QuakeLive.
The other are programs which run in the javascript interpreter/compiler of firefox. They extend firefox functionality more directly, since they have access to the firefox internals and are not merely a canvas. Also, they are much more portable since they do not require underlying support of the operating system as much.
There are advantages and disadvantages to both approaches, and they solve different tasks.