Commit Graph

973 Commits

Author SHA1 Message Date
Boris Zbarsky
19bcd12b01 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
Andrea Marchesini
3d17116fda Bug 851470 - Attr to WebIDL. r=Ms2ger 2013-04-09 17:29:47 +02:00
Ehsan Akhgari
bc953f2564 Bug 859594 - Remove AudioSourceNode; r=bzbarsky 2013-04-08 22:45:02 -04:00
Boris Zbarsky
ecb207e1b0 Back out Bug 810644 part 2 to fix b2g test_closeOnGC.html orange. 2013-04-08 22:55:15 -04:00
Ehsan Akhgari
dd2b8fecee Backed out changeset d0d75e76d41f (bug 857417) for crashes during tests 2013-04-08 18:48:38 -04:00
Boris Zbarsky
2cfc65d93f Bug 856428. Don't try to root an uninitialized value. r=peterv 2013-04-08 17:05:22 -04:00
Boris Zbarsky
147a9ec190 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
0fb62d62f7 Bug 688691. Warn when LenientThis actually causes us to not throw. r=ms2ger 2013-04-08 17:04:21 -04:00
Boris Zbarsky
36cc04013e Bug 810644 part 2. Eliminate the now-unused CallEventHandler. r=smaug, sr=peterv 2013-01-03 14:02:42 -05:00
Ryan VanderMeulen
4df26dd5ac Backed out changeset a85d21e394c0 (bug 854503) for bustage. 2013-04-06 14:37:33 -04:00
Jacek Szpot
ab74228011 Bug 854503 - Rename JS unwrapping functions. r=bholley 2013-04-04 12:14:32 +02:00
Nathan Froyd
2a3d90721f Bug 857254 - add CGTemplatedType and use it everywhere; r=bz 2013-04-02 15:29:03 -04:00
Nathan Froyd
5db1cc6540 Bug 857254 - use CGIfWrapper more consistently; r=bz 2013-04-02 15:09:16 -04:00
Boris Zbarsky
381b988a3b Bug 855700. Make returning an nsIVariant from a WebIDL interface work. r=smaug 2013-04-03 22:22:16 -04:00
Boris Zbarsky
33622efb8b 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
7879480d35 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
b6f5bb741b 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
48d68f9676 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
f9536eed2b Bug 852219 part 5. Add tests for JS-implemented interfaces inheriting from other interfaces. r=mccr8 2013-04-03 22:22:15 -04:00
Boris Zbarsky
94f45fb924 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
793e37ca3f Bug 852219 part 3. Handle JS-implemented interfaces having a parent interface. r=mccr8 2013-04-03 22:22:15 -04:00
Boris Zbarsky
d21bd00b48 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
38246c449e 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
142568ca7e 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
Jose Cortes
7b76878f61 Bug 842186 - Replace use of jsval with JS::Value in h and cpp files in the dom/bindings/ dom/plugins/ dom/src/ dom/activities/ directories. r=jwalden
--HG--
extra : rebase_source : 2757a7ab265153fa4c769a69a4947b9258e4413e
2013-04-02 16:05:37 -07:00
Boris Zbarsky
203cd29378 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
60943bc7bb 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
a92f9b2e2c Bug 856833 part 3. Rip out no longer needed proxy-unwrapping code. r=waldo 2013-04-02 20:20:37 -04:00
David Zbarsky
b516c059a7 Bug 855597: Rename DOMSVGTransform to SVGTransform r=jwatt
--HG--
rename : content/svg/content/src/DOMSVGTransform.cpp => content/svg/content/src/SVGTransform.cpp
rename : content/svg/content/src/DOMSVGTransform.h => content/svg/content/src/SVGTransform.h
2013-04-02 15:17:41 -04:00
David Zbarsky
0d49bfddd3 Bug 855597: Make SVGTransform not inherit nsISupports r=longsonr 2013-04-02 15:17:40 -04:00
Ehsan Akhgari
041579978f Bug 855990 - Part 1: Implement the DOM bindings to AnalyserNode; r=bzbarsky 2013-03-31 23:41:14 -04:00
Bobby Holley
95b24d37ae Bug 854480 - Remove old-style unwrapping from dom/bindings bindings. r=bz 2013-04-01 15:17:50 -07:00
Boris Zbarsky
f9be62fa75 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
Kyle Machulis
72a717a860 Bug 855465 - Add emacs python mode comments to moz.build files; r=gps 2013-04-01 11:36:59 -07:00
Jan Varga
f6d1ba4c72 Bug 854323 - Move IDBFactory to Paris bindings. r=khuey 2013-03-31 10:18:30 +02:00
Eddy Bruel
ac26949ffe Bug 789897 - Implement isExtensible and preventExtensions traps for proxies, including scriptable direct proxies, and in the various wrapper classes. Also move non-static JSObject::preventExtensions to static ObjectImpl::preventExtensions, for handle correctness. Patch is a semi-tag-team effort with jwalden. r=jwalden, r=ejpbruel, r=bholley, r=two-turtle-doves-and-a-partridge-in-a-pear-tree
--HG--
extra : rebase_source : 156d2c22499372fceb60d130e363a3685e68b9fc
2013-03-22 19:43:03 -07:00
Kyle Machulis
43628a7867 Backout for changeset 03452b187c14 (Bug 855465) due to bustage on a CLOSED TREE; r=qdot 2013-03-29 15:12:58 -07:00
Kyle Machulis
334c0800cf Bug 855465 - Add emacs python mode comments to moz.build files; r=gps
--HG--
extra : rebase_source : 004a756492323e1a049586e85b3be5037159df20
2013-03-29 13:56:18 -07:00
Ryan VanderMeulen
114ddf1599 Backed out bug 789897 due to regressions. 2013-03-29 14:07:32 -04:00
Olli Pettay
040b911567 Bug 855091 - Paris bindings for WheelEvent, r=peterv
--HG--
extra : rebase_source : 44424189a53331aef5ca2779ede262adaccc9800
2013-03-28 16:57:33 +02:00
Olli Pettay
2293733a33 Bug 854999 - Paris binding for SimpleGestureEvent, r=peterv
--HG--
extra : rebase_source : af491dbd2066c00a80a46d8a82e65403d12e83d5
2013-03-28 16:24:28 +02:00
Olli Pettay
16a98eb1f0 Bug 855241 - Paris binding for ScrollAreaEvent, r=peterv
--HG--
extra : rebase_source : e838d252fdeba9c4effd7abae2c7f9843552ed04
2013-03-28 16:21:20 +02:00
Olli Pettay
894597f330 Bug 855110 - Paris binding for XULCommandEvent, r=peterv
--HG--
extra : rebase_source : cf971d766e2b07a56b0c8b79d1109f6d77eaad27
2013-03-28 16:19:10 +02:00
Olli Pettay
81fc5e8124 Bug 855522 - Paris binding for ClipboardEvent, r=peterv
--HG--
extra : rebase_source : d88764afac5e7594d16c4d6625b18ec0b75440f2
2013-03-28 16:11:21 +02:00
Terrence Cole
1ffd59927b Bug 855145 - DeMACROize the JS tracing interfaces; r=billm,mccr8
--HG--
extra : rebase_source : 915c80052b4412f653033eb5fc4d4f96c5d49bd5
2013-03-26 15:10:34 -07:00
Boris Zbarsky
2879fc9c57 Bug 854001 part 2. Remove a null check in bindings code that is no longer needed because workers no longer use a DOMJSClass for prototype objects. r=peterv,bent 2013-03-28 15:43:33 -04:00
Andrea Marchesini
e575c7855f Bug 825196 - Convert HTMLInputElement to WebIDL. r=Ms2ger 2013-03-28 15:41:32 -04:00
Jeff Walden
e21bd39ae2 Bug 789897 - Make BaseProxyHandler::{isExtensible,preventExtensions} pure virtual. r=bholley
--HG--
extra : rebase_source : 6c3bada30b00877f0388baf8a72e18adf9636750
2013-03-28 00:19:40 -07:00
Boris Zbarsky
6020a94656 Bug 855025. Always do Xrays for DOM interface objects. r=peterv 2013-03-27 22:47:25 -04:00
David Zbarsky
d32685c9cc Bug 854629 Part 0: Remove the rest of XPIDL bindings for SVG elements r=Ms2ger 2013-03-27 21:23:10 -04:00
Guilherme Goncalves
b8efeb2286 Bug 650295 - Implement main state machine for speech recognition. r=smaug 2013-03-27 14:13:57 -07:00
Kyle Huey
f60ea4137a Bug 854225 - Delete the files from distclean instead of clean to fix frequent PGO bustage. r=glandium 2013-03-26 13:02:41 -04:00
Andrea Marchesini
64e6da38ab Bug 852620 - Convert SVGRect to WebIDL, r=Ms2ger 2013-03-26 16:53:13 +01:00
Boris Zbarsky
57ca2ed5ab Bug 851162. Make the auto-generated WrapObject in JS-implemented WebIDL codegen MOZ_OVERRIDE. r=mccr8 2013-03-26 11:31:54 -04:00
Boris Zbarsky
81ed36b9a0 Bug 848796 part 3. Convert XULDocument to WebIDL. r=peterv 2013-03-26 11:31:54 -04:00
Olli Pettay
567675450f Bug 854573 - Paris binding for CompositionEvent, r=peterv
--HG--
extra : rebase_source : 3e04e198a329649d7e1f306a31cf96485f0afc0d
2013-03-26 13:45:45 +02:00
Olli Pettay
fa2ed308e5 Bug 847590 - Paris binding for BeforeUnloadEvent, r=peterv
--HG--
extra : rebase_source : d249e7a7e61c39ccba52a10234e2260b048c941d
2013-03-26 13:45:39 +02:00
William Chen
591ce8a1df Bug 818976 - Part 2: Implement template element interface. r=mrbkap,bz 2013-03-26 00:15:23 -07:00
Boris Zbarsky
5bc07200ef Bug 832899 followup to add a test. 2013-03-22 23:47:58 -04:00
Terrence Cole
a7eafe32dc Bug 841059 - Do not use the ArenaHeader for getAllocKind on JSObject; r=billm 2013-02-14 14:51:07 -08:00
Tom Schuster
a1663a0e87 Bug 828462 - Root Proxy/Wrapper in the browser. r=terrence,bz 2013-03-21 23:23:48 +01:00
Tom Schuster
787f786f96 Bug 828462 - Root Proxy/Wrapper delete. r=terrence 2013-03-21 23:23:48 +01:00
Tom Schuster
b6725433ce Bug 828462 - Root Proxy/Wrapper getOwnPropertyNames and keys. r=terrence 2013-03-21 23:23:47 +01:00
Tom Schuster
aaa3687e9b Bug 828462 - Root Proxy/Wrapper defineProperty. r=terrence 2013-03-21 23:23:47 +01:00
Tom Schuster
950e87f7e8 Bug 828462 - Root Proxy/Wrapper get(Own)PropertyDescriptor. r=terrence 2013-03-21 23:23:47 +01:00
David Zbarsky
455f0cd757 [Bug 852843] SVGZoomAndPan interface object not being instantiated r=bz 2013-03-21 01:33:56 -04:00
Ralph Giles
9ece62c4ba 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
a804a3767b 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
df5fd49632 Bug 852846. Make .style [PutForwards=cssText]. r=ms2ger 2013-03-20 12:22:25 -04:00
Phil Ringnalda
3b7e0c1622 Back out 26f0d590a021, d92e88a18263, 5a2d12a34466 (bug 846995) for not building
CLOSED TREE
2013-03-19 20:20:38 -07:00
David Zbarsky
557f87694f Bug 846995 Part 3: Rename DOMSVGAnimatedTransformList and kill nsISupports r=jwatt
--HG--
rename : content/svg/content/src/DOMSVGAnimatedTransformList.cpp => content/svg/content/src/SVGAnimatedTransformList.cpp
rename : content/svg/content/src/DOMSVGAnimatedTransformList.h => content/svg/content/src/SVGAnimatedTransformList.h
2013-03-19 22:31:44 -04:00
David Zbarsky
c394b85647 Bug 846995 Part 1: Fix all the files that reference SVGAnimatedTransformList r=jwatt 2013-03-19 22:31:44 -04:00
Boris Zbarsky
d0b977f25f 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
Mike Shal
7ecea60097 Bug 844654 - Part 2: Move MODULE to moz.build; rs=gps 2013-03-19 11:47:00 -07:00
Ryan VanderMeulen
4de0c7f60e Merge m-c to inbound. 2013-03-19 18:01:10 -04:00
Peter Van der Beken
9843ac8fc6 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
Jon Coppeard
3dcda9b143 Bug 849273 - Investigate splitting the js and JS namespaces r=terrence
--HG--
extra : rebase_source : 2b131d0177f02e5f0e89398545481fcacbfde00f
2013-03-19 10:35:41 +00:00
Kyle Huey
80acba6691 No bug: Hack around our build system woes. r=me CLOSED TREE 2013-03-19 07:25:31 -07:00
Andrea Marchesini
25ab895ca1 Bug 841493 - HTMLMediaElement - concrete: False, r=Ms2ger 2013-03-19 13:29:32 +01:00
Andrea Marchesini
e85da75cfc Bug 841493 - Convert HTMLVideoElement to WebIDL, r=Ms2ger 2013-03-19 13:28:34 +01:00
Andrea Marchesini
a7e3b326ad Bug 841493 - Rename nsHTMLVideoElement to HTMLVideoElement, r=Ms2ger
--HG--
rename : content/html/content/public/nsHTMLVideoElement.h => content/html/content/public/HTMLVideoElement.h
rename : content/html/content/src/nsHTMLVideoElement.cpp => content/html/content/src/HTMLVideoElement.cpp
2013-03-19 13:27:35 +01:00
Peter Van der Beken
5db19d4269 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
d4058ab34c Bug 850958 - Implement instanceof without relying on nsIDOM interfaces r=bz 2013-03-18 19:14:39 -04:00
Andrew McCreight
23b2de3bc0 Bug 827486, part 7 - add basic code gen test. r=bz 2013-03-18 16:08:50 -07:00
Andrew McCreight
b605a583db 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
45987003c3 Bug 827486, part 5: add the main JS impl code gen. r=bz 2013-03-18 16:05:38 -07:00
Andrew McCreight
931c15530b 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
585f8be54d Bug 827486, part 3 - add dependencies for CGBindingImplClass. r=bz 2013-03-18 16:05:06 -07:00
Andrew McCreight
80a04eadae Bug 827486, part 2 - Refactor example class codegen into common base class. r=bz 2013-03-18 16:04:46 -07:00
Andrew McCreight
6076fafa7a Bug 827486, part 1: add JSImplementation extended attribute. r=bz 2013-03-18 16:04:24 -07:00
Ehsan Akhgari
429beaa145 Bug 851073 - Move MouseEvent to Web IDL; r=smaug
--HG--
extra : rebase_source : 2b9f8e4f83a980838599bc4c0b6722651891c413
2013-03-14 11:30:47 -04:00
Kyle Huey
5a7ceaeb53 Back out Bug 827486 for PGO bustage. CLOSED TREE 2013-03-18 13:00:00 -07:00
Andrew McCreight
c05787362b Bug 827486, part 7 - add basic code gen test. r=bz 2013-03-18 10:19:42 -07:00
Andrew McCreight
b6112c1005 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
f84f3b2688 Bug 827486, part 5: add the main JS impl code gen. r=bz 2013-03-18 10:19:42 -07:00
Andrew McCreight
d93d2f6cc8 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
a810b1c341 Bug 827486, part 3 - add dependencies for CGBindingImplClass. r=bz 2013-03-18 10:19:41 -07:00
Andrew McCreight
d97d8b5610 Bug 827486, part 2 - Refactor example class codegen into common base class. r=bz 2013-03-18 10:19:41 -07:00
Andrew McCreight
8298fa76d1 Bug 827486, part 1: add JSImplementation extended attribute. r=bz 2013-03-18 10:19:41 -07:00
Phil Ringnalda
8d356d6b0e Back out 2ea5f267af77:218356c595fc (bug 827486) for Windows builds dying with an obscure "MemoryError"
CLOSED TREE
2013-03-17 16:40:54 -07:00