Giovanny Andres Gongora Granada
2e800a3fea
Bug 1150312 - Remove MOZ_SHARK. r=glandium
2015-07-23 18:16:00 -04:00
Tom Tromey
9f3b16bf4c
Bug 1148593 - Create async stack in callback objects. r=bz, r=fitzgen
...
--HG--
extra : rebase_source : f9b507d8f005dbca6f40f510ca41a0cbb03aebf9
2015-07-24 07:01:00 -04:00
Andrew McCreight
95bead4668
Bug 1187410 - Use GetNameShared() in XPCNativeInterface::NewInstance() to avoid a leak. r=mrbkap
...
GetName() returns a new string, but that string is never freed.
This patch avoids the leak by not copying the string. This is okay because
the scope of intfNameChars is within the scope of aInfo.
2015-07-26 14:26:23 -07:00
Bobby Holley
4dac367856
Bug 1186213 - Add an API to deep-freeze the result of Cu.cloneInto. r=gkrizsanits
2015-07-21 14:57:00 +02:00
Terrence Cole
f0591ea02e
Bug 1186156 - Move the PersistentRooted list heads into RootLists; r=sfink
2015-07-09 14:13:10 -07:00
Andrew McCreight
13e2d3a560
Bug 931571, part 13 - Add a destructor for nsDiscriminatedUnion. r=froydnj
...
The existing nsDiscriminateUnions either always call Cleanup() when they
are about to go away, or they only handle scalar values so it is safe to
call Cleanup() on them without worrying about another discriminated union
having taken over any memory owned by this union.
2015-07-23 12:28:30 -07:00
Andrew McCreight
0994e4e4ed
Bug 931571, part 12 - Add nsDiscriminatedUnion::GetType(). r=froydnj
...
This is not quite enough to make the data members private because
XPCVariant pokes around to do some JS array stuff.
2015-07-23 12:28:30 -07:00
Andrew McCreight
4bdbcd2020
Bug 931571, part 11 - Turn nsDiscriminatedUnion's Traverse function into a method. r=froydnj
2015-07-23 12:28:30 -07:00
Andrew McCreight
cb922209d3
Bug 931571, part 9 - Turn most of the nsVariant setters into nsDiscriminated methods. r=froydnj
...
This also adds a new nsDiscriminatedUnion method SetFromDOMString, as somebody added an nsVariant method without the corresponding helper.
2015-07-23 12:28:30 -07:00
Andrew McCreight
8c28737b59
Bug 931571, part 8 - Turn ConvertToISupports, ConvertToInterface and ConvertToArray to methods. r=froydnj
2015-07-23 12:28:30 -07:00
Andrew McCreight
219f81d45f
Bug 931571, part 7 - Turn ConvertTo*String and ToString into methods. r=froydnj
2015-07-23 12:28:30 -07:00
Andrew McCreight
83b488957d
Bug 931571, part 6 - Make ConvertToID and String2ID into methods. r=froydnj
2015-07-23 12:28:30 -07:00
Andrew McCreight
6c297a19d4
Bug 931571, part 5 - Turn basic ConvertTo functions into methods. r=froydnj
2015-07-23 12:28:30 -07:00
Andrew McCreight
ca92d9ebc0
Bug 931571, part 2 - Convert Cleanup() and FreeArray() to methods. r=froydnj
2015-07-23 12:28:29 -07:00
Andrew McCreight
7b7d1a30b8
Bug 931571, part 1 - Use a constructor for nsDiscriminatedUnion. r=froydnj
2015-07-23 12:28:29 -07:00
Andrew McCreight
621e57b2b7
Bug 1176341 - De-holder nsIXPConnect::CreateSandbox. r=baku,gabor
2015-07-21 11:31:44 -07:00
Ryan VanderMeulen
fb3e0b058e
Backed out changeset 553a3e1e7b18 (bug 1176341) for bustage.
...
CLOSED TREE
2015-07-21 13:00:55 -04:00
Andrew McCreight
5cbc3abf39
Bug 1176341 - De-holder nsIXPConnect::CreateSandbox. r=baku,gabor
2015-07-21 09:44:37 -07:00
Andrew McCreight
6ea0227583
Bug 1185144 - nsConsoleService::LogMessageWithMode() should release the retired message on the main thread. r=froydnj
...
Also, add release asserts that the other methods that addref or release console messages are only run on the main thread.
Finally, add an assert that nsScriptErrorWithStack is only created on the main thread.
2015-07-21 07:50:09 -07:00
Andrew McCreight
d0c5cd2fd1
Bug 1185634 - Part 2: Remove obsolete comment. r=gabor
2015-07-20 11:46:00 -04:00
Andrew McCreight
a2bd54bd1d
Bug 1185634 - Part 1: SandboxPrivate shouldn't be public. r=gabor
...
--HG--
rename : js/xpconnect/public/SandboxPrivate.h => js/xpconnect/src/SandboxPrivate.h
2015-07-20 11:46:00 -04:00
Andrew McCreight
39839cde51
Bug 1185056 - Use the normal CC macros for XPCWrappedNative. r=smaug
2015-07-17 14:14:00 +02:00
Jan de Mooij
250652b04a
Bug 1184564 part 1 - Use Value instead of jsval in XPConnect. r=bholley
2015-07-18 21:45:35 +02:00
Brian Hackett
cd9e31dcba
Bug 1183480 - Return old timeout value in setScriptTimeout(), r=bholley.
2015-07-17 09:45:08 -07:00
Ryan VanderMeulen
b171b787bd
Backed out changesets fa9fe193778f and 3eaf867930dd (bug 1148593) for test_async_setTimeout_stack.html and test_async_setTimeout_stack_across_globals.html failures.
2015-07-17 12:37:24 -04:00
Tom Tromey
843465db8e
Bug 1148593 - Create async stack in callback objects. r=bz, r=fitzgen
2015-07-17 07:48:00 -04:00
Kyle Huey
74f03750da
Bug 1182316: Part 3 - Add assertions to most other WebIDL entry points, clean up nsIDOMJSWindow cruft. r=peterv
2015-07-16 22:10:35 -07:00
Andrew McCreight
7102f1c26b
Bug 1184400, part 3 - Use HasExternalReference in XPCWrappedNative::Traverse. r=bholley
...
This is just for consistency.
2015-07-16 17:50:43 -07:00
Andrew McCreight
52b10c8714
Bug 1184400, part 2 - XPCWrappedNative::Suspect() should suspect the JS reflector object even if it doesn't own it. r=bholley
2015-07-16 17:50:43 -07:00
Andrew McCreight
e7070f39fe
Bug 1184400, part 1 - Make XPCJSRuntime::SuspectWrappedNative into a method on XPCWrappedNative. r=bholley
2015-07-16 17:50:43 -07:00
Andrew McCreight
f3d75a224c
Bug 1184630 - Remove the unused XPCWrappedNative::LocateTearOff(). r=gabor
...
Also, remove some redundant access specifiers in XPCWrappedNative.
2015-07-16 17:50:43 -07:00
Jason Orendorff
b99588d3e5
Bug 987514, part 4 - Implement most of the standard Reflect methods. r=Waldo.
...
Reflect.construct will be added in bug 1178932.
Reflect.enumerate is not implemented because we do not implement the underlying internal method to spec yet.
--HG--
extra : rebase_source : 47f533df6e2b4f38b3812c1ce955fa90ce055a75
2014-11-05 00:32:29 -06:00
Jason Orendorff
3a5f570d6f
Bug 987514, part 3 - Make every global have a (usually empty) Reflect object; rename JS_InitReflect -> JS_InitReflectParse. r=Waldo.
...
The bit in MIRGenerator.h fixes a straight-up bug in the code, masked until now by unified builds (and unmasked because this patch adds a .cpp file, perturbing the unified build boundaries).
--HG--
extra : rebase_source : aa6bf55dc1ce87b9fc10af76cb506560b14c3de9
2014-11-04 21:41:43 -06:00
Bobby Holley
c8b6dbffb7
Bug 1184382 - Handle a sandboxPrototype we don't subsume. r=gabor
2015-07-16 11:24:18 -07:00
Daniel Holbert
c81b996b3b
Bug 814497 followup: Add missing 'override' keyword to nsScriptErrorWithStack method 'GetStack'. rs=ehsan
2015-07-15 17:23:53 -07:00
Bobby Holley
f26bc6851d
Bug 1182357 - Implement support for optional size_is for arrays passed from JS. r=mrbkap
...
The fact that the caller needs to pass this is just an artifact of the clunky
XPIDL type system. This should let us make nicer APIs.
2015-07-15 16:59:08 -07:00
Wes Kocher
c3eedd62ae
Merge m-c to inbound, a=merge CLOSED TREE
2015-07-15 16:41:49 -07:00
Alexandre Poirot
ec268220f2
Bug 814497 - Fix nsScriptErrorWithStack constructor. r=ehsan
2015-07-15 09:58:26 -07:00
Bobby Holley
e53c744803
Bug 1182409 - Add 'allowWaivers' sandbox option. r=gabor
2015-07-15 11:32:30 -07:00
Alexandre Poirot
18efabed2b
Bug 814497 - Pass SavedFrame from JS::ErrorObject to nsIScriptError. r=bholley
2015-07-09 07:02:00 -04:00
Birunthan Mohanathas
a8939590de
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
Geoff Brown
52d4e225a0
Bug 1026290 - Update mochitest-chrome manifests for android; r=jgriffin
2015-07-10 14:41:59 -06:00
Wes Kocher
d8780b2a3f
Backed out changeset 74293125739a (bug 1176341)
2015-07-10 12:48:20 -07:00
Andrew McCreight
8047284e97
Bug 1176341 - De-holder nsIXPConnect::CreateSandbox. r=baku,gabor
2015-07-10 07:41:33 -07:00
Boris Zbarsky
d39d28be5c
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
Martin Thomson
30fc9b669e
Bug 1181262 - Disabling more code under --disable-webrtc, r=dholbert,bwc
...
--HG--
rename : dom/media/RTCIdentityProviderRegistrar.cpp => dom/media/webrtc/RTCIdentityProviderRegistrar.cpp
rename : dom/media/RTCIdentityProviderRegistrar.h => dom/media/webrtc/RTCIdentityProviderRegistrar.h
extra : commitid : 1wyjSLjnSs8
extra : rebase_source : b7777f20ed69324e8572f34f4cb1246d704b2c65
2015-07-08 12:27:45 -07:00
Nicholas Nethercote
f976bf5495
Bug 1179071 - Merge RemovingIterator into Iterator. r=froydnj.
...
The original motivation for the Iterator/RemovingIterator split was that
PLDHashTable Checker class would treat them differently. But that didn't end up
happening (see bug 1131308). So this patch merges them. This is a small code
size win now but it will become bigger when I add iterators to nsTHashTable and
nsBaseHashtable.
The only complication is that PLDHashTable::Iter() is now non-const, which is
a problem if you use it in a const method. So I added PLDHashTable::ConstIter()
which is used in just two places. It's a bit of a hack -- effectively a
const_cast -- but I don't think it's too bad.
2015-07-06 22:02:26 -07:00
Dragana Damjanovic
7987d2203e
Bug 905127 - Part 2 - remove unnecessary nsNetUtil.h includes r=jduell
2015-07-06 07:55:00 +02:00
Emanuel Hoogeveen
7d1e52f2ff
Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell
2015-07-07 04:17:00 +02:00
Jeff Walden
9f7e9fa682
Bug 1163891 - Read lines of input in xpcshell/jsshell while properly handling EINTR failures and retrying in response. r=glandium
...
--HG--
extra : rebase_source : a821bfabfac56e7d9d82dc6b37475d6bae3c0ebc
2015-07-02 21:19:22 -07:00