Re: how to have browser environment in SpiderMonkey as an embedded application?
Terrence Cole <[email protected]> Fri, 15 Jul 2016 09:49:45 -0700
| Newsgroups | gmane.comp.mozilla.devel.jseng |
|---|---|
| Message-ID | <CADE9bc_CmAEtZ3S9g3irjUsazjkbCnwhf1zOdp6oKj37Jkwv7g@mail.gmail.com> |
Your best be is probably to try SpiderNode: https://github.com/mozilla/spidernode. It's still under active development, so expect some rough edges to the experience. Good luck! On Fri, Jul 15, 2016 at 1:20 AM, <[email protected]> wrote: > Hi, > > > I need to use the Spidermonkey as an embedded JS engine in a C++ project. > However, I need some browser functionalities like supporting XHR, DOM and > some HTML5 features such as websocket. As it says on the Spidermonkey's > webpage, it doesn't support these matters and they are handled by other > Firefox's components. > > I have tested some simulation libraries like domjs and env.js, but, due to > those are NodeJS libraries, aren't appropriate for such this project. > > I was wondering if there is any other library, or manner to solve this > problem and have browser environment in the Spidermonkey, or I have to > write a library for this purpose? > > Meantime, I need to manipulate some JS functionalities. For instance, > capture all network communications, including XHR, Websockets , etc. and or > hock all some especial functions call. Can I use different part of Mozilla > for example DOM parser in my application? > > > Thanks in advance > _______________________________________________ > dev-tech-js-engine mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-tech-js-engine >