Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: How to embed an application into Firefox viewport?

4 views
Skip to first unread message

Benjamin Smedberg

unread,
Dec 17, 2009, 9:52:35 AM12/17/09
to
On 12/17/09 12:20 AM, Mars Depp wrote:

> We are setting about embedding a client application into Firefox viewport.
> It is the final effect that we drag a given file into browser and then the
> application startup,
> which is the same as AdobeReader embedded in browser reading PDF.
>
> We have done it in IE. Firstly we wrote some information to registry.
> With a given file's being dragged into browser,
> main program (non-plugin) run in embed mode inside the viewport.
>
> How to achieve it in Firefox?

Well, by posting to the mdt.plugins newsgroup you've mostly answered your
question: you write an NPAPI plugin. The plugin tells the browser what MIME
types it can handle (and also which local file extensions map to those MIME
types), and the browser will instantiate the plugin when the user tries to
load data of that type (either from the local disk or from the web).

--BDS

Mars Depp

unread,
Dec 21, 2009, 5:24:03 AM12/21/09
to dev-tech...@lists.mozilla.org
Glad to hear from you, Ben.

Could you do me a favor to profile the flow, or give an example?

Thanks


On Thu, Dec 17, 2009 at 10:52 PM, Benjamin Smedberg
<benj...@smedbergs.us>wrote:

> _______________________________________________
> dev-tech-plugins mailing list
> dev-tech...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-tech-plugins
>

Benjamin Smedberg

unread,
Dec 21, 2009, 8:40:42 AM12/21/09
to
On 12/21/09 5:24 AM, Mars Depp wrote:
> Glad to hear from you, Ben.
>
> Could you do me a favor to profile the flow, or give an example?

The documentation starting point is
https://developer.mozilla.org/en/Gecko_Plugin_API_Reference

If you have specific questions that the docs don't answer, feel free to ask
here!

--BDS

0 new messages