Commit Graph

2816 Commits

Author SHA1 Message Date
Peter Van der Beken
9c3cff2e39 Bug 1096328 - Remove nativeOwnership from Bindings.conf, autodetect the right smart pointer for owned and refcounted objects. r=bz.
--HG--
extra : rebase_source : ef48d9f72bdbc4891206841d5c8f26fd5140ac3d
2014-11-01 15:08:00 +01:00
Peter Van der Beken
a5eb91a8db Bug 1096328 - Remove nativeOwnership from Bindings.conf, make WrapNewBindingNonWrapperCachedObject work for owned objects. r=bz.
--HG--
extra : rebase_source : 5c8df69bacf2fbe00dfbb864100144850c75c10a
2014-11-01 15:00:47 +01:00
Peter Van der Beken
bcde9e12f6 Bug 1096328 - Remove nativeOwnership from Bindings.conf, make the WrapObject signature for non-refcounted objects the same as for refcounted objects. r=bz.
* * *
[mq]: owned_fold.patch

--HG--
extra : rebase_source : 1eec318046dae59e740ee5409a97c7cbfd88c9b1
2014-11-01 15:00:28 +01:00
Peter Van der Beken
408543d91c Bug 1096328 - Remove nativeOwnership from Bindings.conf, templatize deferred finalization. r=bz.
--HG--
extra : rebase_source : 2486e80073d49ffc5ed93676382846fe7c87bd64
2014-11-01 14:48:19 +01:00
Peter Van der Beken
5bb3cd6c05 Bug 1096328 - Remove nativeOwnership from Bindings.conf, add template to detect refcounted classes. r=bz.
--HG--
extra : rebase_source : 48ddff175ca379a0fcda1511c822f920246a04bc
2014-11-01 14:10:59 +01:00
Peter Van der Beken
6ac5993e67 Bug 1096328 - Remove nativeOwnership from Bindings.conf, reorganize checks for members in BindingUtils.h. r=bz.
--HG--
extra : rebase_source : 009f3303f735b988d455850007072f3a39a76782
2014-11-01 14:04:43 +01:00
Boris Zbarsky
d7ca74281c Bug 1113827 part 1. Automatically mark Web IDL [NewObject] methods that return a JS type as fallible. r=peterv 2015-01-12 11:52:21 -05:00
Carsten "Tomcat" Book
4f7ac0cbcc Backed out 12 changesets (bug 1096328) for M11 and M5 Test failures on a CLOSED TREE
Backed out changeset 12dd1ad43923 (bug 1096328)
Backed out changeset 4a067de94f22 (bug 1096328)
Backed out changeset 676112a4f092 (bug 1096328)
Backed out changeset e2e64e751ece (bug 1096328)
Backed out changeset 9ed945e9a8a5 (bug 1096328)
Backed out changeset 47be69b84be5 (bug 1096328)
Backed out changeset d6e68ba4846d (bug 1096328)
Backed out changeset 899d8cd8c4e8 (bug 1096328)
Backed out changeset 55c831086864 (bug 1096328)
Backed out changeset 6005fd357342 (bug 1096328)
Backed out changeset 0f330a5dd346 (bug 1096328)
Backed out changeset c37e10cff765 (bug 1096328)
2015-01-12 14:48:15 +01:00
Peter Van der Beken
cce4b03d3f Bug 1096328 - Remove nativeOwnership from Bindings.conf, make rooting analysis happy. r=bz.
--HG--
extra : rebase_source : 976adeed1f271906628adcf10e3f5ea02487ab5b
2015-01-08 22:56:42 +01:00
Peter Van der Beken
46f5792fc3 Bug 1096328 - Remove nativeOwnership from Bindings.conf, make VRFieldOfView use a binding that owns its native. r=vlad.
--HG--
extra : rebase_source : 002dc062e271722fc4914f19362489de8420d3dd
2014-12-11 20:15:32 +01:00
Peter Van der Beken
c9d93dc175 Bug 1096328 - Remove nativeOwnership from Bindings.conf, remove the now unused nativeOwnership property. r=bz.
--HG--
extra : rebase_source : a121c0061d1afec19beeecaf507da30ac027936c
2014-11-01 15:25:55 +01:00
Peter Van der Beken
dc86bc74a0 Bug 1096328 - Remove nativeOwnership from Bindings.conf, don't condition wrapperCache on having a refcounted type. r=bz.
--HG--
extra : rebase_source : a76c18e5ffa4c1a48d3ab6119f7aff1065795787
2014-11-01 15:22:21 +01:00
Peter Van der Beken
b44a0cb1a2 Bug 1096328 - Remove nativeOwnership from Bindings.conf, change a python check for a refcounted type to a static_assert. r=bz.
--HG--
extra : rebase_source : 9d467680160173a50ea4d319a5bf3dce8680c854
2014-11-01 15:20:23 +01:00
Peter Van der Beken
c026afb22e Bug 1096328 - Remove nativeOwnership from Bindings.conf, make example code spit out a refcounted class always. r=bz.
--HG--
extra : rebase_source : a4bda82184a560ce09201d2e722292e895d11da5
2014-11-01 15:15:42 +01:00
Peter Van der Beken
fb993a9c68 Bug 1096328 - Remove nativeOwnership from Bindings.conf, autodetect the right smart pointer for owned and refcounted objects. r=bz.
--HG--
extra : rebase_source : 605390cd0b599e4922f8c13d70dd727976c48152
2014-11-01 15:08:00 +01:00
Peter Van der Beken
726850eb13 Bug 1096328 - Remove nativeOwnership from Bindings.conf, make WrapNewBindingNonWrapperCachedObject work for owned objects. r=bz.
--HG--
extra : rebase_source : aa47e31cb7559e8258f0f112fa92319a30f96dc5
2014-11-01 15:00:47 +01:00
Peter Van der Beken
2da1f5e59e Bug 1096328 - Remove nativeOwnership from Bindings.conf, make the WrapObject signature for non-refcounted objects the same as for refcounted objects. r=bz.
* * *
[mq]: owned_fold.patch

--HG--
extra : rebase_source : c5aa06709a877968341cd69d6faa945f0f7ddde9
2014-11-01 15:00:28 +01:00
Peter Van der Beken
549a18b7c4 Bug 1096328 - Remove nativeOwnership from Bindings.conf, templatize deferred finalization. r=bz.
--HG--
extra : rebase_source : 19a8b1beeaa0284c88a2d1b44c3658ece3e620a4
2014-11-01 14:48:19 +01:00
Peter Van der Beken
633a8e3384 Bug 1096328 - Remove nativeOwnership from Bindings.conf, add template to detect refcounted classes. r=bz.
--HG--
extra : rebase_source : 871ad39481494e8c860243879e44fbd638f4bad6
2014-11-01 14:10:59 +01:00
Peter Van der Beken
94eed498b6 Bug 1096328 - Remove nativeOwnership from Bindings.conf, reorganize checks for members in BindingUtils.h. r=bz.
--HG--
extra : rebase_source : 83e9e003ddbe77fdd3f0074f87945ba28cd18777
2014-11-01 14:04:43 +01:00
Olli Pettay
1903043208 Bug 1119652, create mozilla::dom::Event::As*Event automatically for all the codegen'ed Events and annotate As*Event with MOZ_OVERRIDE in the codegen, r=bz
--HG--
extra : rebase_source : 8dc5e2f29d4ae7702e4f41c01e971016c357c85a
2015-01-10 13:46:41 +02:00
Chris Peterson
0b8b25193e Bug 1118076 - Remove MOZ_THIS_IN_INITIALIZER_LIST. r=Waldo 2015-01-06 21:39:46 -08:00
Ehsan Akhgari
b6e35bb4b4 Bug 1118486 - Part 1: Use = delete instead of MOZ_DELETE directly; r=Waldo
Most of this patch (with the exception of dom/bindings/Codegen.py) was
generated by the following bash script:

#!/bin/bash

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "*/.git*" \
       ! -wholename "obj-*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_DELETE '= delete'
2015-01-08 23:19:05 -05:00
Boris Zbarsky
890f01a2b6 Bug 1117167. Make the generated implementation classes for JS-implemented bindings store an nsIGlobalObject, not an nsPIDOMWindow, so we can use them in sandboxes. r=peterv 2015-01-08 11:57:19 -05:00
Ehsan Akhgari
3aca5d2418 Bug 1114987 - Add MOZ_UNSAFE_REF and mark GlobalObject::mGlobalObject as such; r=smaug 2015-01-05 21:01:30 -05:00
Jeff Walden
abe2fb84a6 Bug 603201 - Make HasPropertyOnPrototype fallible. r=peterv 2015-01-02 14:02:36 -06:00
Boris Zbarsky
1525c9e29b Bug 1107592 part 2. Allow chrome JS to directly throw content DOMExceptions that will propagate out to the web script. r=peterv 2015-01-02 17:08:33 -05:00
Boris Zbarsky
b2c4383ca2 Bug 1117131. Output the JS hooks for our cache-clearing stuff for [Pure] properties on JS-implemented objects even if we have no interface object, since these live on instances. r=mccr8 2015-01-02 17:08:33 -05:00
Tom Schuster
f64a27048c Bug 1094176 - Remove lookup API from browser. r=bholley 2014-12-17 00:28:39 +01:00
Tom Schuster
a135bf8d75 Bug 783829 - Remove getEnumerablePropertyKeys. r=efaust,bholley 2014-12-17 00:28:38 +01:00
Tom Schuster
71db988913 Bug 783829 - Change from Proxy iterate to enumerate. r=efaust,bholley 2014-12-17 00:28:38 +01:00
Terrence Cole
9480090a4c Bug 1105069 - Part 17: Convert xpc_IsGrayGCThing to GCCellPtr; r=mccr8, j=jonco
--HG--
extra : rebase_source : 9fdc5ac9ca8de9c12a399532db7e77bc34abb7da
2014-12-05 09:38:34 -08:00
Dave Huseby
7c4994c627 Bug 1107673 - add WrappedJSToDictionary that doesn't require a JSContext. r=bholly 2014-12-15 14:28:00 +01:00
Wes Kocher
340d6a8f92 Merge inbound to m-c a=merge 2014-12-11 16:50:45 -08:00
Jan-Ivar Bruaroey
d4071da4bf Bug 1091898 - update test of exceptions from jsimplemented. r=jesup 2014-12-08 10:18:38 -06:00
Tom Tromey
492d2aaf17 Bug 1095728 - Mark ToJSValue with MOZ_WARN_UNUSED_RESULT. r=bz 2014-12-09 14:45:00 -05:00
Jason Orendorff
4724b42042 Bug 1103152 - Remove JS_DeletePropertyStub, JS_EnumerateStub, JS_ResolveStub, and JS_ConvertStub. Make five mandatory JSClass hooks optional (nullable). r=bhackett.
--HG--
extra : rebase_source : a349ef612573aff8f87b995a65df94ae56cab13d
extra : amend_source : bbfe549fe0735d8b33ffff66d7eeddcc2ad042d2
2014-12-02 16:56:35 -06:00
Boris Zbarsky
30dbf04fde Bug 1012798 part 2. Stop defining a value property named "window" on the global. r=peterv 2014-12-09 14:44:37 -05:00
Byron Campen [:bwc]
5a74f2b117 Bug 1091242 - Part 7: Wiring the build system together. r=jesup, r=ted 2014-11-17 17:03:28 -08:00
Byron Campen [:bwc]
816c0483d4 Bug 1091242 - Part 6: Wiring the new JSEP handler code in. See https://github.com/unicorn-wg/gecko-dev/tree/multistream_rebase for more history. r=jesup, r=smaug 2014-11-19 16:16:29 -08:00
Phil Ringnalda
00cf414888 Backed out 10 changesets (bug 1091242) for Android/b2g non-unified build bustage
CLOSED TREE

Backed out changeset 7f72b55c5de7 (bug 1091242)
Backed out changeset f1501aa24397 (bug 1091242)
Backed out changeset 7fde5994aee5 (bug 1091242)
Backed out changeset 59b415714087 (bug 1091242)
Backed out changeset dadb65fedc08 (bug 1091242)
Backed out changeset 21be81424e4e (bug 1091242)
Backed out changeset 498fb1dafba5 (bug 1091242)
Backed out changeset 8d0653eb85ab (bug 1091242)
Backed out changeset c82d484e135a (bug 1091242)
Backed out changeset 3e0c8932f1b1 (bug 1091242)
2014-12-08 20:53:07 -08:00
Byron Campen [:bwc]
5c9f7b9ba3 Bug 1091242 - Part 7: Wiring the build system together. r=jesup, r=ted 2014-11-17 17:03:28 -08:00
Byron Campen [:bwc]
3c896093a9 Bug 1091242 - Part 6: Wiring the new JSEP handler code in. See https://github.com/unicorn-wg/gecko-dev/tree/multistream_rebase for more history. r=jesup, r=smaug 2014-11-19 16:16:29 -08:00
Boris Zbarsky
8e5894769a Bug 1105614. Fix dependency tracking for IDL methods with dictionary arguments. r=peterv 2014-12-01 15:17:58 -05:00
Boris Zbarsky
cdb5124a92 Bug 1087851 part 2. Add a GetOrCreateDOMReflectorNoWrap API that can be used to do what GetOrCreateDOMReflector does but without wrapping into the caller compartment. r=bholley 2014-11-26 14:25:21 -05:00
Boris Zbarsky
ae7e51d646 Bug 1087851 part 1. Rename WrapNewBindingObject to GetOrCreateDOMReflector to make it clearer what it does. r=peterv for the idea; patch itself is just search-and-replace 2014-11-26 14:25:20 -05:00
Boris Zbarsky
4e05fcb08b Bug 1096011. Warning when failing to create a JS implemntation for a Web IDL binding should include the implementation contract. r=peterv 2014-11-24 11:57:49 -05:00
Boris Zbarsky
1b2a38eff1 Bug 1094545. Expose the URLSearchParams API in system globals. r=bholley 2014-11-07 14:10:39 -05:00
Boris Zbarsky
8426326149 Bug 1089079. Make .length on interface objects configurable. r=peterv 2014-11-24 12:56:32 +00:00
Boris Zbarsky
be526b5304 Bug 1092737 part 1. Update TextEncoder to various spec changes. r=emk 2014-11-21 14:58:45 -05:00