Commit Graph

45 Commits

Author SHA1 Message Date
Boris Zbarsky
ec363fb17a Bug 824589. Convert XULElement to WebIDL. r=peterv
The assertions in nsINode and nsWrapperCache are to eagerly catch
failures to override those methods.

The classinfo change for XULTreeBuilder is needed because one of those
is returned via an nsIXULTemplateBuilder attribute on XULElement.
Alternately, I could mark it notflattened in Bindings.conf, but Enn
said he prefers this anyway.

The change to the QI impl in BindingUtils is needed because when
XPConnect converts an IID from C++ to JS it makes is an nsJSID, not an
nsJSIID.  We've run into this before, sadly.

I removed "id" from nsIDOMXULElement because it's already on Element.
I suppose I could have left it there, but this seems cleaner.

The nsJSIID::HasInstance changes are needed to support XBL-implemented
interfaces.  Sadly, this does mean that if the underlying object QIs
to something but we didn't put those props on the WebIDL we'll end up
testing true for instanceof but not exposing the props.  I don't see
an obviously better way.  We should work on killing off uses of
"instanceof someinterface".

The browser.js change is needed to avoid throwing exceptions during
browser-chrome tests that are now getting reported because our
swapFrameLoaders is no longer an XPConnect method.
2013-01-29 12:51:55 -05:00
Boris Zbarsky
c1ef2bf3e1 Back out bug 824589 (rev 22695cac3896) on suspicion of Ts regression 2013-01-29 17:18:06 -05:00
Boris Zbarsky
2ce431d578 Bug 824589. Convert XULElement to WebIDL. r=peterv
The assertions in nsINode and nsWrapperCache are to eagerly catch
failures to override those methods.

The classinfo change for XULTreeBuilder is needed because one of those
is returned via an nsIXULTemplateBuilder attribute on XULElement.
Alternately, I could mark it notflattened in Bindings.conf, but Enn
said he prefers this anyway.

The change to the QI impl in BindingUtils is needed because when
XPConnect converts an IID from C++ to JS it makes is an nsJSID, not an
nsJSIID.  We've run into this before, sadly.

I removed "id" from nsIDOMXULElement because it's already on Element.
I suppose I could have left it there, but this seems cleaner.

The nsJSIID::HasInstance changes are needed to support XBL-implemented
interfaces.  Sadly, this does mean that if the underlying object QIs
to something but we didn't put those props on the WebIDL we'll end up
testing true for instanceof but not exposing the props.  I don't see
an obviously better way.  We should work on killing off uses of
"instanceof someinterface".

The browser.js change is needed to avoid throwing exceptions during
browser-chrome tests that are now getting reported because our
swapFrameLoaders is no longer an XPConnect method.
2013-01-29 12:51:55 -05:00
Steve Fink
ed62b6f44e Bug 828753 - jsid rooting, mostly in jsinfer.*. Also switch JSObject from struct to class. r=terrence 2012-12-31 12:40:21 -08:00
Steve Fink
27634e6f07 Backed out changeset fce4e0f8a553 (bug 828753) for breaking windows warnings-as-errors (stop adding JSObject forward decls, please!) 2013-01-18 13:20:21 -08:00
Steve Fink
466f61a3c6 Bug 828753 - jsid rooting, mostly in jsinfer.*. Also switch JSObject from struct to class. r=terrence 2012-12-31 12:40:21 -08:00
Trevor Saunders
c55a85644c bug 822289 - remove NS_IMPL_CYCLE_COLLECTION_CLASS and friends r=mccr8 2013-01-12 07:40:33 -05:00
Boris Zbarsky
3e638a0838 Bug 830553. Make the asserts in nsWrapperCache.h fatal. r=mccr8 2013-01-15 14:04:24 -05: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
Andrew McCreight
d0418d3212 Bug 814752 - Make NS_IMPL_CYCLE_COLLECTION_UNLINK_PRESERVED_WRAPPER work for native CC classes. r=smaug,ehsan 2012-11-27 15:08:22 -08:00
Benoit Jacob
eade29efbc Bug 806279 - CC macros refactoring: part 4: update CC helper macros - r=mccr8,smaug 2012-11-15 02:32:39 -05:00
Benoit Jacob
2f61a3a0d4 Bug 806279 - CC macros refactoring: part 2: generic BEGIN_ macros folding in the NATIVE case - r=mccr8,smaug 2012-11-15 02:32:39 -05:00
Peter Van der Beken
f8c638299a Fix for bug 799465 (Add complete support for non-nsISupports objects in new DOM bindings) - fix CC traversal and wrapper preservation. r=bz. 2012-09-26 20:12:15 +02:00
Ms2ger
f8c108d2d8 Bug 793314 - Remove PtrBits; r=mounir,roc 2012-10-02 10:24:11 +02:00
Olli Pettay
fa661dfd74 Bug 794694 - Make sure to trace all the gray GCthings, not only wrapper, r=mccr8 2012-09-29 01:29:37 +03:00
Makoto Kato
32ceb5852a Bug 785321 - Replace PRUptrdiff with uintptr_t, prtdiff_t or etc; r=ehsan,jrmuizel 2012-09-14 16:09:52 -04:00
Aryeh Gregor
8b4a23fc4c Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Ehsan Akhgari
a3b31d18c5 Bug 749101 - Move window.performance to the new DOM bindings; r=bzbarsky 2012-07-16 21:42:18 -04:00
Boris Zbarsky
60ae23ad37 Bug 750297 part 2. Switch WebGLUniformLocation to Paris bindings. r=peterv, bjacob 2012-06-15 16:25:51 -04:00
Gervase Markham
cb6a072c2a Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Andrew McCreight
18ae226c57 Bug 754151 - add macros for basic wrappercached cycle collected classes. r=smaug 2012-05-14 08:24:03 -07: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
Peter Van der Beken
e3c6049ccb Bug 738593 - Rename IsProxy to IsDOMBinding; r=mrbkap 2012-03-16 16:44:09 +01:00
Peter Van der Beken
e62ff54e22 Fix for bug 736229 (Stop storing expando objects in the wrapper cache, store the proxy instead). r=jst. 2012-03-14 15:22:10 +01:00
Blake Kaplan
66906cb16a Bug 727884 - Make nsWrapperCache::WrapObject take a JSObject scope instead of XPCWrappedNativeScope. r=peterv 2012-03-14 16:25:40 +01:00
Olli Pettay
3dbc72626c Bug 713462, don't traverse black content lists, r=mccr8 2011-12-29 23:21:33 +02:00
Peter Van der Beken
5c0b029ef8 Fix for bug 693258 (Fixes for test failures when turning off new list DOM bindings). r=bz/Waldo. 2011-10-13 15:36:09 +02:00
Peter Van der Beken
78685262f7 Bug 648801 (new DOM list bindings) - Add comments. r=bz/jst/mrbkap. 2011-10-05 12:22:26 +02:00
Peter Van der Beken
f45aee9055 Bug 648801 (new DOM list bindings) - Add a pref (dom.new_bindings) to enable/disable new bindings. r=bz/jst/mrbkap. 2011-06-29 19:17:37 +02:00
Peter Van der Beken
2180a74744 Bug 648801 (new DOM list bindings) - Support expandos on the new proxy-based DOM bindings. r=bz/jst/mrbkap. 2011-05-26 21:58:35 +02:00
Andreas Gal
bd59bf62c4 Bug 648801 (new DOM list bindings) - Cache prototypes and pick up function value from the proto slot instead of caching it locally. r=bz/jst/mrbkap. 2011-05-24 12:45:39 +02:00
Boris Zbarsky
a98c1cf35a Bug 648801 (new DOM list bindings) - Hook up the new code so we actually create the proxy wrappers. r=bz/jst/mrbkap. 2011-05-23 17:39:52 +02:00
Michael Wu
0fe7772ece Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones 2011-09-28 23:19:26 -07:00
Ben Turner
26dc8a05e2 Bug 614347 - 'XPConnect-wrapped JSObjects must clear their gray bit when they are handed out'. r=peterv+gal, a=blocking. 2011-02-16 12:47:08 -08:00
Ben Turner
92054a70e6 Backout 10ebc5ea11ac due to test failures. 2011-02-09 15:29:31 -08:00
Ben Turner
69da70d5c5 Bug 614347 - 'XPConnect-wrapped JSObjects must clear their gray bit when they are handed out'. r=peterv+gal, a=blocking. 2011-02-09 12:51:16 -08:00
Ben Turner
f17b16f00e Backout bug 614347 due to test failures 2011-02-08 22:15:48 -08:00
Ben Turner
57ffd64968 Bug 614347 - 'XPConnect-wrapped JSObjects must clear their gray bit when they are handed out'. r=peterv+gal, a=blocking. 2011-02-08 18:54:14 -08:00
Blake Kaplan
71836c099e Bug 580128 - Give objects a way to inform XPConnect that they implement their own JS object in a way that does not involve wrapped natives. r=peterv 2010-09-17 14:54:40 -07:00
Peter Van der Beken
c023ba1ccd Fix for bug 482788 (Lightweight DOM wrappers). r=jst, sr=mrbkap. 2009-05-12 22:20:42 +02:00
Peter Van der Beken
76bb092549 Fix for bug 480389 (Remove nsIDocument's cached JS object). r/sr=jst. 2009-03-18 18:56:38 +01:00
Peter Van der Beken
aac677fb96 Backing out 18b1811cd104, fix for bug 480389 (Remove nsIDocument's cached JS object), to try to fix orange. 2009-03-19 14:07:03 +01:00
Peter Van der Beken
7d62c3eec1 Fix for bug 480389 (Remove nsIDocument's cached JS object). r/sr=jst. 2009-03-18 18:56:38 +01:00
Makoto Kato
ecbb2bb014 Bug 478190 - LLP64 (Windows x64) support for /mozilla/dom. r/sr=peterv 2009-03-15 12:19:53 +09:00
Benjamin Smedberg
28a78c0c2c Bug 481102 - Reorganize dom/public, dom/public/base, and dom/src/base to dom/base, r+sr=jst 2009-03-11 10:10:19 -04:00