Commit Graph

53 Commits

Author SHA1 Message Date
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
8cdf264c0e Backed out changeset 1b5db6edd791 (bug 1257919) 2016-03-22 21:10:45 +01:00
Sebastian Hengst
de4b5ff3eb Backed out changeset 6e95ee3cd4c6 (bug 1257919) 2016-03-22 21:10:21 +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
3a69e5bfdd 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
02a9f19be9 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
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
Peter Van der Beken
0df87a6747 Bug 1253641 - DOMException's CC participant should traverse mData. r=khuey. 2016-03-04 17:54:10 +01:00
Andrew McCreight
9f6b653800 Bug 1247679, part 3 - Replace NS_IMPL_CYCLE_COLLECTION_TRACE_JSVAL_MEMBER_CALLBACK with JS_MEMBER. r=smaug 2016-02-22 10:11:02 -08: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
Kit Cambridge
3019e8045b Bug 1206302 - Use DOMException for Push errors. r=mt 2015-11-05 10:38:35 -08:00
Birunthan Mohanathas
d382a21947 Bug 1217320 - Remove more XPIDL signature comments in .cpp files. r=froydnj
Comment-only, DONTBUILD.
2015-10-27 06:54:25 +02: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
Birunthan Mohanathas
a0f7c73250 Bug 1191100 - Remove XPIDL signature comments in .cpp files. r=ehsan
Comment-only so DONTBUILD.
2015-08-04 16:17:36 -07: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
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
f6a0716f4e Bug 1131894. Break out of the loop in the DOMException constructor once we find a code/result for the given message name. r=peterv 2015-02-13 14:34:53 -05:00
Wes Kocher
518a797d8c Backed out changeset 8db12229549a (bug 1131894) 2015-02-13 13:25:41 -08:00
Boris Zbarsky
c543fbebc6 Bug 1131894. Break out of the loop in the DOMException constructor once we find a code/result for the given message name. r=peterv 2015-02-13 14:34:53 -05:00
Nick Fitzgerald
86849557af Bug 1117242 - SavedFrame objects should do principal checks for every accessor; r=jimb,jandem,bz 2015-02-13 09:21:50 -08: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
Boris Zbarsky
78b583e059 Bug 1107592 part 1. Implement a DOMException constructor. r=peterv 2015-01-02 17:08:33 -05:00
Bobby Holley
4052021543 Bug 1095587 - Add nsWrapperCache and Exception (which is an interface itself) to the interface map of Exception. r=bz 2014-11-07 11:40:04 -08:00
Tom Schuster
4e0dfb7481 Bug 1069694 - Remove OldDebugAPI from the browser. r=shu 2014-10-12 19:37:41 +02:00
Peter Van der Beken
3467274091 Bug 1078744 - Replace SetIsDOMBinding with SetIsNonDOMBinding, remove nsWrapperCache::SetIsDOMBinding. r=bz. 2014-10-07 11:44:49 +02:00
Jamin Liu
fa53a88b42 Bug 1032755 - Add NS_ERROR_MODULE_DOM_BLUETOOTH to nsError list and allow it to be used to create dom exception. r=smaug, f=dhylands, btian 2014-08-25 14:51:20 +08: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
Jan Varga
e4e43c0bee Bug 1006485 - Part a: Rename FileHandle to MutableFile and LockedFile to FileHandle; r=bent 2014-06-12 05:35:29 +02:00
Richard Barnes
761497c98b Bug 995385 - Add WebCrypto WebIDL interfaces. r=bz, r=cviecco, r=dkeeler 2014-05-15 06:20:00 -04:00
Birunthan Mohanathas
eeb9aaaa94 Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj 2014-04-27 03:06:00 -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
Boris Zbarsky
ae0180ee85 Bug 991742 part 6. Remove the "aScope" argument of binding Wrap() methods. r=bholley
This patch was mostly generated with this command:

find . -name "*.h" -o -name "*.cpp" | xargs sed -e 's/Binding::Wrap(aCx, aScope, this/Binding::Wrap(aCx, this/' -e 's/Binding_workers::Wrap(aCx, aScope, this/Binding_workers::Wrap(aCx, this/' -e 's/Binding::Wrap(cx, scope, this/Binding::Wrap(cx, this/' -i ""

plus a few manual fixes to dom/bindings/Codegen.py, js/xpconnect/src/event_impl_gen.py, and a few C++ files that were not caught in the search-and-replace above.
2014-04-08 18:27:17 -04:00
Maksim Lebedev
5a1f19ec5f Bug 968148 - Implement PointerCapture for pointer events. r=smaug 2014-04-04 10:09:10 -07:00
Andrea Marchesini
1d90531561 Bug 958816 - Make strings in nsIStackFrame API sane, r=bz 2014-01-20 17:51:41 +01:00
Boris Zbarsky
2f7a5844f8 Bug 932837 part 5. Don't eagerly grab file/line info when constructing an Exception. r=khuey 2014-01-07 19:53:18 -05:00
Boris Zbarsky
b732e3ce05 Bug 932837 part 3. Make JSStackFrame get information from the JS stack lazily. r=khuey 2014-01-07 19:53:18 -05:00
Birunthan Mohanathas
88a0348924 Bug 713082 - Part 2: Rename Util.h to ArrayUtils.h. r=Waldo 2013-12-08 21:52:54 -05:00
Nicholas Nethercote
0635e6e0e1 Bug 925584 - Remove some unnecessary jsapi.h inclusions from .cpp files. r=Ms2ger. 2013-10-10 15:22:35 -07:00
Andrew McCreight
0fd465a3fb Bug 928655 - Set dom::Exception::mThrownJSVal to null in Unlink. r=khuey 2013-10-19 11:59:31 -07:00
Ehsan Akhgari
5bdb9ad58e Bug 919341 - Minimize the #includes in xpcom/ IDL files; r=bsmedberg 2013-09-23 13:29:27 -04:00