Commit Graph

560 Commits

Author SHA1 Message Date
Nathan Froyd
2384c3bdcf Backout 6a9d0f869621 (bug 1232458) for adding inappropriate colors to our CLOSED TREE 2015-12-24 21:45:30 -05:00
Mike Hommey
3dc777c558 Bug 1113930 - Use the actual stack end address on x86 OSX and Android for the stack walker. r=froydnj
Also, in the unlikely case none of the supported methods is available, error
out at compile time, because it's not supposed to happen, apart if something
like what bug 989499 did happens again.
2015-12-25 06:47:05 +09:00
Mike Hommey
cff9297236 Bug 1113930 - Move __libc_stack_end related code block from StackWalk.cpp in a non-OSX section. r=froydnj
Bug 989499 unfortunately moved it to a OSX-only section, which broke using
__libc_stack_end, which is Linux-specific (glibc, really).
2015-12-25 06:45:55 +09:00
Nathan Froyd
898943b89d Bug 1232458 - use UniquePtr<T[]> instead of nsAutoArrayPtr<T> in WindowsDllBlocklist.cpp; r=aklotz 2015-12-06 07:54:29 -05:00
Jim Chen
5326296b3f Bug 1233812 - Remove obsolete methods in GeckoAppShell; r=snorp
These methods were from the XUL Fennec days and are obsolete.
2015-12-23 22:03:35 -05:00
Jim Chen
b605aa550c Bug 1227706 - Remove unused GLController calls and events; r=snorp
Remove GLController calls and events in GeckoAppShell and GeckoEvent
that were made obsolete by the new native calls.
2015-12-23 22:03:34 -05:00
Aaron Klotz
10379467c2 Bug 1233237: Backout a882a8c92a28 for causing winsock connectivity problems; r=backout 2015-12-23 14:35:42 -07:00
Xidorn Quan
4e6e0ee00d Bug 1233666 - Remove hacks for getting frame pointer for x86/x64 gcc. r=glandium 2015-12-22 20:24:33 +11:00
philipp
3f926b84bf Bug 1233237 - Add Nvidia Network Access Manager .dlls to Windows blocklist. r=aklotz 2015-12-19 09:10:00 +01:00
Carsten "Tomcat" Book
0eca0c54c3 Backed out changeset 8b4bffb2ce7c (bug 1133073) for bustage on Android 2015-12-21 11:07:48 +01:00
Jed Davis
ab50338407 Bug 1133073 - Use PR_DuplicateEnvironment to avoid post-fork malloc on all Linux platforms. r=dhylands
This removes the Android-only in-Gecko version of PR_DuplicateEnvironment from bug 773414.
2015-12-17 10:10:00 +01:00
Nathan Froyd
eef875bd6b Backout 62dab36901e2 and 9b4445c0f202 (bug 1232458) for Windows bustage; r=me 2015-12-18 11:15:10 -05:00
Nathan Froyd
ee894a155b Bug 1232458 - fix Windows build bustage on a CLOSED TREE; r=me 2015-12-18 10:57:17 -05:00
Nathan Froyd
f6312ced04 Bug 1232458 - use UniquePtr<T[]> instead of nsAutoArrayPtr<T> in WindowsDllBlocklist.cpp; r=aklotz 2015-12-06 07:54:29 -05:00
Kartikaya Gupta
9b77b6b8a3 Bug 1230522 - Make some unimplemented functions not be native. r=rbarker 2015-12-10 17:23:07 -05:00
Reuben Morais
9762b0d504 Bug 1212679 - Handle KitKat default messaging app intents. r=fabrice r=snorp 2015-12-08 14:43:09 -05:00
philipp
7e54372bd4 Bug 1222819 - Add Orbit Downloader .dlls to Windows blocklist. r=aklotz 2015-12-01 12:40:25 -07:00
Aaron Klotz
47dc8c0346 Bug 1222933: Backout previous DLL blocklist change as it had no effect on crash; r=backout 2015-12-01 11:53:14 -07:00
Sebastian Kaspari
18acbcb919 Bug 1197720 - NativeCrypto (SHA-256): Let caller define number of bytes in 'str' to update from. r=snorp
In Java we will call this method with byte array buffers we use to read from a stream. Java does not
guarantee to completely fill the buffer (and can't at the end of a stream). Passing the number of bytes
to read from the array to NativeCrypto avoids copying bytes between arrays of various lengths.
2015-11-30 15:59:56 +01:00
Aaron Klotz
939265df10 Bug 1222933 - Add am32-34121.dll to blocklist; r=bsmedberg 2015-11-10 15:25:06 -07:00
Dylan Roeh
214df76183 Bug 1221040 - Add SHA-256 support to NativeCrypto and relevant tests to robocop. r=snorp 2015-11-18 13:10:51 -06:00
Jacek Caban
c2d7396f8b Bug 989499 - mingw 64-bit fixup: use proper type in pointer cast to avoid losing precision. 2015-11-16 15:56:46 +01:00
Benoit Girard
d70c905083 Bug 989499 - Part 2: Use FramePointerStackwalk on windows. r=rjmuizel 2014-03-28 16:31:15 -04:00
Randall Barker
d4aac2b75e Bug 1223440 - Implement NativePanZoomController::setIsLongpressEnabled so long-press detection can be disabled during testing. r=kats 2015-11-10 12:47:48 -05:00
Nathan Froyd
3592281736 Bug 1222088 - remove unused variable from TimeStamp_windows.cpp; r=glandium
clang-cl warns about this via -Wunused-const-variable, so we might as
well get rid of it.
2015-11-05 12:47:36 -05:00
Mike Hommey
405622a83e Bug 1221453 - Use ObjDirPaths for GENERATED_INCLUDES and merge with LOCAL_INCLUDES. r=gps 2015-11-06 09:59:21 +09:00
Nathan Froyd
0b7a3a127e Bug 1220189 - use UniquePtr<T[]> instead of delete[] calls in mozglue/android/; r=darchons
We can do better than use raw new[]/delete[] calls all over this file:
we can factor out the code for APK library loading into a separate
function, and use UniquePtr there.  This refactoring will also
centralize the code for determining the path to a library within the
APK.
2015-10-30 11:16:24 -04:00
James Willcox
2801d6c924 No bug, add missing include to StackWalk.cpp, DONTBUILD 2015-10-28 14:10:29 -05:00
Andrew McCreight
61f76e4340 Bug 1216354 - Disable LSan leak checking by default in mozglue. r=glandium 2015-10-22 09:33:43 -07:00
Jim Chen
4c5c5c26db Bug 1207642 - Work around Dalvik bug by realigning stack on JNI entry. r=snorp
Use the force_align_arg_pointer attribute to force realigning stack at JNI entry points.
2015-10-21 08:27:00 -04:00
Nathan Froyd
e4e2da55c9 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
Nathan Froyd
5254890206 Bug 1207245 - part 3 - switch all uses of mozilla::RefPtr<T> to nsRefPtr<T>; r=ehsan
This commit was generated using the following script, executed at the
top level of a typical source code checkout.

 # Don't modify select files in mfbt/ because it's not worth trying to
 # tease out the dependencies currently.
 #
 # Don't modify anything in media/gmp-clearkey/0.1/ because those files
 # use their own RefPtr, defined in their own RefCounted.h.
find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    grep -v 'mfbt/RefPtr.h' | \
    grep -v 'mfbt/nsRefPtr.h' | \
    grep -v 'mfbt/RefCounted.h' | \
    grep -v 'media/gmp-clearkey/0.1/' | \
    xargs perl -p -i -e '
 s/mozilla::RefPtr/nsRefPtr/g; # handle declarations in headers
 s/\bRefPtr</nsRefPtr</g; # handle local variables in functions
 s#mozilla/RefPtr.h#mozilla/nsRefPtr.h#; # handle #includes
 s#mfbt/RefPtr.h#mfbt/nsRefPtr.h#;       # handle strange #includes
'

 # |using mozilla::RefPtr;| is OK; |using nsRefPtr;| is invalid syntax.
find . -name '*.cpp' -o -name '*.mm' | xargs sed -i -e '/using nsRefPtr/d'

 # RefPtr.h used |byRef| for dealing with COM-style outparams.
 # nsRefPtr.h uses |getter_AddRefs|.
 # Fixup that mismatch.
find . -name '*.cpp' -o -name '*.h'| \
    xargs perl -p -i -e 's/byRef/getter_AddRefs/g'
2015-10-18 00:40:10 -04:00
Wes Kocher
90ebf26869 Backed out changeset a67ea3f24678 (bug 1205987) for not working as well as originally thought
CLOSED TREE
2015-10-14 09:51:35 -07:00
Carsten "Tomcat" Book
631d2babdf merge mozilla-inbound to mozilla-central a=merge 2015-10-14 12:46:09 +02:00
Reuben Morais
214bccea25 Bug 1213170 - Always generate JNI stubs for GeckoSmsManager. r=nalexander 2015-10-13 21:51:50 -03:00
Nathan Froyd
00fc20e1f7 Bug 1207245 - part 2 followup - add more mozilla/RefCounted.h includes where appropriate; r=me 2015-10-12 22:24:05 -04:00
philipp
57aeda29d4 Bug 1205987 - Add freecorder dll to Windows blocklist. r=dmajor
CLOSED TREE
2015-10-13 13:03:12 -07:00
Chris Peterson
dd2fcb9b7d Bug 1207030 - Enable -Wshadow flag in more directories that have no -Wshadow warnings. r=glandium 2015-09-22 21:39:03 -07:00
Brian Birtles
d5af21047a Bug 1202556 - Detect underflow in TimeStamp addition/subtraction operators; r=froydnj 2015-09-14 09:47:09 +09:00
Michael Layzell
f20336e5e1 Bug 1201190 - Part 3: Mark every consumer of GUARD_OBJECT as MOZ_RAII, r=ehsan 2015-09-12 16:53:33 -04:00
Nicholas Nethercote
dd6b6da237 Bug 1203553 - Fix an MSVC warning in mozglue. r=glandium.
This lets us remove the ALLOW_COMPILER_WARNINGS=True flag.
2015-09-10 16:52:30 -07:00
Brian Birtles
79d3dd88b7 Bug 1203350 - Unify arithmetic operators in TimeStamp; r=froydnj 2015-09-11 15:02:04 +09:00
Ted Mielczarek
326ab27018 bug 1198226 - Move HOST_{C,CXX}FLAGS to moz.build HOST_{CFLAGS,CXXFLAGS,DEFINES}. r=mshal
As part of this move, HOST_NSPR_MDCPUCFG needed to be changed to get the quoting right.
2015-09-08 11:35:43 -04:00
Aaron Klotz
8a0c89214f Bug 1194890 - Ensure that any user32 imports to mozglue are delay loaded; r=glandium 2015-08-14 16:27:03 -06:00
Nicholas Nethercote
69d088e45f Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.
2015-08-27 20:44:53 -07:00
Cervantes Yu
aa469abcee Bug 1166207 - Load preload.js in the Nuwa process. r=khuey 2015-08-28 17:57:44 +08:00
Ryan VanderMeulen
8f8d05680f Merge m-c to fx-team. a=merge 2015-08-26 14:34:15 -04:00
Gijs Kruitbosch
638e27517a Bug 1198186 - increase limit used to detect int values passed as first argument to LdrLoadDll, r=dmajor 2015-08-25 12:07:39 +01:00
David Major
187400f43f Bug 1196859 - Block Roboform binaries written against old SDK. r=bsmedberg 2015-08-20 12:27:00 -04:00
Gerald Squelart
f7d85b23f8 Bug 1197145 - Added BaseTimeDuration::IsZero(), BaseTimeDuration::operator bool(), TimeStamp::operator bool(). r=nfroyd 2015-08-21 05:36:00 -04:00