Commit Graph

135 Commits

Author SHA1 Message Date
Jose Cortes
54342890c6 Bug 842186 - Replace a few instances of jsval with JS::Value in the WorkerPrivate class. r=jwalden 2013-02-20 10:23:40 -08:00
Gregor Wagner
c1e1ce8078 Bug 841041 - Fix memory broadcast bug for workers. r=bent. 2013-02-15 14:12:19 -08:00
Ben Turner
2b88bbfe54 Bug 839117 - 'Don't allow a leaking memory reporter to hang workers'. r=jlebar. 2013-02-08 03:50:00 -08:00
Mats Palmgren
7532b4e736 Bug 786533 - Replace NS_MIN/NS_MAX with std::min/std::max and #include <algorithm> where needed. r=ehsan 2013-01-15 13:22:03 +01:00
Gregor Wagner
a97005ae45 Bug 828887 - "unused-arenas" is not freed unless worker is idle for 5 seconds. r=bent 2013-01-10 23:50:40 +01:00
Ian Melven
78fbea8c77 Bug 752529 - workers shouldn't use string origins as null principals don't have them. Part 2 - nsPrincipal GetBaseDomain (r=bz) 2013-01-08 13:53:32 -08:00
Ben Turner
73163816a9 Bug 827274 - 'crash in [@ anonymous namespace::CTypesActivityCallback(JSContext*, js::CTypesActivityType)], add ctypes closure support to new worker memory reporting mechanism. r=khuey+mrbkap. 2013-01-08 13:57:44 +01:00
Ben Turner
370e873903 Bug 813867 - 'Report memory for web workers that use ctypes'. r=jlebar+jorendorff. 2012-12-30 10:21:52 -08:00
Nicholas Nethercote
8a28a2740d Bug 819819 (part 2) - Remove |name| from NS_MEMORY_REPORTER_MALLOC_SIZEOF_FUN. r=jlebar. 2012-12-23 16:59:51 -08:00
Kyle Huey
e521577c59 Bug 824723: Don't fire error events if the worker is shutting down. r=bent 2012-12-31 07:48:57 -08:00
Kyle Huey
1ffb1f415a Bug 823953: Improve sync queue handling. r=bent 2012-12-21 12:14:47 -08:00
Kyle Huey
e424faf3c9 Bug 820476: Allow postMessage on pending workers. r=bent 2012-12-14 08:16:11 -08:00
Andrea Marchesini
6afc285140 Bug 812249 - When "javascript.options.strict" is enabled related warnings/errors trigger worker.onerror handler. r=bent 2012-12-07 19:35:44 -05:00
Nicholas Nethercote
a7f09d1ba8 Bug 812935 - Fix undefined value error in memory reporter for web workers. r=khuey 2012-11-18 17:49:13 -08:00
Boris Zbarsky
3986f7846f Bug 779048 part 0.5. Don't require a JSContext argument for nsJSUtils::GetStaticScriptGlobal. r=bholley 2012-11-09 07:43:57 -08:00
Jacek Szpot
09f9b9a1c3 Bug 792180 - Replace NS_{UN,}LIKELY with MOZ_{UN,}LIKELY; r=ehsan 2012-10-26 15:32:10 +02:00
Bobby Holley
d38c48122d Bug 789224 - Remove miscellaneous UniversalXPConnect checks sprinkled throughout gecko. r=mrbkap 2012-10-22 08:29:55 +02:00
Isaac Aggrey
50d6240e45 Bug 794510: Part 2: Use more stdint types instead of protypes.h types; r=ehsan 2012-10-11 18:38:04 -05:00
Andrea Marchesini
2c738486a3 Bug 720083 - Workers: add support for transferable objects from HTML5 spec. r=sphink, r=bent 2012-10-03 18:19:22 -04:00
Kyle Huey
3627c5f7c3 Bug 785248: Clear the worker's queue when terminating, even if we never ran any script. r=bent 2012-10-02 19:03:28 -07:00
Isaac Aggrey
990e90e88a Bug 791906: Replace NSPR integer limit constants with stdint ones; r=ehsan 2012-09-28 01:57:33 -05:00
Phil Ringnalda
c3fdaee1cc Back out b24a73b2c617 for Windows build bustage and test_xhr_timeout.html failure 2012-09-27 21:24:42 -07:00
Andrea Marchesini
a50b958258 Bug 720083 - Workers: add support for transferable objects from HTML5 spec. r=sphink, r=bent 2012-09-27 23:05:59 -04:00
Terrence Cole
e13b7397b1 Bug 791322 - Move Rooted to js:: namespace; r=billm
These should not be part of the public API.
2012-09-24 18:08:22 -07:00
Andrea Marchesini
06d200ba8a Bug 793020. r=bent 2012-09-22 08:45:00 -04:00
Andrea Marchesini
8d1826c64c Bug 761227 - Support XMLHttpRequestParameters in workers. r=bent 2012-09-16 20:20:16 -04:00
Andrea Marchesini
e5b464e46f Bug 609748 - Workers: If CSP blocks eval in a page, eval should also be blocked in workers created by that page. r=bent 2012-09-15 14:51:55 -04:00
Daniel Holbert
3306142184 Bug 789382: Change nsIScriptError methods init() and initWithWindowID() to take nsAString, rather than wchar / PRUnichar*. r=bz sr=bsmedberg 2012-09-09 16:29:12 -07:00
Olli Pettay
117ece3734 Bug 787961 - Remove mDocument from WorkerPrivate, r=bent 2012-09-05 20:47:57 +03:00
Randell Jesup
3b4961b603 Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg 2012-09-01 22:35:17 -04:00
Benjamin Peterson
6691ef6548 Bug 781035 followup - fix indentation. r=me 2012-08-27 08:21:27 -04:00
Benjamin Peterson
3a84fd29b4 Bug 781035 - Use the C++ JS compile API in more places. r=jorendorff sr=jst 2012-08-27 08:04:37 -04:00
Luke Wagner
55107a5229 Bug 625199 - s/JSAutoEnterCompartment/JSAutoCompartment/ and make it infallible (r=bholley) 2012-08-21 18:42:53 -07:00
Ehsan Akhgari
243c878d26 Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
This patch was generated by a script.  Here's the source of the script for
future reference:

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -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 PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t

convert PRIntn int
convert PRUintn unsigned

convert PRSize size_t

convert PROffset32 int32_t
convert PROffset64 int64_t

convert PRPtrdiff ptrdiff_t

convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Ian Melven
4aff5ba057 Bug 341604 - workaround for workers wanting a string origin r=jst 2012-08-20 11:34:32 -07:00
Aryeh Gregor
691ef24b2a Bug 780618 - Move all error codes to nsError.h; r=ehsan 2012-07-27 17:03:27 +03:00
Kyle Huey
8e5232761e Bug 758125: Don't rely on the order of the timeout array to discard expired timeouts. Check explicitly instead. r=bent 2012-08-10 09:10:22 -07:00
Kyle Huey
3bfefe3ae7 Bug 774732: Always modify the busy count in NotifyRunnable to avoid busy count mismatches. r=bent 2012-08-07 14:38:46 -07:00
Kyle Huey
d8015d2a88 Bug 774770: Move the assertion to after the code that handles the cases the assertion guards against. r=bent 2012-08-06 08:29:03 -07:00
Aryeh Gregor
7dfe568de5 Bug 780469 - Reduce unnecessary includes in some content/ header files; r=bz 2012-08-06 15:02:08 +03:00
Ed Morley
00daa22719 Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-08-02 14:19:18 +01:00
Jan Varga
c4615aaecd Bug 778023 - Need to figure out how cycle collected DOM files are supposed to play with workers. r=bent. Make worker.postMessage() to just throw for now. 2012-08-02 07:34:26 +02:00
Tim Taubert
c139a7ff70 Bug 779445 - SegFault in WorkerMemoryReporter because it accesses mWorkerPrivate when null; r=bent 2012-08-01 17:23:13 +02:00
Aryeh Gregor
6b3ee254ff Bug 777292 - Convert incorrect conversions to nsresult and fix named constants; r=ehsan 2012-07-27 16:59:29 +03:00
Aryeh Gregor
8b4a23fc4c Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Nicholas Nethercote
997077f926 Bug 749010 (part 2) - Move code around to merge two anonymous namespaces; no functional changes. r=bent. 2012-07-12 23:51:01 -07:00
Nicholas Nethercote
6afff70520 Bug 749010 (part 1) - Make WorkerMemoryReporter less crashy. r=bent. 2012-05-29 19:39:38 -07:00
Andrew McCreight
c5b20d9425 Bug 704623 - Track memory used by orphan DOM nodes. code=mccr8,njn. r=njn,mccr8. 2012-04-20 14:01:33 +10:00
Nicholas Nethercote
b11348dae9 Bug 687724 (part 3) - Report JS memory consumption for compartments that are associated with |window| objects under "window-objects". r=bholley,jlebar,luke. 2012-07-05 21:12:37 -07:00
Blake Kaplan
9799bf5594 Bug 769265 - Fix these calls. r=bent 2012-06-28 16:14:11 +02:00