Emilio Cobos Álvarez
fffb25b74f
Bug 1465585: Switch from mozilla::Move to std::move. r=froydnj
...
This was done automatically replacing:
s/mozilla::Move/std::move/
s/ Move(/ std::move(/
s/(Move(/(std::move(/
Removing the 'using mozilla::Move;' lines.
And then with a few manual fixups, see the bug for the split series..
MozReview-Commit-ID: Jxze3adipUh
2018-06-01 10:45:27 +02:00
Jan de Mooij
09c4068fa0
Bug 1464134 part 1 - Fix various places to use Realm instead of JSCompartment. r=luke
2018-05-31 11:28:48 +02:00
Karl Tomlinson
2405fe930c
bug 1328964 use nsContentUtils::GetCurrentJSContext() on all threads r=smaug
...
nsContentUtils::GetCurrentJSContextForThread() originally needed to use
workers::GetCurrentThreadJSContext() in
https://hg.mozilla.org/mozilla-central/rev/366a45b41539#l2.18
because CycleCollectedJS*()->Context() did not exist until
https://hg.mozilla.org/mozilla-central/rev/1a0cd542e1e9#l7.12
nsContentUtils::GetCurrentJSContext() is thread-safe since these changes:
https://hg.mozilla.org/mozilla-central/rev/e636c7186286#l3.12
https://hg.mozilla.org/mozilla-central/rev/c8029c072776#l2.12
MozReview-Commit-ID: 2f1eGS9uBBO
--HG--
extra : rebase_source : dad1d2084a63413c3975f9e7c66c6b06857c9f23
2018-04-09 12:11:18 +12:00
Jason Orendorff
e7c94fff59
Bug 1439063 - Part 1: Move several public headers from js/src to js/public. r=jandem.
...
js/src/jsalloc.h -> js/public/AllocPolicy.h
jsalloc.cpp -> js/src/util/AllocPolicy.cpp
jsbytecode.h -> merge into js/public/TypeDecls.h
jsprf.h -> js/public/Printf.h
jsprf.cpp -> js/src/util/Printf.cpp
jsprototypes.h -> public/ProtoKey.h
jswrapper.h -> js/Wrapper.h
--HG--
rename : js/src/jsalloc.h => js/public/AllocPolicy.h
rename : js/src/jsprf.h => js/public/Printf.h
rename : js/src/jsprototypes.h => js/public/ProtoKey.h
rename : js/src/jswrapper.h => js/public/Wrapper.h
rename : js/src/jsalloc.cpp => js/src/util/AllocPolicy.cpp
rename : js/src/jsprf.cpp => js/src/util/Printf.cpp
extra : rebase_source : 98b16d94c469202eab0303a8da844f1d0b6aa809
extra : amend_source : e0b16c1077226d6fe240f4d7096537f93b43f2b8
extra : histedit_source : d94e0ba7904a7d66742c7fac43f638aaec4fa4e5
2018-02-21 10:30:19 -06:00
Boris Zbarsky
3bf93ec28e
Bug 1435483
part 18. Remove nsIException::GetResult. r=qdot
...
MozReview-Commit-ID: JArus2ddEsL
2018-02-05 16:34:06 -05:00
Boris Zbarsky
12e9f78050
Bug 1435483
part 16. Switch to using dom::Exception, not nsIException, in C++ code. r=qdot
...
nsIException is builtinclass in idl, so whatever code we had to handle
non-dom::Exception nsIExceptions is dead code.
MozReview-Commit-ID: 6VnqDWt0041
2018-02-05 16:34:05 -05:00
Boris Zbarsky
fc5ae1f4a1
Bug 1435483
part 12. Add an infallible "toString" method on nsIStackFrame. r=qdot
...
MozReview-Commit-ID: CTCawPvw6VZ
2018-02-05 16:34:05 -05:00
Boris Zbarsky
539cfc28e6
Bug 1435483
part 11. Add an infallible "formattedStack" getter on nsIStackFrame. r=qdot
...
MozReview-Commit-ID: KLSzUuWt45x
2018-02-05 16:34:05 -05:00
Boris Zbarsky
c8bd8682bf
Bug 1435483
part 10. Add infallible "asyncCaller" and "caller" getters on nsIStackFrame. r=qdot
...
MozReview-Commit-ID: 8pdMDFHWlVt
2018-02-05 16:34:05 -05:00
Boris Zbarsky
b7eaf4b6ae
Bug 1435483
part 9. Add an infallible "name" getter on nsIStackFrame. r=qdot
...
MozReview-Commit-ID: ADxO2A8nkel
2018-02-05 16:34:05 -05:00
Boris Zbarsky
984978f22d
Bug 1435483
part 8. Add an infallible "asyncCause" getter on nsIStackFrame. r=qdot
...
MozReview-Commit-ID: KpRyt21PF7W
2018-02-05 16:34:04 -05:00
Boris Zbarsky
fc7c1f0034
Bug 1435483
part 7. Add an infallible "columnNumber" getter on nsIStackFrame. r=qdot
...
MozReview-Commit-ID: 7VJvDR0qD3G
2018-02-05 16:34:04 -05:00
Boris Zbarsky
2c00c8c971
Bug 1435483
part 6. Add an infallible "lineNumber" getter on nsIStackFrame. r=qdot
...
MozReview-Commit-ID: 7aYg9kJhiab
2018-02-05 16:34:04 -05:00
Boris Zbarsky
02f7baafc0
Bug 1435483
part 5. Add an infallible "filename" getter on nsIStackFrame. r=qdot
...
MozReview-Commit-ID: D3uuehuDqOB
2018-02-05 16:34:04 -05:00
Jon Coppeard
a06421a289
Bug 1417123 - Remove or replace inclusion of js/GCAPI.h r=mccr8
2017-11-16 12:21:08 +00:00
Masatoshi Kimura
49e04cc095
Bug 1149830 - Remove nsIStackFrame::language. r=bz,mccr8
...
MozReview-Commit-ID: LxTiLFzNJ9Y
--HG--
extra : rebase_source : 98ca14aa59a62309dcbe0c9ed3e961c730ff9db9
2017-08-03 15:50:07 +09:00
Andrea Marchesini
7add4454d4
Bug 1331977 - CreateException doesn't use JSContext argument, r=qdot
2017-01-19 09:03:03 +01:00
Olli Pettay
0364dbc792
Bug 1326507, remove NS_IMPL_CYCLE_COLLECTION_TRAVERSE_SCRIPT_OBJECTS, r=mccr8
...
--HG--
extra : rebase_source : 3ae1207308de120b7299b13ecaa95dd1612b3459
2017-01-03 21:47:55 +02:00
Michelangelo De Simone
6314d37360
Bug 1310020 - Remove DOM/bluetooth and related code. r=jst
...
MozReview-Commit-ID: IEhwzzBgb3x
--HG--
extra : rebase_source : 664e30c1d3babc71b2ef77c00e393fa767f4c159
2016-10-28 14:25:23 -07:00
Jon Coppeard
556585c65f
Bug 1297558 - Remove explicit calls to Expose*ToActiveJS r=mccr8
2016-10-18 17:58:19 +01:00
Jon Coppeard
591ec11f61
Bug 1305236 - Don't call ExposeObjectToActiveJS on null pointer r=smaug
2016-09-29 10:18:50 +01:00
Jan de Mooij
a53986bf29
Bug 1302448 part 1 - Rename CycleCollectedJSRuntime to CycleCollectedJSContext. r=mccr8
...
--HG--
rename : xpcom/base/CycleCollectedJSRuntime.cpp => xpcom/base/CycleCollectedJSContext.cpp
rename : xpcom/base/CycleCollectedJSRuntime.h => xpcom/base/CycleCollectedJSContext.h
extra : rebase_source : 075214b5057f151520926715b6154e99ae80a0b3
2016-09-14 15:47:32 +02:00
Kaku Kuo
03100d8735
Bug 1297648 - Create DOMException for NS_ERROR_MODULE_DOM_MEDIA error codes; r=bz
...
MozReview-Commit-ID: A8TgQHToCmQ
--HG--
extra : rebase_source : 36cbe0ffe5f3aa0167bf5f9512bc631c33593cb7
2016-08-24 17:30:58 +08:00
Boris Zbarsky
4821850eb8
Bug 1295322 part 2. Stop propagating through xpconnect exceptions to consumers that won't be able to work with them. r=bholley
2016-08-26 15:38:16 -04:00
Boris Zbarsky
6a73ce5a82
Bug 1295322 part 1. Make ThrowExceptionObject return void, instead of bool. r=bholley
2016-08-26 15:38:16 -04:00
Terrence Cole
e57d650fcf
Bug 1291928 - Expose JSSavedStack's stack before returning; r=bz
2016-08-03 16:12:51 -07:00
Boris Zbarsky
13a6409e22
Bug 1280818 part 2. Change console to capture the first non-self-hosted subsumed frame when it just needs a caller location, instead of capturing the first frame and then possibly failing to get useful location info out of it because it's self-hosted. r=baku
2016-07-21 23:41:02 -04:00
Nick Fitzgerald
ea16cfab73
Bug 1280818 part 1 - Add the ability to capture the stack until the first non-self-hosted frame with the given principals; r=bz,jimb
...
Before this commit, one could either capture all stack frames (by passing
maxFrameCount = 0) or a maximum of N frames (by passing maxFrameCount = N). This
commit introduces the ability to capture the first frame (by default ignoring
self hosted frames) with some target principals. This new option required
replacing the `unsigned maxFrameCount` parameter with the introduction of a new
sum type to describe the stack capturing behavior:
StackCapture = AllFrames
| MaxFrames(unsigned n)
| FirstSubsumedFrame(JSPrincipals* p, bool ignoreSelfHosted)
This is obviously more wordy in C++ than we'd like, but does make the stack
capturing more explicit rather than relying on the sentinal 0 to stand in for
infinity.
2016-07-21 23:40:59 -04:00
Jan de Mooij
66faed38af
Bug 1277278 part 1 - Remove ContextOptions and make autoJSAPIOwnsErrorReporting the default. r=luke
...
--HG--
extra : rebase_source : aa1dcba100a3bb7a5057b07284cf4a99353afe5a
2016-06-07 20:30:48 +02:00
Andrea Marchesini
e004a6613e
Bug 1276887 - webidl "Deprecated" keyword should work in workers, r=smaug
2016-06-01 12:15:34 +02:00
Wes Kocher
043b2fdedd
Backed out changeset e5f0088f8ca2 (bug 1276887) for WorkerPrivate assertions CLOSED TREE
2016-05-31 11:31:29 -07:00
Andrea Marchesini
e7015103b0
Bug 1276887 - webidl "Deprecated" keyword should work in workers, r=smaug
2016-05-31 17:46:52 +02:00
Boris Zbarsky
d17aec7b6a
Bug 1260511 part 3. In dom::Throw, ignore the pending xpconnect exception if we were given a non-default message string (because we don't want to lose that string). Also, make sure to always clear the pending xpconnect exception there. r=khuey
2016-04-22 16:03:05 -04:00
Boris Zbarsky
40c7808bf8
Bug 1260511 part 2. Change XPConnect's handling of exceptions thrown from JS components so that if an nsresult integer is thrown we convert it into an actual exception object before handing it out to content instead of propagating out the numeric value. r=khuey
2016-04-22 16:03:05 -04:00
Boris Zbarsky
e3b2de6aa9
Bug 1255817 part 2. Get rid of AutoJSAPI::OwnsErrorReporting and AutoJSAPI::TakeOwnershipOfErrorReporting. r=bholley
2016-03-23 11:44:54 -04:00
Boris Zbarsky
bc347a401b
Bug 1257919 part 10. Make the caller and formattedStack getters on JSStackFrame take an explicit JSContext. r=khuey
2016-03-22 13:50:35 -04:00
Boris Zbarsky
dde5cae5bb
Bug 1257919 part 9. Make the asyncCause/asyncCaller getters on JSStackFrame take an explicit JSContext. r=khuey
2016-03-22 13:50:31 -04:00
Boris Zbarsky
42b3bbe27a
Bug 1257919 part 8. Make the line/column number getters on JSStackFrame take an explicit JSContext. r=khuey
2016-03-22 13:50:31 -04:00
Boris Zbarsky
54987c5cc1
Bug 1257919 part 7. Make the name getter on JSStackFrame take an explicit JSContext. r=khuey
2016-03-22 13:50:31 -04:00
Boris Zbarsky
efa07c06d1
Bug 1257919 part 6. Make the filename getter on JSStackFrame take an explicit JSContext. r=khuey
2016-03-22 13:50:31 -04:00
Boris Zbarsky
ecd56b7ee6
Bug 1257919 part 5. Get rid of the now-unused StackFrame class. r=khuey
2016-03-22 13:50:31 -04:00
Boris Zbarsky
655d4654c8
Bug 1257919 part 4. Stop returning StackFrame instances from exceptions::CreateStack. C++ callers of GetCurrentJSStack or exceptions::CreateStack always check for null anyway, and none of them seem to want this non-JS thing. r=khuey
2016-03-22 13:50:31 -04:00
Boris Zbarsky
12ede800fa
Bug 1257919 part 3. Make the various toString methods on exceptions take an explicit JSContext. r=khuey
2016-03-22 13:50:31 -04:00
Sebastian Hengst
055a2f1834
Backed out changeset 6403c45366e0 (bug 1257919)
2016-03-22 21:10:55 +01:00
Sebastian Hengst
60e4be8fc0
Backed out changeset 1b5db6edd791 (bug 1257919)
2016-03-22 21:10:45 +01:00
Sebastian Hengst
dac1daf443
Backed out changeset 83dfa9e03d0e (bug 1257919)
2016-03-22 21:10:37 +01:00
Sebastian Hengst
0e9bf1445a
Backed out changeset 6e95ee3cd4c6 (bug 1257919)
2016-03-22 21:10:21 +01:00
Sebastian Hengst
e6e4d30446
Backed out changeset c4faeb0be959 (bug 1257919)
2016-03-22 21:10:12 +01:00
Sebastian Hengst
336c2cc4ae
Backed out changeset 08f1c7239cdf (bug 1257919)
2016-03-22 21:10:01 +01:00
Sebastian Hengst
d5e963398d
Backed out changeset cf816f733296 (bug 1257919)
2016-03-22 21:09:53 +01:00