Firefox扩展:本地代码执行? [英] Firefox extension: native code execution?

查看:122
本文介绍了Firefox扩展:本地代码执行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有可能写一个扩展,运行原生的,平台相关的代码?我是一个扩展新手(这是一个短语!):),请你指点一下关于这个问题的好材料吗? (好的关键字饲料给谷歌是足够的)



我想在Firefox中加入一个GtkMenu

编辑:
我开始检查Gecko SDK,这是一个相当大的主题,我不确定这是我想要的。



我会很高兴用一个友好的手册(这不是一个原始的参考,而是一些关于如何使用XPCOM的扩展的教程(如果这是这个方法)好的关键字仍然值得赞赏。

.org / en / Gecko_SDKrel =nofollow noreferrer> Gecko SDK 。



您可以使用它制作可移植的C ++原生代码是.xpm zip文件中包含JavaScript封装的XPCOM对象。



我还没有尝试过,但是可以使用通常的路由并编写插件,我的意思是扩展,在JavaScript也。


Is it possible to write an extension that runs native, platform-dependent code? I'm an extension-newbie (what a phrase!) :), can you please point me towards good material on this subject? (good keywords to feed to Google are enough)

(I would like to put a GtkMenu in Firefox)

Edit: I started checking out the Gecko SDK, and it's a rather big subject, and I'm not sure this is what I want.

I'd be happy with a friendly manual (which is not a raw reference, but rather some kind of tutorial on how to make extensions that utilize XPCOM (if that is the way). Good keywords are still appreciated.

解决方案

Check out the Gecko SDK.

You can use it make portable C++ native code firefox extensions which I believe are XPCOM objects with JavaScript wrappers in the .xpm zip file.

I haven't tried it, but you can go the usual route and write the plugin, I mean extension, in javascript also.

这篇关于Firefox扩展:本地代码执行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆