Boris Zbarsky
e7b3aff703
Bug 1452010 part 3. Remove nsIDOMDOMException. r=qdot
...
MozReview-Commit-ID: AFKzyxCyriJ
2018-04-06 23:29:13 -04:00
Boris Zbarsky
0484c9f8d8
Bug 1435483 part 21. Remove nsIException::ToString. r=qdot
...
MozReview-Commit-ID: 17yuhlqzbr2
2018-02-05 16:34:06 -05:00
Boris Zbarsky
6d959f0894
Bug 1435483 part 20. Remove nsIException::GetData. r=qdot
...
MozReview-Commit-ID: 9cDzCeddOmh
2018-02-05 16:34:06 -05:00
Boris Zbarsky
e3723e3999
Bug 1435483 part 18. Remove nsIException::GetResult. r=qdot
...
MozReview-Commit-ID: JArus2ddEsL
2018-02-05 16:34:06 -05:00
Boris Zbarsky
5f72207de1
Bug 1435483 part 17. Remove nsIException::GetMessageMoz. r=qdot
...
MozReview-Commit-ID: GKzE812BfIF
2018-02-05 16:34:06 -05:00
Boris Zbarsky
9846bd2805
Bug 1435483 part 14. Remove nsIException::GetFilename/GetLineNumber/GetColumnNumber. r=qdot
...
MozReview-Commit-ID: 6JN7UvkhPgl
2018-02-05 16:34:05 -05:00
Boris Zbarsky
1fcbdd4ee4
Bug 1435483 part 13. Remove nsIException::GetName. r=qdot
...
MozReview-Commit-ID: CXnwjeHoGRm
2018-02-05 16:34:05 -05:00
Boris Zbarsky
fecfd59513
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
fc76addc96
Bug 1435483 part 3. Remove nsIXPCException. r=qdot
...
This interface is not usable from JS, because we don't expose initialize() in
the WebIDL bindings for Exception. And C++ doesn't use it.
MozReview-Commit-ID: LsIm4YA0YZE
2018-02-05 16:34:04 -05:00
Boris Zbarsky
050e7666bc
Bug 1435483 part 2. Stop allowing creation of Exception objects via contract/CID. r=bholley
...
MozReview-Commit-ID: H6RmL4BZfgh
2018-02-05 16:34:04 -05:00
Jon Coppeard
90415fd427
Bug 1417123 - Remove or replace inclusion of js/GCAPI.h r=mccr8
2017-11-16 12:21:08 +00:00
Boris Zbarsky
b4b0541192
Bug 1389582. Drop classinfo stuff from Exception, since that's exposed via webidl bindings. r=peterv
...
MozReview-Commit-ID: 4BaYjfOdrUc
2017-08-31 09:12:14 -04:00
Eric Rahm
bf94c13168
Bug 1391803 - Use nsStringFwd.h for forward declaring string classes. r=froydnj
...
We should not be declaring forward declarations for nsString classes directly,
instead we should use nsStringFwd.h. This will make changing the underlying
types easier.
2017-08-16 16:48:52 -07:00
Sylvestre Ledru
9d4a84d778
Bug 1378712 - Remove all trailing whitespaces r=Ehsan
...
MozReview-Commit-ID: Kdz2xtTF9EG
2017-07-06 14:00:35 +02:00
Ms2ger
843e5775cb
Bug 1299812 - Remove mLineNumber member of mozilla::dom::Exception. r=bkelly
2016-09-05 10:35:10 +02:00
Ms2ger
3496a104ab
Bug 1299812 - Remove unused mFilename member of mozilla::dom::Exception. r=bkelly
2016-09-01 16:26:15 +02:00
Olli Pettay
0fd40d8ce7
Bug 1257096, don't try to report about unusual unhandled rejected Promises, r=bz,waldo
2016-04-20 02:29:21 +03:00
Boris Zbarsky
90298f136b
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
03b1012b2f
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
5e1fa9e66c
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
a68ab77d38
Backed out changeset 6403c45366e0 (bug 1257919)
2016-03-22 21:10:55 +01:00
Sebastian Hengst
15448ddd9f
Backed out changeset 08f1c7239cdf (bug 1257919)
2016-03-22 21:10:01 +01:00
Sebastian Hengst
77eb406761
Backed out changeset ff81c52375ba (bug 1257919)
2016-03-22 21:09:32 +01:00
Boris Zbarsky
b162a17fbc
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
66f3a012c0
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
946b993596
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
Boris Zbarsky
ba28410f25
Bug 1229664. Drop the concept of inner exceptions from Exception/DOMException. r=bholley
2015-12-02 13:52:59 -05:00
Chris Pearce
45415ac27c
Bug 1169129 - Make DOMException::Create(nsresult, nsCString) accept nsACString. r=bholley
2015-06-05 21:55:52 +12:00
Edwin Flores
dc0534d58f
Bug 1160445 - Add detailed logging for EME promise failures - r=cpearce,bholley
2015-06-03 13:42:50 +12:00
Andrew McCreight
92010d3e4c
Bug 1152551, part 2 - Fix mode lines in dom/. r=jst
2015-05-03 15:32:37 -04:00
Ehsan Akhgari
ea41d8de48
Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
...
This patch was automatically generated using the following script:
function convert() {
echo "Converting $1 to $2..."
find . \
! -wholename "*/.git*" \
! -wholename "obj-ff-dbg*" \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-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_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Boris Zbarsky
3a822d99b4
Bug 1117172 part 3. Change the wrappercached WrapObject methods to allow passing in aGivenProto. r=peterv
...
The only manual changes here are to BindingUtils.h, BindingUtils.cpp,
Codegen.py, Element.cpp, IDBFileRequest.cpp, IDBObjectStore.cpp,
dom/workers/Navigator.cpp, WorkerPrivate.cpp, DeviceStorageRequestChild.cpp,
Notification.cpp, nsGlobalWindow.cpp, MessagePort.cpp, nsJSEnvironment.cpp,
Sandbox.cpp, XPCConvert.cpp, ExportHelpers.cpp, and DataStoreService.cpp. The
rest of this diff was generated by running the following commands:
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObject\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(Binding(?:_workers)?::Wrap\((?:aCx|cx|aContext|aCtx|js), [^,)]+)\)/\1, aGivenProto)/g'
2015-03-19 10:13:33 -04:00
Boris Zbarsky
285b44b531
Bug 1122238 part 3. Drop all the DOMException-cloning and sanitization gunk we added in bug 1107592 and bug 1107953 and bug 1117242 . r=bholley
2015-03-06 01:08:06 -05:00
Boris Zbarsky
c37f97d98c
Bug 1107953 part 5. Add tests for promise rejections with content-side DOMExceptions, and fix the promise code so those tests actually pass. r=bholley
2015-01-15 17:39:02 -05:00
Ehsan Akhgari
24a5ebae3e
Bug 1107592 follow-up: Add a missing include for Optional to fix the non-unified build bustage
2015-01-02 18:06:58 -05:00
Boris Zbarsky
78b583e059
Bug 1107592 part 1. Implement a DOMException constructor. r=peterv
2015-01-02 17:08:33 -05:00
Boris Zbarsky
c3dc54717f
Bug 1041646. Don't assume mStack is non-null in JSStackFrame, since people sometimes operate on them after unlinking. r=khuey
2014-07-26 01:41:18 -04:00
Boris Zbarsky
347a46200d
Bug 857648 part 5. Expose a .stack property on DOMExceptions. r=khuey
2014-07-04 01:25:16 -04:00
Carsten "Tomcat" Book
44793b7606
Backed out changeset a4524d7aec4f (bug 857648)
2014-07-04 08:23:31 +02:00
Boris Zbarsky
3e6c7cc39f
Bug 857648 part 5. Expose a .stack property on DOMExceptions. r=khuey
2014-07-04 01:25:16 -04:00
Boris Zbarsky
2126a3f0d0
Bug 995047. Change out stack/exception APIs to hand out AString instead of AUTF8String for filename/functionname, so we end up with fewer string conversions in practice. r=smaug
2014-04-11 22:20:40 -04:00
Boris Zbarsky
b95c359828
Bug 991742 part 8. Remove the "aScope" argument of WebIDL/nsWrapperCache WrapObject() methods. r=bholley
...
This patch was mostly generated with the following command:
find . -name "*.h" -o -name "*.cpp" | xargs sed -e '/WrapObject(JSContext/ {; N; s/\(WrapObject(JSContext *\* *a\{0,1\}[Cc]x\),\n\{0,1\} *JS::Handle<JSObject\*> a\{0,1\}[sS]cope/\1/ ; }' -i ""
and then reverting the changes that made to
dom/bindings/BindingUtils.h, since those WrapObject methods are not
the ones we're trying to change here, plus a bunch of manual fixups
for cases that this command did not catch (including all the callsites
of WrapObject()).
2014-04-08 18:27:18 -04:00
Andrea Marchesini
1d90531561
Bug 958816 - Make strings in nsIStackFrame API sane, r=bz
2014-01-20 17:51:41 +01:00
Kyle Huey
10d56b428a
Bug 911258: Part 5 - Use the unified exception handling mechanism on workers. r=bz
2013-09-08 20:29:21 -07:00
Kyle Huey
72ac69366e
Bug 911258: Part 4 - Refactor exception implementations. r=bz
2013-09-08 20:28:50 -07:00