Tooru Fujisawa
2fb6cbd2a1
Bug 1180290 - Part 5: Remove getter/setter variant for ThrowInvalidThis message. r=bz
2016-01-06 17:54:00 +09:00
Boris Zbarsky
a46c707f36
Bug 1048695 part 2. Make interface members not be exposed based on their nonExposedGlobals. r=peterv
2015-12-01 12:02:36 -05:00
Boris Zbarsky
21b332f380
Bug 1170760 part 2. Pass in the 'this' value to Promise static methods. r=peterv
2015-11-25 15:48:08 -05:00
Phil Ringnalda
b118ae5885
Back out 13 changesets (bug 1170760) for Gu bustage in homescreen/test/unit/apps_test.js
...
CLOSED TREE
Backed out changeset 5d84599a8846 (bug 1170760)
Backed out changeset 6104fe33d5f5 (bug 1170760)
Backed out changeset 1dfb229da01d (bug 1170760)
Backed out changeset f380faddfdd8 (bug 1170760)
Backed out changeset 541831dc6b57 (bug 1170760)
Backed out changeset 6a5b7dfab882 (bug 1170760)
Backed out changeset ee514a256922 (bug 1170760)
Backed out changeset 3c2c1acc34ee (bug 1170760)
Backed out changeset dc2a7f5dc5d6 (bug 1170760)
Backed out changeset b312a08fbab5 (bug 1170760)
Backed out changeset cb6aba9b8497 (bug 1170760)
Backed out changeset 39e4f5b1ba40 (bug 1170760)
Backed out changeset 7d79cce3630a (bug 1170760)
2015-11-25 21:02:55 -08:00
Boris Zbarsky
7f7aed6a5a
Bug 1170760 part 2. Pass in the 'this' value to Promise static methods. r=peterv
2015-11-25 15:48:08 -05:00
Sunny Sidhu
e67272647c
Bug 1225782 - Removes GlobalPropertiesAreOwn(). r=bz
2015-11-20 10:00:00 +01:00
Boris Zbarsky
d5530c564a
Bug 1224007 part 6. Change MaybeSetPendingException to set the ErrorResult state to "not failed", just like SuppressException and StealNSResult already do, and assert in the destructor that the ErrorResult is not Failed().
...
This is not quite as strong as being able to assert that all codepaths that might
lead to failure call one of the above methods, but being able to assert that
would involve a lot of extra noise at callsites. Or at least changing the
signature of StealNSResult to use an outparam and return a boolean indicating
whether the ErrorResult was failure or not, or something, so StealNSResult
can be usefully called on successful ErrorResults too.
2015-11-20 16:29:41 -05:00
Boris Zbarsky
457239e90b
Bug 1224007 part 5. Get rid of ErrorResult::StealJSException. r=peterv
2015-11-20 16:29:41 -05:00
Boris Zbarsky
fe7c03b29b
Bug 1224007 part 2. Make the various ErrorResult::Report* methods private, so consumers all go through MaybeSetPendingException and rename them to more clearly indicate what they're actually doing. r=peterv
2015-11-20 16:29:41 -05:00
Boris Zbarsky
465258089d
Bug 1224007 part 1. Rename ThrowMethodFailed to MaybeSetPendingException and make it an ErrorResult instance method. r=peterv
2015-11-20 16:29:40 -05:00
Ben Kelly
84447b142f
Bug 1225219 Implement ErrorResult::CloneTo(). r=bz
2015-11-18 11:07:58 -08:00
Wes Kocher
4d94602207
Backed out changeset cc92635ec29a (bug 1225219) for build bustage CLOSED TREE
2015-11-18 09:52:19 -08:00
Ben Kelly
5bcd9ba5e6
Bug 1225219 Implement ErrorResult::CloneTo(). r=bz
2015-11-18 08:50:28 -08:00
Boris Zbarsky
f6bd111b4b
Bug 1219749. Add a way to faithfully propagate the "exception is already on JSContext" state through an ErrorResult. r=peterv
2015-11-09 20:47:05 -05:00
Jan de Mooij
cad5d09857
Bug 1125423 part 6 - Remove nsGlobalWindow::OuterObject and ObjectToOuterObjectValue. r=bz
2015-11-06 19:03:52 +01:00
Jan de Mooij
eae167fd59
Bug 1125423 part 2 - Rename stopAtOuter argument to *Unwrap functions to stopAtWindowProxy. r=bz
2015-11-06 19:03:52 +01:00
Jan de Mooij
af31342c5b
Bug 1125423 part 1 - Attach WindowProxies to globals instead of using innerObject/outerObject hooks. r=bz,luke
2015-11-06 19:03:51 +01:00
Boris Zbarsky
0b749bd1ad
Bug 1039986. Make Function.prototype.toString work on Web IDL interface objects. r=jorendorff,peterv
2015-10-27 16:25:14 -04:00
Andrew McCreight
3a464eb057
Bug 1218496 - Add MOZ_COUNT_CTOR/DTOR to ErrorResult::Message. r=bz
2015-10-26 14:50:00 +01:00
Jon Coppeard
4a1121053a
Bug 930414 - Replace |thisObject| object op with |thisValue| and use if for modules r=shu r=smaug
2015-10-21 10:21:44 +01:00
Nathan Froyd
4e6d8f6705
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
2015-10-18 01:24:48 -04:00
Boris Zbarsky
17f32800ee
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
ea440e737a
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
c19f47aeeb
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
Martin Thomson
3874e61273
Bug 1155923 - Add Deprecated attribute to interfaces, r=peterv
2015-09-28 11:25:04 -07:00
Carsten "Tomcat" Book
37b5dd7e69
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
90db71495c
Bug 1155923 - Add Deprecated attribute to interfaces. r=peterv
2015-09-24 16:31:47 -07:00
Tom Schuster
62062f042f
Bug 603201 - Change GetProperty receiver argument to Value in the browser. r=smaug
2015-09-18 00:14:41 +02:00
Andrew McCreight
73a618728d
Bug 1195977, part 8 - Check that ThrowInvalidThis is passing in enough arguments. r=peterv
...
We have to permit passing in too many arguments because sometimes the
error is MSG_METHOD_THIS_UNWRAPPING_DENIED which only takes one
argument.
2015-09-15 11:47:04 -07:00
Andrew McCreight
f932a0d609
Bug 1195977, part 6 - Inline ErrorResult throw error methods into the header. r=peterv
...
This is needed to turn these into templates later.
2015-09-15 11:47:04 -07:00
Andrew McCreight
0de1f37ec0
Bug 1195977, part 5 - Hoist out inner part of ErrorResult::ThrowErrorWithMessage() into a helper. r=peterv
...
This will enable us to move it to the header later, which is needed to
turn it into a template.
2015-09-15 11:47:04 -07:00
Andrew McCreight
1f1d40327e
Bug 1195977, part 4 - Enforce number of arguments more consistently. r=peterv
...
The new check in ErrorResult::ReportErrorWithMessage() shouldn't be
needed and is just to protect against the possibility of another way
to construct messages being added.
2015-09-15 11:47:04 -07:00
Andrew McCreight
3922dba54c
Bug 1195977, part 3 - Add helper for getting the number of error arguments. r=peterv
2015-09-15 11:47:04 -07:00
Andrew McCreight
aef4edc990
Bug 1195977, part 2 - Statically assert that DOM error messages don't have more arguments than the JS engine supports. r=peterv.
...
This makes it so that we do not need to dynamically enforce this
constraint in ErrorResult::ThrowErrorWithMessage().
2015-09-15 11:47:04 -07:00
Cameron McCormack
77ef5bb7bf
Bug 968923 - part 4 - hook up use counters to WebIDL bindings; r=bz
2015-02-05 12:53:01 -05:00
Boris Zbarsky
5c921db9e2
Bug 1135961. Implement subclassing of DOM objects. r=peterv
2015-07-31 13:30:55 -04:00
Kan-Ru Chen
99340ed7d8
Bug 1179718 - Rename CheckPermissions to CheckAnyPermissions. r=bz
2015-07-17 11:07:53 +08:00
Kan-Ru Chen
76443cadaa
Bug 1179718 - Add a CheckAllPermissions extended attribute to WebIDL. r=bz
2015-07-17 11:06:23 +08:00
Birunthan Mohanathas
a29151dc87
Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
...
The bulk of this commit was generated by running:
run-clang-tidy.py \
-checks='-*,llvm-namespace-comment' \
-header-filter=^/.../mozilla-central/.* \
-fix
2015-07-13 08:25:42 -07:00
Boris Zbarsky
d0b47d0513
Bug 1180851. Don't make ThrowMethodFailed an inline function, because there's no really good reason to and we might as well save the codesize. r=peterv
2015-07-09 22:51:28 -04:00
Boris Zbarsky
ba9c231e2a
Bug 1180770 part 2. Remove the unused ifaceName/memberName arguments of ThrowMethodFailedWithDetails and rename it to ThrowMethodFailed. r=peterv
2015-07-09 22:51:28 -04:00
Boris Zbarsky
187a8debbd
Bug 1180770 part 1. Remove the unused ThrowNotEnoughArgsError. r=peterv
2015-07-09 22:51:28 -04:00
Terrence Cole
88f9bc5932
Bug 1178581 - Interning does not and should not imply infinite lifetime; r=sfink
2015-06-30 07:58:31 -07:00
Kyle Machulis
dd19729534
Bug 1123516 - Implement maplike/setlike in WebIDL Codegen; r=bz
2015-06-29 15:38:53 -07:00
Boris Zbarsky
dc497428b2
Bug 1174954 part 3. Remove ReportJSExceptionFromJSImplementation, since it no longer does anything interesting. r=bholley
2015-06-16 16:44:11 -04:00
Boris Zbarsky
01030c94fd
Bug 1174954 part 2. Remove the special-casing of DOMError in JS-implemented webidl code. r=bholley
2015-06-16 16:44:11 -04:00
Boris Zbarsky
25376f934f
Bug 1173593. Make it possible to throw TypeError (or, in fact, any other Error from the content compartment) from js-implemented webidl. r=bholley
2015-06-15 20:09:36 -04:00
Terrence Cole
bed04fe17f
Bug 1169086 - Use virtual dispatch to implement callback tracer; r=jonco, r=mccr8
2015-05-28 16:35:08 -07:00
Jason Orendorff
ae20e82492
Bug 1140482 - Add JSPROP_RESOLVING. Give NativeDefineProperty standard behavior in cases where a non-resolving define needs to trigger a resolve hook. r=Waldo.
2015-05-01 14:03:17 -05:00
Terrence Cole
71589e5cf0
Bug 1167453 - Rename JSGCTraceKind and make it a C++11 enum class; r=jonco
2015-05-22 10:40:24 -07:00