Commit Graph
56 Commits
Author SHA1 Message Date
Jon Coppeard 5f0e17f56a Bug 885310 - 1 Rename JSHandleFoo in the browser r=bz 2013-06-21 14:12:46 +01:00
Jon Coppeard 6ac7794926 Bug 884371 - Remove JSMutableHandleXXX from the browser r=bz 2013-06-19 11:32:27 +01:00
David Zbarsky 679cefe081 Bug 868312 - Some more rooting fixes for dom r=bz 2013-05-10 22:39:45 -04:00
David Zbarsky 5816d6ee1a Bug 868312: Various dom rooting fixes, part 2 r=bz 2013-05-04 03:53:00 -04:00
Xin Zhang af100eed90 Bug 857385 - Make various JSFunctionSpec arrays const. r=waldo 2013-04-22 14:15:49 -07:00
Xin Zhang a59f6beade Bug 857385 - Make various JSPropertySpec arrays const. r=waldo 2013-04-22 14:15:36 -07:00
Jeff Walden 356abe8832 Bug 858677 - Fix up code not built by SpiderMonkey to use the newly-changed deletion signatures. r=bholley, r=billm 2013-04-05 21:22:55 -07:00
Boris Zbarsky 6b1b61bc7c Bug 854001 part 1. Give workers that are pretending to be on WebIDL bindings separate JSClasses for instance objects and prototype objects. r=peterv,bent 2013-03-28 15:43:33 -04:00
Peter Van der Beken f9974cb429 Fix for bug 815149 (Add support for SOWs and XBL bindings in new DOM bindings). r=bz. 2012-09-12 22:29:30 +02:00
Boris Zbarsky 1364e75c6a Bug 815803. Now that JSSLOT_PROXY_PRIVATE == 0, simplify binding code that had to deal with different slot indices on proxy and non-proxy objects. r=peterv 2012-12-06 15:21:19 -05:00
Peter Van der Beken d954a0b506 Fix for bug 818219 (Replace HTMLElement quickstubs with new binding methods) - Remove hardcoded interface list in workers. r=bz. 2012-12-06 11:41:14 +01:00
Peter Van der Beken 74736c6026 Fix for bug 778152 (Content window does not have an XMLHttpRequest property when accessed via an Xray wrapper in a subscript). r=bz.
Switch from using the interface objects from the Xrays compartment to wrapping
interface objects and interface prototype objects in Xrays. Make dom binding
Xrays deal with both instance objects and interface and interface prototype
objects.
2012-10-09 20:50:27 +02:00
Bobby Holley 351440d25e Bug 761695 - Implement expando traps for ProxyXrayTraits DOMXrayTraits. r=peterv
For new DOM proxies, we could probably use the Xray expando machinery for the
regular expando object as well, and free up one of the reserved slots. That's
more than I want to bite off for the moment, though.

I also decided not to block on bug 760095 and just kick the problem of globals
with new binding down the road a little bit.
2012-10-05 18:59:23 +02:00
Andrea Marchesini 2c738486a3 Bug 720083 - Workers: add support for transferable objects from HTML5 spec. r=sphink, r=bent 2012-10-03 18:19:22 -04:00
Phil Ringnalda c3fdaee1cc Back out b24a73b2c617 for Windows build bustage and test_xhr_timeout.html failure 2012-09-27 21:24:42 -07:00
Andrea Marchesini a50b958258 Bug 720083 - Workers: add support for transferable objects from HTML5 spec. r=sphink, r=bent 2012-09-27 23:05:59 -04:00
Ms2ger 9b5448458d Bug 768793 - Remove DOMJSClass::mGetWrapperCacheVTableOffset; r=khuey 2012-09-06 09:14:49 +02:00
Peter Van der Beken f329503b85 Fix for bug 785188 (Make Xrays work with newest DOM list bindings). r=mrbkap. 2012-06-06 21:52:26 +02:00
Peter Van der Beken 2e8d72e06f Fix for bug 768692 (Move DOM list binding generation to the new DOM binding codegen). r=bzbarsky. 2012-05-22 15:46:20 +02:00
Peter Van der Beken 295ef49b0c Fix for bug 775543 (Passing a Worker object to console.log() results in a crash). r=bz. 2012-08-22 18:16:14 -07:00
Eric Faust 1d3eb2cd90 Bug 766448 - Refactor JSPropertySpec and JS_DefineProperties to accept JSJitInfos. (r=Waldo) 2012-08-07 22:26:18 -07:00
Ehsan Akhgari 7917f7709f Merge the nullptr conversion from mozilla-central into mozilla-inbound 2012-07-30 10:28:15 -04:00
Aryeh Gregor 8b4a23fc4c Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Brian Hackett 6c4ed4bfd1 Use HandleValue and MutableHandleValue in API hooks where possible, bug 776579. r=billm, sr=dmandelin 2012-07-30 05:19:09 -06:00
Boris Zbarsky bb37c2a5a0 Bug 761707 part 2. Drop the vestigial jsclass argument to UnwrapDOMObject. r=bholley 2012-06-06 15:59:46 -04:00
Boris Zbarsky 1ccda2efe0 Bug 761707 part 1. Rip out the various infrastructure for allowing different slot indices on different DOMJSClass instances. r=bholley 2012-06-06 15:59:46 -04:00
Peter Van der Beken 08272d6ed2 Fix for bug 741263 (Paris bindings constructors shouldn't abuse reserved identifiers). r=bz. 2012-04-26 22:57:33 +02:00
Gervase Markham cb6a072c2a Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Brian Hackett b4c002a912 Use handles in API object hooks where possible, bug 750733. r=billm 2012-05-19 15:03:45 -07:00
Brian Hackett 4f8baecc9e Backed out changeset 5fc7462dd394 for android orange. 2012-05-19 11:52:55 -07:00
Brian Hackett b7d2500332 Use handles in API object hooks where possible, bug 750733. r=billm 2012-05-19 09:48:09 -07:00
Boris Zbarsky a70bedac4b Bug 749485. Switch new DOM bindings to using a struct for keeping track of failures for fallible methods. r=peterv,bent
ErrorResult is in a separate header file so it can be included from all over the
place without having to pull in mozilla/dom/Utils.h and all the xpconnect gunk
that needs.
2012-05-05 21:15:11 -04:00
Phil Ringnalda 1aed450286 Back out 1907bf7e6d7c (bug 749485) for build bustage 2012-05-05 20:33:59 -07:00
Boris Zbarsky 1cf6310e05 Bug 749485. Switch new DOM bindings to using a struct for keeping track of failures for fallible methods. r=peterv,bent
ErrorResult is in a separate header file so it can be included from all over the
place without having to pull in mozilla/dom/Utils.h and all the xpconnect gunk
that needs.
2012-05-05 21:15:11 -04:00
Boris Zbarsky 830492af6c Bug 742217. Reduce the use of nested namespaces in our binding code. r=peterv,bent
In the new setup, all per-interface DOM binding files are exported into
mozilla/dom.  General files not specific to an interface are also exported into
mozilla/dom.

In terms of namespaces, most things now live in mozilla::dom.  Each interface
Foo that has generated code has a mozilla::dom::FooBinding namespace for said
generated code (and possibly a mozilla::bindings::FooBinding_workers if there's
separate codegen for workers).

IDL enums are a bit weird: since the name of the enum and the names of its
entries all end up in the same namespace, we still generate a C++ namespace
with the name of the IDL enum type with "Values" appended to it, with a
::valuelist inside for the actual C++ enum.  We then typedef
EnumFooValues::valuelist to EnumFoo.  That makes it a bit more difficult to
refer to the values, but means that values from different enums don't collide
with each other.

The enums with the proto and constructor IDs in them now live under the
mozilla::dom::prototypes and mozilla::dom::constructors namespaces respectively.
Again, this lets us deal sanely with the whole "enum value names are flattened
into the namespace the enum is in" deal.

The main benefit of this setup (and the reason "Binding" got appended to the
per-interface namespaces) is that this way "using mozilla::dom" should Just
Work for consumers and still allow C++ code to sanely use the IDL interface
names for concrete classes, which is fairly desirable.
2012-05-03 00:35:38 -04:00
Igor Bukanov c7e7021207 Bug 737365 - stop using the cx during finalization, part 1.
This part changes the signatures for various finalization API to take
not JSContext* but rather either JSFreeOp structure or its
library-private counterpart FreeOp. These structures wrap parameters
that are passed to the finalizers removing most of explicit dependencies
on JSContext in the finalization code.
2012-03-19 15:34:55 +01:00
Peter Van der Beken 6233c150b8 Fix for bug 740069 (Generate JS bindings in C++ with a python script for DOM objects on the main thread and in workers. Infrastructure and new bindings for XMLHttpRequest). Patch by bent/bz/bholley/jst/khuey/peterv, r=bent/bz/bholley/jlebar/khuey/peterv/sicking/smaug. 2012-03-30 21:42:20 -07:00
David Mandelin f0690b22d1 Bug 730511: remove obsolete typedefs intN, uintN, r=luke 2012-02-28 15:11:11 -08:00
Igor Bukanov 0265d1f860 bug 726944 - Remove JSClass::xdrObject and related functionality. r=luke 2012-02-13 09:02:21 +01:00
Bill McCloskey ca293fdba6 Bug 641025 - Incremental GC (r=igor,smaug,roc,cdleary,gregor) 2012-02-17 14:35:20 -08:00
Igor Bukanov 6fefb1df81 bug 724310 - drop cx argument from JSObject field and fixed slots infallible API. r=:Waldo 2012-02-05 21:07:23 +01:00
Igor Bukanov ae7ab9b03a backout merge for bug 724310. r=irc 2012-02-09 21:28:22 +01:00
Igor Bukanov 12633fbfdd bug 723517 - drop cx argument from JSObject field and fixed slots infallible API. r=:Waldo 2012-02-05 21:07:23 +01:00
Igor Bukanov 889c9d4073 bug 723517 - Drop cx argumrent from JS_GetClass(cx, obj). r=luke 2012-02-04 01:54:57 +01:00
Igor Bukanov 4856d2ecff bug 723510 - Workers: double-error reporting in location.toString and incorrect assumption about JS_GetInstancePrivate. r=bent 2012-02-03 19:00:08 +01:00
Ben Turner 635860ef25 Bug 718202. r=jst. 2012-01-18 10:05:38 -08:00
Ms2ger 0da18b7a47 Bug 677079 - Part d: Move js_GetErrorMessage to jsfriendapi.h; r=jorendorff 2012-01-15 09:13:08 +01:00
Blake Kaplan 0a5d56105e Bug 698621 - Part 1: Implement cross-thread dispatching for web workers. r=bent 2011-12-05 15:58:27 +08:00
Brian Hackett 18d7a22ab7 Merge MC -> JM 2011-12-03 10:34:26 -08:00
Felix Fung 316ce7cd16 Bug 498543 - Null-checking JS_THIS_OBJECT Results. r=jwalden 2011-12-01 13:30:28 -08:00