I've never used webidl bindings before. Sounds to me that I can somehow use mozilla::dom::Date in a way that it is part of the xpcom object?

If there is a way to achieve this without jsapi, then I'm fine with it. Implementing it just shouldn't become overly complicated.

Philipp

On 9/20/13 9:21 PM, Bobby Holley wrote:
Can you manipulate Dates using the WebIDL bindings instead?


On Fri, Sep 20, 2013 at 12:12 PM, Philipp Kewisch <mozi...@kewis.ch> wrote:

On 9/20/13 8:22 PM, Benjamin Smedberg wrote:

On 9/20/13 9:06 AM, Benjamin Smedberg wrote:

So I would like to propose that we link the JS libraries statically
into libxul and stop exporting JSAPI symbols entirely. This will
effectively prevent extensions from using it.

To answer questions I received privately about the impact of addon

compat. This *will* affect a few addons, but not very many. Searching
the addon MXR, I think the only affected addon is Prism, which is
long-gone. This will also affect the Norton Toolbar addon, which
currently uses JSAPI and will need to change; I already have contacts at
Norton about this.

--BDS


What about JS_NewDateObject, JS_NewDateObjectMsec, JS_ObjectIsDate,
js_DateIsValid? Most of these are in jsapi.h, and we need it in Lightning
for this code:

http://mxr.mozilla.org/comm-**central/source/calendar/base/**
backend/libical/calDateTime.**cpp#597<http://mxr.mozilla.org/comm-central/source/calendar/base/backend/libical/calDateTime.cpp#597>

We are not quite ready to get rid of the libical backend right now, so
removing these functions without replacement will cause some complications
for Lightning.

Philipp

______________________________**_________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/**listinfo/dev-platform<https://lists.mozilla.org/listinfo/dev-platform>


_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to