Boris Zbarsky
b1debd2d49
Bug 1215755. Change the Web IDL parser to just put a next() method in iterator interfaces instead of using an additional IterableIterator interface. Fix up the other test failures in test_interface_maplikesetlikeiterable.py while I'm here. r=qdot
2015-10-19 20:17:39 -04:00
Nathan Froyd
01583602a9
Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
...
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout. The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.
CLOSED TREE makes big refactorings like this a piece of cake.
# The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
xargs perl -p -i -e '
s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
s/nsRefPtr ?</RefPtr</g; # handle declarations and variables
'
# Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h
# Handle nsRefPtr.h itself, a couple places that define constructors
# from nsRefPtr, and code generators specially. We do this here, rather
# than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
# things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
mfbt/nsRefPtr.h \
xpcom/glue/nsCOMPtr.h \
xpcom/base/OwningNonNull.h \
ipc/ipdl/ipdl/lower.py \
ipc/ipdl/ipdl/builtin.py \
dom/bindings/Codegen.py \
python/lldbutils/lldbutils/utils.py
# In our indiscriminate substitution above, we renamed
# nsRefPtrGetterAddRefs, the class behind getter_AddRefs. Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'
if [ -d .git ]; then
git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Boris Zbarsky
a9549930a2
Bug 1215559. Create separate iterator native types for one-type and two-type iterators, so we don't force the one-type case to implement GetKeyAtIndex. r=qdot
2015-10-16 15:54:51 -04:00
Boris Zbarsky
b9fcc36e5e
Back out revision 5985a4717758 (bug 1215559) because the Linux compiler is not happy with the template using bits
2015-10-16 16:16:36 -04:00
Boris Zbarsky
ab96208de8
Bug 1215559. Create separate iterator native types for one-type and two-type iterators, so we don't force the one-type case to implement GetKeyAtIndex. r=qdot
2015-10-16 15:54:51 -04:00
Boris Zbarsky
eff22c488d
Bug 1215532. Make sure the exposure set of the generated iterator interface matches that of the iterable it's created for, and that IterableIterator is exposed everywhere. r=qdot
2015-10-16 14:36:19 -04:00
Kyle Machulis
09d9074cb2
Bug 1085293 - WebIDL Iterable Implementation and Tests; r=bz
2015-10-15 12:06:13 -07:00
Kyle Machulis
2138ffd00d
Bug 1085293 - File renames for WebIDL Iterable Implementation; r=bz
...
--HG--
rename : dom/bindings/parser/tests/test_interface_maplikesetlike.py => dom/bindings/parser/tests/test_interface_maplikesetlikeiterable.py
rename : dom/webidl/TestInterfaceJSMaplikeSetlike.webidl => dom/webidl/TestInterfaceJSMaplikeSetlikeIterable.webidl
2015-10-15 12:06:13 -07:00
Kyle Machulis
95180ed852
Backout of 91e9d59af87e, 96acfd0d21cf (Bug 1085293) due to build bustage
2015-10-14 12:00:41 -07:00
Kyle Machulis
d51149c624
Bug 1085293 - WebIDL Iterable Implementation and Tests; r=bz
2015-10-14 11:33:46 -07:00
Kyle Machulis
d86a975184
Bug 1085293 - File renames for WebIDL Iterable Implementation; r=bz
...
--HG--
rename : dom/bindings/parser/tests/test_interface_maplikesetlike.py => dom/bindings/parser/tests/test_interface_maplikesetlikeiterable.py
rename : dom/webidl/TestInterfaceJSMaplikeSetlike.webidl => dom/webidl/TestInterfaceJSMaplikeSetlikeIterable.webidl
2015-10-14 11:33:46 -07:00
Wes Kocher
95cce1f2c9
Merge m-c to inbound, a=merge
2015-10-09 16:45:31 -07:00
Boris Zbarsky
c3d471f9c4
Bug 1213289 part 4. Convert to using an enum for tracking our union state. r=bkelly
2015-10-09 16:48:10 -04:00
Boris Zbarsky
af065c06f0
Bug 1213289 part 3. Add a way to throw a DOMException with a custom message on ErrorResult. r=bkelly
2015-10-09 16:48:10 -04:00
Boris Zbarsky
9c2bcd09d7
Bug 1213289 part 2. Introduce ErrorResult::ClearUnionData and use it in various places where we're trying to do that. r=bkelly
2015-10-09 16:48:10 -04:00
Boris Zbarsky
b90baf6535
Bug 1213289 part 1. Change dom::Throw to take an XPCOM string, not a raw C string, for the message. r=bkelly
2015-10-09 16:48:10 -04:00
Shawn Huang
8cb7ad155e
Bug 1184017 - [MAP] Dispatch events to MAP event handlers, r=btian, sr=mrbkap
2015-10-09 18:23:20 +08:00
Jeff Walden
75b257996c
Bug 1052139 - Make more parts of the global object's prototype chain immutable, when we flip that switch. r=bz
...
--HG--
extra : rebase_source : 7d196acc689d26153ba2462ff2c78fc94ec7351a
2015-10-08 15:08:13 -07:00
Jeff Walden
c593e1ed8f
Bug 1052139 - Perform proper failure handling in interfaces' CreateInterfaceObjects method, after dom::CreateInterfaceObjects has been called and possibly created the interface's constructor and prototype. r=bz
...
--HG--
extra : rebase_source : 5d6b7cf208c690d61219baa3cb2d5bfeb471742e
2015-09-29 09:31:42 -07:00
Boris Zbarsky
8a61b380af
Bug 1211624. document.all should be iterable, and so should be various other things that have an anonymous indexed getter. r=qdot
2015-10-07 09:31:32 -04:00
Martin Thomson
8ba5de483c
Bug 1209744 - Switch to setIdentityProvider for js-implemented bindings test, r=jib
...
--HG--
extra : transplant_source : %05%2C%E2%F4%89O%18%22r%29Q%22%3E%171%A6%FCMy%C9
2015-10-05 13:07:33 -07:00
Andrew McCreight
5171450b27
Bug 1197893 - Check the number of arguments for ThrowTypeError() and ThrowRangeError() at compile time. r=peterv
2015-10-05 09:38:14 -07:00
Phil Ringnalda
23f82e924e
Back out 2 changesets (bug 1052139) for mochitest-jetpack bustage
...
Backed out changeset 3dc503961322 (bug 1052139)
Backed out changeset 6f278bc63614 (bug 1052139)
2015-10-02 22:10:24 -07:00
Wes Kocher
f0d829220d
Backed out changeset 821791826960 (bug 1197893) for Nexus build failures CLOSED TREE
2015-10-02 16:17:05 -07:00
Andrew McCreight
35cd15b8de
Bug 1197893 - Check the number of arguments for ThrowTypeError() and ThrowRangeError() at compile time. r=peterv
2015-10-02 15:09:02 -07:00
Jeff Walden
c29c28268a
Bug 1052139 - Make the [[Prototype]] of all objects on the window object's [[Prototype]] chain be immutable, BUT also disable the code that actually respects immutable-prototype handling. When we want to enable this, it'll then be a one-line change. r=bz
...
--HG--
extra : rebase_source : e8116d4aed87f03f4e0b91b60c6ccf43f040b31a
2014-11-28 02:58:23 -05:00
Jeff Walden
ddc5b08c61
Bug 1052139 - Perform proper failure handling in interfaces' CreateInterfaceObjects method, after dom::CreateInterfaceObjects has been called and possibly created the interface's constructor and prototype. r=bz
...
--HG--
extra : rebase_source : 683614405bb61ff078e5504d9c2717a92ed2976e
2015-09-29 09:31:42 -07:00
Jeff Walden
1876c2cd4f
Bug 1052139 - Reorder CGCreateInterfaceObjectsMethod a bit to correspond to the ordering of generated code. r=bz
...
--HG--
extra : rebase_source : 47790e00e7a6481078927380494bf9384045703c
2015-09-29 09:31:42 -07:00
Andrew McCreight
7a2c6267d4
Backed out changeset 6fa9cdf4002b for breaking the build.
2015-10-02 10:49:28 -07:00
Andrew McCreight
404740a102
Bug 1197893 - Check the number of arguments for ThrowTypeError() and ThrowRangeError() at compile time. r=peterv
2015-10-02 10:42:08 -07:00
Miko Mynttinen
155f3d3bc5
Bug 1187011 - Don't allow response body with null body status. r=bkelly
2015-09-30 21:50:10 +03:00
Jason Orendorff
deb2270515
Bug 1054756, part 5 - Remove Class::convert.
...
--HG--
extra : commitid : 6KCxWrCseSZ
extra : rebase_source : 63f3cd6ec1ade43c732ffd9b661fe6f2dca9eb4b
2015-03-20 16:28:59 -05:00
Martin Thomson
4574e04530
Bug 1155923 - Add Deprecated attribute to interfaces, r=peterv
...
--HG--
extra : transplant_source : q%B6%21%A22%A6%8Ftg%C8%1D%02%91/%C7%8A%AA%E2%C6g
2015-09-28 11:25:04 -07:00
Martin Thomson
afdaddf1d7
Bug 1155923 - Removing moz prefix from RTC interfaces, r=jesup,smaug
...
--HG--
extra : transplant_source : %0Adu%1E%A6j%9E%C2B%25%ECruo%F7%7Fc%EA%99%18
2015-09-28 11:25:04 -07:00
Carsten "Tomcat" Book
4952084732
Backed out 3 changesets (bug 1155923) for causing test failures in promises-call.html
...
Backed out changeset 321a932e01a7 (bug 1155923)
Backed out changeset 6ac38acd6ab2 (bug 1155923)
Backed out changeset 2981db92416a (bug 1155923)
2015-09-28 14:02:41 +02:00
Martin Thomson
d4f1b7fa44
Bug 1155923 - Add Deprecated attribute to interfaces. r=peterv
...
--HG--
extra : transplant_source : %E7_%24v%EA%08%AB1%A2%2BPl%AE%85%B9-%A6%D9%FEG
2015-09-24 16:31:47 -07:00
Martin Thomson
9c3bef623e
Bug 1155923 - Removing moz prefix from RTC interfaces. r=jesup r=smaug
...
--HG--
extra : transplant_source : 1%F0%A8%03%D3%B9OAJW%06v%21%F1WX%03im%22
2015-09-24 16:31:47 -07:00
Bobby Holley
110f12e7ca
Bug 1072150 - Use the opt-out for various sloppy consumers. r=bz
2015-09-24 14:02:41 -07:00
Carsten "Tomcat" Book
774fe78402
Merge mozilla-central to b2g-inbound
2015-09-23 12:35:32 +02:00
Jocelyn Liu
1832bcbeea
Bug 1181482 - Patch3: Implement |sendResponse| and BluetoothGattAttributeEvent for GATT server read/write requests. r=btian, r=bz
2015-09-23 14:16:27 +08:00
Jeff Walden
4046fe1490
Bug 1179003 - Convert the infallible objectClassIs proxy hook into a fallible getBuiltinClass hook that indicates class type via outparam. r=efaust, r=bz on DOM bits, r=billm on IPC bits
...
--HG--
extra : rebase_source : 6ddc3727c411fdfced6338e5e383a10572575f0f
2015-08-28 21:55:40 -07:00
Jeff Walden
8106775e9d
Bug 1207006 - Remove the unhelpfully-confusing exceptionCodeIndented. r=bz
...
--HG--
extra : rebase_source : d15686fd71897dc90bcaee1d8c9aba75201abb9d
2015-09-22 09:31:58 -07:00
Michael Layzell
30627b3c9a
Bug 1205733 - Add move overloads to dom::Nullable's constructor and SetValue method, r=bz
2015-09-22 12:11:30 -04:00
Cameron McCormack
8911daff33
Bug 1206569 - Part 3: Include internal properties in PythonCSSProps.h and annotate each with a type. r=bzbarsky
2015-09-22 15:58:20 +10:00
Cameron McCormack
7dfadc52df
Bug 1206569 - Part 1: Move for-Python preprocessor-generated CSS property list header to layout/style/. r=bzbarsky
...
--HG--
rename : dom/webidl/CSS2PropertiesProps.h => layout/style/PythonCSSProps.h
2015-09-22 15:58:20 +10:00
Josh Matthews
fbb088e702
Bug 885982 - Part 3: Add e10s support to TCPSocket and TCPServerSocket. r=asuth,mayhemer,bz
2015-03-25 10:36:56 -04:00
Josh Matthews
6d8316690f
Bug 885982 - Part 1: Convert TCPSocket to WebIDL and rewrite in C++. r=asuth,mayhemer,bz
2015-03-25 10:35:59 -04:00
Ms2ger
a48fdcad15
Bug 1204501 - Update the documentation for DOMJSClass::mParticipant; r=peterv
...
Workers have cycle collection now, so they're no longer special.
2015-09-14 16:08:02 +02:00
Tom Schuster
e3fbb8bc43
Bug 603201 - Change GetProperty receiver argument to Value in the browser. r=smaug
2015-09-18 00:14:41 +02:00
Andrea Marchesini
f0aa7a8c5f
Bug 1204775 - SharedWorker.port should be a 'real' MessagePort, r=khuey
2015-09-16 11:27:56 +08:00