Paolo Amadini
a10c74bb84
Bug 989960 - Unhandled rejections in DOM Promises should cause xpcshell tests to fail. r=Yoric
2016-02-03 12:58:03 +00:00
Wes Kocher
4cedb9e286
Backed out changeset e8148cda7d85 (bug 989960) for xpcshell bustage
2016-02-01 08:25:19 -08:00
Paolo Amadini
03c4897fc2
Bug 989960 - Unhandled rejections in DOM Promises should cause xpcshell tests to fail. r=Yoric
2016-01-30 18:53:56 +00:00
Kyle Huey
ce39f191af
Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug
2016-01-30 09:05:36 -08:00
Jeff Walden
49d3b8f6d6
Bug 1243114 - Convert PromiseCapability::mPromise to a rooted JSObject* instead of a rooted JS::Value. r=bz
2016-01-26 23:26:39 -08:00
Kaku Kuo
f5da8c7795
Bug 1239300 - reject promise with null while creating imagebitmap from empty blob; r=smaug
2016-01-19 14:35:01 +08:00
simplyblue
e46649ebeb
Bug 1212533 - Change the out-param of js/JS::Construct from MutableHandleValue to MutableHandleObject. r=arai, r=jorendorff
2015-10-28 16:38:27 +05:30
Phil Ringnalda
2095bc7229
Merge f-t to m-c, a=merge
2016-01-23 18:11:37 -08:00
Boris Zbarsky
4ea521c573
Bug 1242054. Get rid of AbortablePromise, so we can move Promise into SpiderMonkey more easily. r=khuey
2016-01-23 00:37:44 -05:00
Tom Tromey
6468241afc
Bug 757969 - use __thread in ThreadLocal; r=froydnj
2016-01-22 10:33:44 -07:00
Shu-yu Guo
cfb7759eb5
Bug 1220564 - Update chrome code uses of genexprs and legacy comprehensions. (r=billm)
2016-01-06 16:02:16 -08:00
Boris Zbarsky
0eff54887c
Bug 1230704. Change AbortablePromise::DoAbort to not worry about the result of calling its callback. r=smaug
2015-12-07 18:41:41 -05:00
Boris Zbarsky
f3cd7947e7
Bug 1170760 part 13. Add subclassing support to Promise::Then/Catch. r=baku,efaust
2015-11-25 15:48:10 -05:00
Boris Zbarsky
759171d923
Bug 1170760 part 12. Rip out the promise-resolved-with-promise fast path. r=baku
2015-11-25 15:48:09 -05:00
Boris Zbarsky
3fab245816
Bug 1170760 part 11. Add subclassing support to Promise::Reject. r=baku,efaust
2015-11-25 15:48:09 -05:00
Boris Zbarsky
6d27b91fbc
Bug 1170760 part 10. Add subclassing support to Promise::Resolve. r=baku,efaust
2015-11-25 15:48:09 -05:00
Boris Zbarsky
9d3287ef48
Bug 1170760 part 9. Stop using Promise::Resolve in the bindings for PromiseDebugging. r=baku
2015-11-25 15:48:09 -05:00
Boris Zbarsky
7796192fb5
Bug 1170760 part 8. Add subclassing support to Promise::All. r=baku,efaust
2015-11-25 15:48:09 -05:00
Boris Zbarsky
c123650b10
Bug 1170760 part 7. Add subclassing support to Promise::Race. r=baku,efaust
...
Note that the web platform tests don't actually have quite the behavior they're
expected to per the spec yet. They will get adjusted later on as we add
subclassing support to Promise.resolve and Promise.prototype.then.
2015-11-25 15:48:09 -05:00
Boris Zbarsky
a5df77f75f
Bug 1170760 part 6. Fix GetDependentPromise to deal with a situation when someone called then() and passed it the resolve/reject functions that come from a promise's constructor. r=baku
2015-11-25 15:48:09 -05:00
Boris Zbarsky
07f93ba4ba
Bug 1170760 part 5. Implement NewPromiseCapability which can either return a PromiseCapability as in the spec, or one that has a native promise and maybe resolve/reject functions if the consumer asked for them. r=baku,efaust
2015-11-25 15:48:09 -05:00
Boris Zbarsky
57757a9548
Bug 1170760 part 4. Change Promise::Constructor to run in the Xray compartment when new Promise happens over Xrays. r=peterv
2015-11-25 15:48:08 -05:00
Boris Zbarsky
c8d16f8f48
Bug 1170760 part 3. Add an @@species getter on Promise. r=peterv
2015-11-25 15:48:08 -05:00
Boris Zbarsky
739d2ace0e
Bug 1170760 part 2. Pass in the 'this' value to Promise static methods. r=peterv
2015-11-25 15:48:08 -05:00
Boris Zbarsky
4c0b5449e9
Bug 1170760 part 1. Introduce a PromiseCapability struct. r=baku,efaust
2015-11-25 15:48:08 -05:00
Phil Ringnalda
00669a9c14
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
4c0fdf7ada
Bug 1170760 part 13. Add subclassing support to Promise::Then/Catch. r=baku,efaust
2015-11-25 15:48:10 -05:00
Boris Zbarsky
f07e814e4e
Bug 1170760 part 12. Rip out the promise-resolved-with-promise fast path. r=baku
2015-11-25 15:48:09 -05:00
Boris Zbarsky
44566b8a83
Bug 1170760 part 11. Add subclassing support to Promise::Reject. r=baku,efaust
2015-11-25 15:48:09 -05:00
Boris Zbarsky
5ee3e0dd87
Bug 1170760 part 10. Add subclassing support to Promise::Resolve. r=baku,efaust
2015-11-25 15:48:09 -05:00
Boris Zbarsky
d99c841da8
Bug 1170760 part 9. Stop using Promise::Resolve in the bindings for PromiseDebugging. r=baku
2015-11-25 15:48:09 -05:00
Boris Zbarsky
86a7090e1f
Bug 1170760 part 8. Add subclassing support to Promise::All. r=baku,efaust
2015-11-25 15:48:09 -05:00
Boris Zbarsky
91c333a74c
Bug 1170760 part 7. Add subclassing support to Promise::Race. r=baku,efaust
...
Note that the web platform tests don't actually have quite the behavior they're
expected to per the spec yet. They will get adjusted later on as we add
subclassing support to Promise.resolve and Promise.prototype.then.
2015-11-25 15:48:09 -05:00
Boris Zbarsky
fb217f506e
Bug 1170760 part 6. Fix GetDependentPromise to deal with a situation when someone called then() and passed it the resolve/reject functions that come from a promise's constructor. r=baku
2015-11-25 15:48:09 -05:00
Boris Zbarsky
6547b0613e
Bug 1170760 part 5. Implement NewPromiseCapability which can either return a PromiseCapability as in the spec, or one that has a native promise and maybe resolve/reject functions if the consumer asked for them. r=baku,efaust
2015-11-25 15:48:09 -05:00
Boris Zbarsky
dc8279a075
Bug 1170760 part 4. Change Promise::Constructor to run in the Xray compartment when new Promise happens over Xrays. r=peterv
2015-11-25 15:48:08 -05:00
Boris Zbarsky
eb0d178e3a
Bug 1170760 part 3. Add an @@species getter on Promise. r=peterv
2015-11-25 15:48:08 -05:00
Boris Zbarsky
2b0b9e21e4
Bug 1170760 part 2. Pass in the 'this' value to Promise static methods. r=peterv
2015-11-25 15:48:08 -05:00
Boris Zbarsky
ca4e2ccf0e
Bug 1170760 part 1. Introduce a PromiseCapability struct. r=baku,efaust
2015-11-25 15:48:08 -05:00
Boris Zbarsky
444c2bbfaa
Bug 1224007 part 5. Get rid of ErrorResult::StealJSException. r=peterv
2015-11-20 16:29:41 -05:00
Edwin Flores
26ff4b3c1f
Bug 1226003 - Stop using MaybeRejectBrokenly in DetailedPromise - r=bz
2015-11-20 13:21:48 +00:00
Boris Zbarsky
0ac283bac5
Bug 1182197 workaround. Add a null-check for mGlobal in Promise::Settle. r=mccr8
2015-09-11 21:59:43 -04:00
Nathan Froyd
9c5965b035
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
Andrea Marchesini
6c7aa82f42
Bug 1214300 - AsyncErrorReporter doesn't use JSRuntime param., r=smaug
2015-10-14 11:29:55 +01:00
Boris Zbarsky
8db8b8f650
Bug 1213391. Unmark gray things before putting them into function reserved slots in Promise code. r=mccr8
2015-10-09 16:48:10 -04:00
Carsten "Tomcat" Book
9f1c0bf17d
Backed out 2 changesets (bug 1202902) to recking bug 1202902 to be able to reopen inbound on a CLOSED TREE
...
Backed out changeset 647025383676 (bug 1202902)
Backed out changeset d70c7fe532c6 (bug 1202902)
2015-10-07 14:03:21 +02:00
Carsten "Tomcat" Book
9eaa0d1abc
Backed out 1 changesets (bug 1202902) for causing merge conflicts to mozilla-central
...
Backed out changeset cfc1820361f5 (bug 1202902)
2015-10-07 12:13:45 +02:00
Shu-yu Guo
53a85861c1
Bug 1202902 - Scripted fix the world.
2015-10-06 14:00:31 -07:00
Andrea Marchesini
d58c392c30
Bug 1209919 - Improving naming and comments in StructuredCloneHelper, r=smaug
2015-09-30 13:22:08 +01:00
Boris Zbarsky
d0a9339903
Back out the null-check workaround for bug 1182197 on trunk, so we can see what the stacks look like after all via crash-stats data on nightly and dev channel.
2015-09-18 13:38:42 -04:00