Ehsan Akhgari
a8ee3411c7
Backed out changeset d0d75e76d41f (bug 857417) for crashes during tests
2013-04-08 18:48:38 -04:00
Boris Zbarsky
3eba25eee5
Bug 857417. Trigger a fatal assertion when wrapping a wrappercached and nsISupports WebIDL object which has the wrapper cache before the nsISupports in its object layout. r=khuey
2013-04-08 17:04:21 -04:00
Boris Zbarsky
ecc404d587
Bug 688691. Warn when LenientThis actually causes us to not throw. r=ms2ger
2013-04-08 17:04:21 -04:00
Ryan VanderMeulen
24a4c17eff
Backed out changeset a85d21e394c0 (bug 854503) for bustage.
2013-04-06 14:37:33 -04:00
Jacek Szpot
8ce12e971c
Bug 854503 - Rename JS unwrapping functions. r=bholley
2013-04-04 12:14:32 +02:00
Nathan Froyd
c9dfdcad2f
Bug 857254 - add CGTemplatedType and use it everywhere; r=bz
2013-04-02 15:29:03 -04:00
Nathan Froyd
c741af4b3b
Bug 857254 - use CGIfWrapper more consistently; r=bz
2013-04-02 15:09:16 -04:00
Boris Zbarsky
6d1fe7f08a
Bug 856819 part 2. Sort js-implemented interfaces in a given file so that the declarations in C++ come in the right order. r=mccr8
2013-04-03 22:22:16 -04:00
Boris Zbarsky
5f998ce2a9
Bug 856819 part 1. Refactor the dependency-sorting we do for dictionaries so that we can also use it for JS-implemented interfaces. r=mccr8
2013-04-03 22:22:16 -04:00
Boris Zbarsky
0bbbeb9739
Bug 856841. Don't pass in an implicit JSContext based on argument or return value types for JS-implemented interfaces. r=mccr8
2013-04-03 22:22:16 -04:00
Boris Zbarsky
d1d7bbfca7
Bug 852219 part 6. Handle cases when the C++ class we want to actually inherit from is not the one that the WebIDL interface is mapped to. r=mccr8
2013-04-03 22:22:16 -04:00
Boris Zbarsky
0b155803de
Bug 852219 part 4. Fix forward-declarations and includes for JS-implemented interfaces. r=mccr8
2013-04-03 22:22:15 -04:00
Boris Zbarsky
abe07c4a46
Bug 852219 part 3. Handle JS-implemented interfaces having a parent interface. r=mccr8
2013-04-03 22:22:15 -04:00
Boris Zbarsky
e46eb7751d
Bug 852219 part 2. Add an infallible constructor for CallbackObjects which are already in the right compartment and use this to simplify construction of the autogenerated implementation of a JS-implemented WebIDL binding. r=mccr8
2013-04-03 22:22:15 -04:00
Boris Zbarsky
f1a792a7a7
Bug 852219 part 1. Don't mark JS-implemented interfaces with descendant interfaces as final. r=khuey,mccr8
2013-04-03 22:22:15 -04:00
Boris Zbarsky
e46a3bd2f6
Bug 854532. Make _asInstance codegen always produce code in the same order. r=khuey
...
Also fixes whitespace in _hasInstance and makes sure the .pp files are always in the same order
2013-04-03 22:22:14 -04:00
Boris Zbarsky
b105f502e9
Bug 855582 part 2. Make the bindings' various spec arrays const, and make the jitinfo structs static. r=khuey
2013-04-02 20:20:38 -04:00
Boris Zbarsky
1f72f2ad4e
Bug 856215. Fix conversion of sequences of sequences to JS to not screw up its indexing. r=khuey
2013-04-02 20:20:38 -04:00
Boris Zbarsky
436faf79ed
Bug 841429. Fix callback codegen for optional arguments with default values. r=mccr8
...
The change to enum wrapping is just to fix an indentation bug I ran into while reading the generated code for some of these test methods.
2013-04-01 17:17:17 -04:00
Boris Zbarsky
863287ea09
Bug 855025. Always do Xrays for DOM interface objects. r=peterv
2013-03-27 22:47:25 -04:00
Boris Zbarsky
eb4fad3022
Bug 851162. Make the auto-generated WrapObject in JS-implemented WebIDL codegen MOZ_OVERRIDE. r=mccr8
2013-03-26 11:31:54 -04:00
Terrence Cole
20501c8c5a
Bug 841059 - Do not use the ArenaHeader for getAllocKind on JSObject; r=billm
2013-02-14 14:51:07 -08:00
Tom Schuster
045cb0fba7
Bug 828462 - Root Proxy/Wrapper in the browser. r=terrence,bz
2013-03-21 23:23:48 +01:00
Tom Schuster
b8e3b65fa7
Bug 828462 - Root Proxy/Wrapper delete. r=terrence
2013-03-21 23:23:48 +01:00
Tom Schuster
097f3a1110
Bug 828462 - Root Proxy/Wrapper getOwnPropertyNames and keys. r=terrence
2013-03-21 23:23:47 +01:00
Tom Schuster
5a05e27565
Bug 828462 - Root Proxy/Wrapper defineProperty. r=terrence
2013-03-21 23:23:47 +01:00
Tom Schuster
b67362a266
Bug 828462 - Root Proxy/Wrapper get(Own)PropertyDescriptor. r=terrence
2013-03-21 23:23:47 +01:00
David Zbarsky
dddd48eaf4
[Bug 852843] SVGZoomAndPan interface object not being instantiated r=bz
2013-03-21 01:33:56 -04:00
Ralph Giles
53a5230fc8
Bug 852350 - Support [Pref] decorator on interfaces. r=bz
...
Generate a check calling Preferences::GetBool() directly
from the binding's PrefEnabled so the wrapped class doesn't
need to implement it.
This allows defining the preference directly in webidl.
Assumes only one preference value is set. Also removes pointless
override methods which just call the superclass.
---
dom/bindings/Codegen.py | 37 +++++++++++++++++++++++++------------
1 file changed, 25 insertions(+), 12 deletions(-)
Generate a check calling Preferences::GetBool() directly
from the binding's PrefEnabled so the wrapped class doesn't
need to implement it.
This allows defining the preference directly in webidl.
Assumes only one preference value is set. Also removes pointless
override methods which just call the superclass.
---
dom/bindings/Codegen.py | 37 +++++++++++++++++++++++++------------
1 file changed, 25 insertions(+), 12 deletions(-)
2013-03-20 11:18:00 -07:00
Boris Zbarsky
e03d4dbee4
Bug 848386 part 1. Don't preserve our wrapper until we have one so unforgeable property setup won't try to preserve it. r=peterv
2013-03-20 12:22:26 -04:00
Boris Zbarsky
a296f060db
Bug 851584. Don't generate a Length() on our C++ example class to handle our indexed getter if we already have a 'length' attribute in the WebIDL. r=jst
2013-03-19 21:47:47 -04:00
Ryan VanderMeulen
186e10f5d2
Merge m-c to inbound.
2013-03-19 18:01:10 -04:00
Peter Van der Beken
4ce9ea964b
Fix for bug 850847 (Fix dictionary in generated example for workers). r=bz.
...
--HG--
extra : rebase_source : 75117320f23b5af82eb0ee7648c3e0dd876fe19e
2012-12-17 15:32:10 +01:00
Peter Van der Beken
5cf619c9f2
Bug 812617 - Provide a JSBindingFinalized hook for the native classes using Web IDL bindings to know when their JS wrapper has been finalized; r=bzbarsky
...
--HG--
extra : rebase_source : bb5059a170f3c2f4aa977190fceea421b41b5e58
2013-03-17 21:47:12 -04:00
David Zbarsky
389d008544
Bug 850958 - Implement instanceof without relying on nsIDOM interfaces r=bz
2013-03-18 19:14:39 -04:00
Andrew McCreight
b35d925658
Bug 827486, part 6 - generate headers and code for JS implemented WebIDL classes. r=bz
2013-03-18 16:05:51 -07:00
Andrew McCreight
c32fccc952
Bug 827486, part 5: add the main JS impl code gen. r=bz
2013-03-18 16:05:38 -07:00
Andrew McCreight
eb93cdc9ad
Bug 827486, part 4: copy parts of example generator to JS impl generator. r=bz
2013-03-18 16:05:23 -07:00
Andrew McCreight
cb4fc817c0
Bug 827486, part 3 - add dependencies for CGBindingImplClass. r=bz
2013-03-18 16:05:06 -07:00
Andrew McCreight
e00f4bc0d2
Bug 827486, part 2 - Refactor example class codegen into common base class. r=bz
2013-03-18 16:04:46 -07:00
Kyle Huey
75a0778ab2
Back out Bug 827486 for PGO bustage. CLOSED TREE
2013-03-18 13:00:00 -07:00
Andrew McCreight
778d3abc1c
Bug 827486, part 6 - generate headers and code for JS implemented WebIDL classes. r=bz
2013-03-18 10:19:42 -07:00
Andrew McCreight
3344412262
Bug 827486, part 5: add the main JS impl code gen. r=bz
2013-03-18 10:19:42 -07:00
Andrew McCreight
50e5e4bede
Bug 827486, part 4: copy parts of example generator to JS impl generator. r=bz
2013-03-18 10:19:41 -07:00
Andrew McCreight
5df573f3a1
Bug 827486, part 3 - add dependencies for CGBindingImplClass. r=bz
2013-03-18 10:19:41 -07:00
Andrew McCreight
f46f1584c9
Bug 827486, part 2 - Refactor example class codegen into common base class. r=bz
2013-03-18 10:19:41 -07:00
Phil Ringnalda
e2fa3980d3
Back out 2ea5f267af77:218356c595fc (bug 827486) for Windows builds dying with an obscure "MemoryError"
...
CLOSED TREE
2013-03-17 16:40:54 -07:00
Andrew McCreight
9889557035
Bug 827486, part 6 - generate headers and code for JS implemented WebIDL classes. r=bz
2013-03-17 09:56:13 -07:00
Andrew McCreight
4eb4b866dd
Bug 827486, part 5: add the main JS impl code gen. r=bz
2013-03-17 09:56:05 -07:00
Andrew McCreight
2455aa8e05
Bug 827486, part 4: copy parts of example generator to JS impl generator. r=bz
2013-03-17 09:55:55 -07:00