Commit Graph

522 Commits

Author SHA1 Message Date
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
Jim Chen
03727ba844 Bug 1192082 - Iniialize/deinitialize JNI in nsAppShell; r=snorp
First we need to set the Gecko thread JNIEnv* in nsAndroidStartup, but
after that we can initialize and deinitialize the rest of JNI, including
AndroidBridge, in GeckoAppShell. This makes nsAppShell control the
AndroidBridge lifetime. Over time, parts of the AndroidBridge
functionality will be migrated to nsAppShell.
2015-08-13 00:53:40 -04:00
Jim Chen
742bfc8ea0 Bug 1192082 - Get rid of GeckoAppShell.nativeInit; r=snorp
Instead of letting AndroidBridge be constructed separately, we'll let
Gecko construct AndroidBridge.
2015-08-13 00:53:39 -04:00
Mike Hommey
03d9719906 Bug 1168291 - Install mozcrt.lib instead of mozglue.lib in the SDK. r=mshal
When building with MOZ_CRT (which is more or less the default when
building on Windows with MSVC2013), building e.g. XPCOM components
requires linking against mozcrt.lib, so it needs to be shipped in
the SDK. On the other hand, mozglue.lib, which is currently shipped,
is not useful because it lacks the necessary hacks from mozcrt.lib
avoiding crashes for memory allocator mismatch.
2015-08-11 07:20:20 +09:00
Richard Newman
f465cd09ce Bug 1135281 - Correctly bind null parameters in SQLiteBridge.cpp. r=sebastian 2015-08-07 21:43:47 -07:00
Jim Chen
cf40f969b5 Bug 1186467 - Update generated JNI bindings; r=me 2015-08-04 17:47:28 -04:00
Jim Chen
9db302862d Bug 1182641 - Update autogenerated code; r=me 2015-07-29 15:11:15 -04:00
Mark Capella
48fba8ca8a Bug 1174922 - NativeZip does not null-terminate zip entry comparisons correctly, r=nchen 2015-07-29 01:03:26 -04:00
Jacek Caban
b5310ade5f Bug 1176731 - Don't mark static inline functions as MFBT_API in TimeStamp.h. r=Waldo 2015-07-28 17:47:33 +02:00
David Major
7b3f762ca3 Bug 1170141 - Block RealNetworks Browser Record Plugin due to startup crashes. r=ehan 2015-07-22 13:27:00 +02:00
Birunthan Mohanathas
47ed3a3675 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
Ehsan Akhgari
22e6fc8e45 Bug 1111415 - Null check the base pointer in FramePointerStackWalk before dereferencing it; r=BenWa 2015-07-10 15:49:54 -04:00
Robert O'Callahan
972aedb76b Bug 1143575. Android's screenshotting code should invalidate the LayerManagerComposite to ensure composition will actually happen. r=nical
There is some ambiguity about whether ScheduleComposite will necessarily
trigger a composite all the way to nsWindow::DrawWindowUnderlay. Android
robocop tests assume it will, because they rely on DrawWindowOverlay
being called so they can take a screenshot and make progress,
but this is a very fragile assumption. They also rely on the entire
window being painted, which is also a fragile assumption.

This patch improves the situation by explicitly invalidating the current
window area when Android Java code needs to trigger a composite. This avoids
regressions from future patches in this series which make composition bail
out when there is nothing invalid.

The resulting setup is still a bit fragile for my taste but I'm not sure
what the ideal solution would be.
2015-06-12 03:20:04 +12:00
Gabriele Svelto
8fed70f18a Bug 858928 - Switch XRE_StartupTimelineRecord() from PRTime to TimeStamp. r=froydnj 2015-07-06 18:01:09 +02:00
Benoit Girard
e61fc6d12d Bug 1179550 - Always terminate the str buffer. r=erahm 2015-07-02 16:30:58 -04:00
Nathan Froyd
8780083336 Bug 1161627 - part 2 - machine-convert TemporaryRef<T> to already_AddRefed<T>; r=ehsan
This conversion was done with the script:

  find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl' | \
    egrep -v 'cairo-win32-refptr.h|RefPtr.h|TestRefPtr.cpp' | \
    xargs sed -i -e 's/mozilla::TemporaryRef</already_AddRefed</g' \
                 -e 's/TemporaryRef</already_AddRefed</g'

Manual fixups were performed in the following instances:

- We handled mfbt/RefPtr.h manually so as to not convert TemporaryRef itself
  into already_AddRefed.

- The following files had explicit Move() calls added to make up for the lack
  of a copy constructor on already_AddRefed:

  dom/base/ImageEncoder.cpp
  dom/media/MediaTaskQueue.{h,cpp}
  dom/media/webaudio/PannerNode.cpp

- A redundant overload for MediaTaskQueue::Dispatch was deleted.

- A few manual fixups were required in mfbt/tests/TestRefPtr.cpp.

- Comments, using declarations, and forward declarations relating to
  TemporaryRef in dom/canvas/ and gfx/layers/ were changed to refer to
  already_AddRefed.
2015-06-17 10:00:52 -04:00
Daniel Holbert
f7a104927a Bug 1176266: In TimeStamp_posix.cpp, check for XP_LINUX instead of LINUX, and add missing #include, to allow strrchr usage. r=BenWa
Landing on a CLOSED TREE with RyanVM's permission.
2015-06-19 10:39:20 -07:00
Benoit Girard
9b4532466d Bug 1172216 - Move nsStackwalk to mozglue. r=glandium 2015-06-10 16:32:45 -04:00
Benoit Girard
aace26e2a9 Bug 858927 - Move the mozilla::TimeStamp into mozglue. r=glandium 2015-06-05 16:03:11 -04:00
Mike Hommey
d594f5f393 Bug 1172668 - Unbreak DMD on OS X after bug 1168719. r=gps
Bug 1168719 added a generic replace malloc library which name happened to be
the same as the existing dummy library used to link replace malloc on OSX.
Change the name of that dummy library.
2015-06-10 10:49:22 +09:00
David Major
477ce1af3e Bug 763395 - Add nlsp.dll to blocklist. r=bsmedberg 2015-06-05 11:49:00 -04:00
Julian Seward
ed082bc0ef Bug 1125091 - Make Nuwa be Valgrind-friendly. r=njn. 2015-06-01 12:18:00 +02:00
Nathan Froyd
bb51644dac Bug 1160485 - remove implicit conversion from RefPtr<T> to TemporaryRef<T>; r=ehsan
Having this implicit conversion means that we can silently do extra
refcounting when it's completely unnecessary.  It's also an obstacle to
making RefPtr more nsRefPtr-like, so let's get rid of it.
2015-05-01 09:14:16 -04:00
Nathan Froyd
ac7e1768b8 Bug 1116905 - part 1 - remove dependence on implicit conversion from T* to TemporaryRef<T>, non-gfx changes; r=ehsan 2015-04-30 15:17:08 -04:00
Mike Hommey
a186075cb0 Bug 1043692 - Move DIST_INSTALL to moz.build. r=gps 2015-05-12 07:55:22 +09:00
Mike Hommey
23fb4c1447 Bug 1043692 - Add a DIST_INSTALL variable to moz.build, and replace NO_DIST_INSTALL with it. r=gps 2015-05-12 07:55:21 +09:00
David Major
dc677dff01 Bug 1160148: Also block AVX2 in Win7RTM, and move the code to mozglue. r=froydnj 2015-05-11 16:12:45 -04:00
Jim Chen
ff67df1f51 Bug 1157908 - Optimize pumpMessageLoop call to use less JNI; r=snorp 2015-04-27 20:52:52 -04:00
Ryan VanderMeulen
918a8d6141 Backed out changesets a486dcc9c233 and 7164a2488b28 (bug 1157908) for various Android test failures.
CLOSED TREE
2015-04-24 16:01:17 -04:00
Jim Chen
0b6415ec9d Bug 1157908 - Optimize pumpMessageLoop call to use less JNI; r=snorp 2015-04-24 14:40:55 -04:00
David Major
1ebb4c286e Bug 1130061: Block version 1.5 of vwcsource.ax. r=bsmedberg 2015-04-24 11:29:40 -04:00
travis
da4b77c3f3 Bug 1154803 - Put our sigaction diversion in __sigaction if it exists r=glandium 2015-04-21 09:32:45 -05:00
Randall Barker
47296673b3 Bug 1148149 - Support Android Presentation API. r=snorp, r=jgilbert 2015-04-10 22:14:00 -04:00
David Major
a8c1002b48 Bug 1151506: Block long hex name DLLs due to startup crashes. r=bsmedberg 2015-04-10 15:23:32 -04:00
Mike Hommey
75f4f8947d Bug 1138824 - Remove NO_INSTALL_IMPORT_LIBRARY. r=gps
NO_INSTALL_IMPORT_LIBRARY is only used in one place, and since we don't even
use $(DIST)/lib for gecko, it actually doesn't make a difference presently.
2015-03-27 09:42:00 +09:00
Cervantes Yu
96343f2326 Bug 1144535: Respect caller-specifed thread attributes in creating threads in the Nuwa process. r=asuth 2015-03-20 18:55:11 +08:00
Jim Blandy
3245acc086 Bug 1134039: Make SpiderMonkey standalone (JS_STANDALONE) builds use jemalloc and mozglue by default. r=glandium
JS_STANDALONE builds don't need everything in mozglue; have mozglue omit the
unneeded code for such builds.

Since the SpiderMonkey binaries are now more like the other Gecko binaries, we
can remove some special cases for JS_STANDALONE in GeckoSharedLibrary,
GeckoProgram, etc. All Gecko binaries now use mozglue, which contains mfbt, so
we no longer need mention mfbt explicitly.

Add a property to the getBuildConfiguration testing function's result that
indicates whether we're using jemalloc or not.

Include the newly necessary source directories in the SpiderMonkey source
package.
2015-03-19 02:12:53 -07:00
David Major
5f0a55b479 Bug 1136968 - Add YCWebCameraSource.ax to DLL blocklist. r=benjamin 2015-03-17 18:32:00 +01:00
Cervantes Yu
0316846a2e Bug 1119157: Fix false over-recursion in web worker threads by cleaning up thread info in the processes forked from Nuwa. a=asuth 2015-02-17 16:25:24 +08:00