Commit Graph

40 Commits

Author SHA1 Message Date
Ehsan Akhgari
92064e6d3f Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Michael Wu
d2b70213ac Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
2011-09-28 23:19:26 -07:00
Luke Wagner
a9d6d33a65 Bug 684526 - Remove Jsvalify/Valueify (r=waldo)
--HG--
extra : rebase_source : a3047338ed088c26a93486addd0be8092fe52934
2011-09-20 11:40:24 -07:00
Jeff Walden
c79b0345f1 Bug 675797 - Warn in calls to nsIJSON.encode and nsIJSON.decode that the two methods are deprecated. r=jst
--HG--
extra : rebase_source : ec4bda0ae1c71955bd42e45f51b996141cf4372c
2011-08-01 15:14:31 -07:00
Nils Maier
df0ddbc4b7 Bug 672063 - Complete nsIJSON implementation again. r=jwalden sr=dmandelin 2011-07-22 14:12:34 +02:00
Gavin Sharp
05a8ac323e Bug 669938: nsIJSON::decodeFromStream fails for streams containing fewer than 4 bytes, r=jwalden 2011-07-07 14:42:11 -04:00
Jeff Walden
0349ff3c11 Bug 645922 - Remove nsIJSON.encode/decode, because their functionality is subsumed by JSON.parse and JSON.stringify, and their idiosyncrasies are hindering code improvements. Also remove js_TryJSON and JS_TryJSON, which are no longer used after these changes and have no clear use cases. r=brendan, r=jst 2011-03-28 19:27:15 -07:00
Jeff Walden
c4d955c11a Bug 662946 - Remove various headers from INSTALLED_HEADERS that shouldn't be there. r=jimb
--HG--
extra : rebase_source : a6028a859cac4625ef2f3227ce0fa3159b5e8556
2011-06-09 01:12:21 -07:00
Chris Leary
47dfb01d0c Merge mozilla-central to tracemonkey. 2011-04-11 16:54:01 -07:00
Emanuele Costa
bedd7c244c Fix for bug 633934. r=bzbarsky
Two files need to be patched:

/dom/src/json/nsJSON.cpp
/dom/src/json/test/unit/test_encode.js

The first problem is a wrong nsnull initialization parameter in one of
the nsJSONWriter constructor.

The second problem is caused by related bug 410005 and only happens on
windows and can be solved by calling the clone() method before calling
filesize attribute on a file that has been created and later on modified
by adding extra content.

The BOM check set to true causes this behaviour

 // check BOMs
  // the clone() calls are there to work around -- bug 410005
  var f = writeToFile({},"UTF-8", true).clone();

As discussed Linux is not affected.

The overall 410005 seems to be related to a wrong logic in the mDirty and
MakeDirty() flag in nsLocalFileWin.cpp implementation.
2011-04-04 16:10:10 -07:00
Simon Montagu
4587536cef Remove UTF-32 encoder and decoder. Bug 604317, r=emk 2011-03-30 08:35:34 +02:00
Jeff Walden
f0c481fe5a Bug 643590 - Convert nsJSON::DecodeFromStream to buffer all JSON data, then process it all in one swell foop once it's all received. r=jst 2011-03-21 11:42:14 -07:00
Jeff Walden
7b3109d8b3 Bug 643532 - Implement JS_ParseJSON and JS_ParseJSONWithReviver, a first step toward moving away from a begin-consume-finish-based JSON parsing process. r=luke 2011-03-21 11:42:06 -07:00
Blake Kaplan
edcc809b4a Fix bug 628231. r=jst, a=blocker 2011-01-25 16:09:56 -08:00
Johnny Stenback
6bf7a1cfc1 Backed out changeset 244738bdb248 due to test failures 2011-01-27 22:48:20 -08:00
Blake Kaplan
aae499a5ab Fix bug 628231. r=jst@mozilla.com, a=blocker 2011-01-27 21:53:23 -08:00
Blake Kaplan
275fe3585d Bug 580128 - Fix compartment warnings by entering. r=gal/peterv/jst/mrbkap/jorendorff (and written by all of us too). 2010-09-22 17:34:20 -07:00
Jeff Walden
8c707b8116 Bug 564621, bug 582077 - JSON.parse shouldn't allow {"a" : "b",} or [1,]. But, because Firefox's bookmarks "JSON" generation has historically generated invalid JSON (it no longer does, see bug 505656), preserve a "legacy" mode of parsing that can be used to load bookmarks.json files (at least until we no longer support migration from Firefox <4 profiles :-) ). r=sayrer 2010-07-14 13:48:36 -05:00
Benjamin Smedberg
c611ebcd81 Bug 568691 part A - register static and binary components using data tables rather than programmatic nsIComponentRegistrar methods. This part contains the important needs-review bits of the change: part B contains the mechanical changes to each module in order to actually get a working build. Part C will contain changes necessary to register JS components from .manifest files 2010-06-10 14:11:11 -04:00
Robert Sayre
66f3f0f7a3 Merge tracemonkey to mozilla-central. 2010-03-26 15:53:14 -07:00
Andreas Gal
4b7c35b234 Disallow embeddings reaching into our guts (part 1: jsnum.h, bug 548205, r=brendan). 2010-03-01 13:30:23 -08:00
Jae-Seong Lee-Russo
440d083761 Bug 530300: Replace PR_MIN/PR_MAX with NS_MIN/NS_MAX in /dom r=peterv 2010-02-20 08:59:07 -05:00
Ryan Flint
d8f1d0210c Bug 549788 - Increase the buffer size used for JSON streams. r=sayrer 2010-03-02 17:54:40 -08:00
Justin Lebar
2fc408988c Bug 500328 - Implement History.pushState(), History.replaceState() methods. r=smaug, r=zpao, sr=sicking 2009-09-01 09:45:05 -07:00
Daniel Holbert
585d440f02 Backed out changeset dc7a04be6904 on suspicion of causing bug 543034. 2010-01-29 18:50:46 -08:00
Justin Lebar
731c252671 Bug 500328 - Implement History.pushState(), History.replaceState() methods. r=smaug, r=zpao, sr=sicking 2009-09-01 09:45:05 -07:00
Luke Wagner
0dbb7fe5e9 Bug 200505 - Optimization of jsref array_join_sub() function. r=waldo 2009-06-30 20:19:42 -04:00
Robert Sayre
a7b739863d Bug 442059 - [native JSON] allow to blacklist keys by name when encoding to JSON. r=brendan 2009-05-07 13:28:21 -07:00
Robert Sayre
bc53f36141 Bug 476374 - JSON.parse does not support reviver argument as defined in spec. r=jorendorff 2009-03-03 12:55:11 -05:00
Robert Sayre
cf88f19458 Bug 408838 - DOM binding for native JSON. r+sr=shaver 2008-10-01 02:13:58 -04:00
Arpad Borsos
5a19e3346c Bug 398946 - Remove JS_STATIC_DLL_CALLBACK and JS_DLL_CALLBACK from the tree; r=(benjamin + bent.mozilla) 2008-09-07 00:21:43 +02:00
Benjamin Smedberg
a0071aaa50 Bug 446132 - Allocate nsJSONWriter on the stack, r=sayrer sr=jst 2008-08-11 15:06:27 -04:00
Brendan Eich
753241e284 Fix encoder to iterate over array indices from 0 to length, instead of over enumerable property ids (437724, r=sayrer). 2008-06-06 22:30:38 -07:00
sayrer@gmail.com
cd75066f18 Bug 424035. Crash [@ JS_IsArrayObject] when trying to decode a bogus JSON string. r=shaver 2008-03-20 13:34:38 -07:00
dbaron@dbaron.org
0f6677bebc Make nsJSONWriter::Write not crash when given buffer greater than 1024 characters. b=423152 r=sayrer a=beltzner 2008-03-17 11:58:38 -07:00
martijn.martijn@gmail.com
8d7867debe Bug 416101 - Mingw build error in ../mozilla/dom/src/json/nsJSON.cpp, r=sayer, a=mtschrep 2008-02-08 15:25:58 -08:00
sayrer@gmail.com
2c430fb3d5 Bug 410890. nsJSON speedups. r=crowder, sr=jst, a=schrep 2008-02-06 23:19:26 -08:00
benjamin@smedbergs.us
b3e87aa63b Bug 411327 - nsIXPCNativeCallContext should not inherit from nsISupports, r=mrbkap, a=schrep 2008-01-15 07:50:57 -08:00
sayrer@gmail.com
2363fa478a Bug 411052. nsJSONListener initialization warning. r/sr=jst, a=schrep 2008-01-08 23:38:17 -08:00
sayrer@gmail.com
bf0d4a7536 Bug 387522. Native JSON support. r=crowder/jst, sr=brendan 2007-12-27 13:34:03 -08:00