Luke Wagner
d4edb54e54
Bug 632358 - Only call resetCompartment() when safe to GC (r=waldo)
...
--HG--
extra : rebase_source : 77127374d754a5a39695bb3c7dac95275616a150
2011-02-11 16:13:08 -08:00
Jim Blandy
de75b9fa19
Bug 537873: Add a 'strict' argument to C++ property setter functions. r=brendan
...
This changes the type of setters to JSStrictPropertyOp, which is just like
JSPropertyOp except that it takes a 'JSBool strict' argument. Most of the
patch is introducing distinct types and using the appropriate stubs.
The following are left for subsequent patches:
x Similar fixes to the browser outside SpiderMonkey.
x Actually *using* the newly available strictness information. This patch
should have no user-visible effect. I didn't want the interesting stuff
to get lost in this noise.
2011-02-09 11:31:40 -08:00
Bill McCloskey
40b74847a1
Bug 609104 - Move the property tree to the compartment (r=brendan)
2011-02-04 10:59:07 -08:00
Bill McCloskey
4d89be0bd8
Backed out bug 609104 (csets ac3ba38f20c0 and 7717cabaf20c) (orange)
2011-02-02 14:20:06 -08:00
Bill McCloskey
daa16e64bb
Bug 609104 - Move the property tree to the compartment (r=brendan)
2011-01-27 15:46:39 -08:00
Bill McCloskey
8e7e07dfaa
Bug 623297 - Make JS_TRACE_MONITOR more robust by distinguishing callers (r=gal)
2011-02-01 10:18:06 -08:00
Bill McCloskey
3c8509742b
Bug 623297 - Reduce usage of JS_TRACE_MONITOR in jstracer (r=gal)
2011-02-01 10:16:44 -08:00
Jeff Walden
13fb18a6fe
Bug 619283 - Built-in JS methods must not box undefined or null into the global object when called, both to comply with ES5 and to prevent inadvertent global object exposure to secure JS variants. r=dmandelin
...
--HG--
extra : rebase_source : be6802a24bd58eb6339369e6803d3eb2fbbc07a5
2011-01-26 13:37:45 -08:00
Igor Bukanov
6d2d81f9db
bug 629655 - avoid influencing the malloc GC counters when dumping the heap. r=anygregor
2011-01-28 23:25:05 +01:00
Chris Leary
6d0cc31d27
Back out changeset 7d82892cb8df.
2011-01-27 19:43:33 -08:00
Bill McCloskey
a4f9ab0da8
Bug 609104 - Move the property tree to the compartment (r=brendan)
2011-01-27 15:46:39 -08:00
Chris Leary
074bd0c596
Bug 595691, take 2: fix versioning across VM instances, remove _options. (r=luke,brendan,igor)
2011-01-27 02:54:58 -08:00
Chris Leary
1771b7c232
Backed out changeset b88172246b66 due to Win32 debug failures.
2011-01-25 04:11:47 -08:00
Chris Leary
b462e1fb98
Bug 595691: fix versioning across VM instances, remove _options. (r=luke,brendan,igor)
2011-01-25 02:33:27 -08:00
Jeff Walden
882117c5e3
Back out everything from the last several hours for turning into a disaster zone finally ending in total orange. r=return-to-sanity
2011-01-23 03:12:28 -08:00
Andreas Gal
0fc264ef3f
Don't lose error condition in decompiler (bug 621988, r=brendan).
2011-01-22 23:30:30 -08:00
Andreas Gal
927855f788
Cache eval CSP check (bug 614137, r=mrbkap, a=dmandelin).
2011-01-22 14:28:37 -08:00
Andrew Paprocki
224681155f
Add JS_NewDateObject, JS_NewDateObjectMsec, JS_ObjectIsDate to the JSAPI. Bug 625870, r=jorendorff, a=shaver.
2011-01-18 16:11:03 -06:00
Jason Orendorff
b12d9b4edc
Backed out changeset 27bf86dbdb52 due to redness.
2011-01-18 12:49:36 -06:00
Andrew Paprocki
187630946a
Add JS_NewDateObject, JS_NewDateObjectMsec, JS_ObjectIsDate to the JSAPI. r=jorendorff, a=shaver.
2011-01-18 12:29:35 -06:00
Nicholas Nethercote
ed55695802
Bug 624878 - Remove dangerous uses of vanilla (throw-on-failure) |operator new|. r=lw.
2011-01-17 19:44:10 -08:00
Gregor Wagner
bc39a65c18
Bug 625484 - rename defaultCompartment r=gal
2011-01-13 14:42:36 -08:00
Chris Leary
29a4e97a8f
Bug 617935: Check string lengths using StringBuffer. (r=lw)
2011-01-12 15:28:58 -08:00
Jeff Walden
f46caec81b
Bug 625191 - Root Bindings used in JS_CompileUCFunctionForPrincipals. rs=gwagner
...
--HG--
extra : rebase_source : af09c008781d39de0e756422e0ac56e5f88c71c6
2011-01-12 17:09:06 -06:00
Igor Bukanov
5a00058c07
Bug 619529 - avoid any exposure of XML's AttributeName and AnyName objects. r=brendan
2011-01-09 00:01:52 +01:00
Steve Fink
8470e15e9e
Bug 624316 - Unwrap wrapped functions before returning them to JSD to see the contained script and name, r=gal, a=blocker
...
--HG--
extra : rebase_source : cd15aed41ace6f368ef5f149cd88f32c9dfd1aa5
2011-01-11 14:24:52 -08:00
Andreas Gal
108bc95880
Add API to enable/disable per-compartment GCs (bug 624229, r=shaver).
2011-01-09 22:57:21 -08:00
Gregor Wagner
cbc0a9cb10
Enable per-compartment garbage collection (bug 605662, r=gal).
2011-01-07 23:44:57 -08:00
Andreas Gal
6b5539dc39
Compartment mismatch with pending exception (bug 621845, r=lw,jorendorff).
2011-01-07 02:03:14 -08:00
Chris Leary
e2855fd450
Merge tracemonkey and mozilla-central.
2011-01-07 00:17:35 -08:00
Ben Turner
c926abf576
Bug 618484 - 'Allow ChromeWorkers access to XPCOM objects'. r=jst+jorendorff, a=blocking.
2011-01-06 22:21:30 -08:00
Robert Sayre
4af90e6de9
Backed out changeset d58e45442c87
2011-01-06 21:39:25 -05:00
Andreas Gal
9b4055e1f5
Compartment mismatch with pending exception (bug 621845, r=lw,jorendorff).
2011-01-06 15:15:00 -08:00
Chris Leary
5ada212069
Bug 587288: 0. Compartmentalize regexp allocator, remove ExecutablePool atomic refcounts. (r=gal)
2011-01-05 18:44:30 -08:00
Jeff Walden
f7bec8a9e8
Bug 614493 - Move top-level binding storage (and argument, variable, and upvar counts) out of JSFunction and into js::Bindings, itself stored in JSScript, anticipating the time when strict mode eval scripts will need it. r=brendan
2010-11-16 15:34:24 -08:00
Chris Leary
272d457a20
Merge mozilla-central to tracemonkey.
2010-12-29 19:25:04 -05:00
Ben Turner
8a02f568a0
Backing out worker changes, a=backout.
2010-12-21 16:44:49 -05:00
Ben Turner
d8739dcb8a
Bug 618484 - 'Allow ChromeWorkers access to XPCOM objects'. r=jst, a=blocking.
2010-12-21 14:28:08 -05:00
Ben Turner
bb620ec2bf
Bug 613083 - 'IndexedDB: Switch serialization format from JSON to structured clone bytestream'. r=sicking, a=blocking.
2010-12-21 11:02:04 -05:00
Paul Biggar
d5a5d3946f
Bug 612292 - Rename array allocation functions (r=lw)
2010-12-13 16:22:59 -08:00
Igor Bukanov
034b3c6618
bug 618262 - Removal of JS_NewString. r=brendan
2010-12-10 12:50:50 +01:00
Jeff Walden
f432da735d
Bug 614333 - Remove the empty-script singleton optimization: it is effectively disabled with the methodjit, and its use of a single const JSScript for everything (including across compartments) interferes with recording name bindings in scripts, in order to correctly implement strict mode eval. r=brendan
...
--HG--
extra : rebase_source : 38a7faedb4b090e844cc342c82b273c75ef763bb
2010-11-16 15:30:56 -08:00
Igor Bukanov
a18b8a8142
bug 617215 - eliminating JS_NewString usage in FF while fixing a leak there. r=bz
2010-12-09 11:22:15 +01:00
Nicholas Nethercote
fecf9a1832
Bug 588648 - Don't copy chars when scanning. r=brendan.
2010-12-07 15:22:52 -08:00
Jason Orendorff
5ad6740cda
Fix warning: no return value in JS_IsInRequest if !JS_THREADSAFE. no bug, rs=bz.
2010-12-07 09:03:05 -06:00
Igor Bukanov
933918e6f4
Bug 614578 - Removal of nsAutoGCRoot. r=mrbkap
2010-11-26 15:11:14 +01:00
Igor Bukanov
3717953163
Bug 612150 - Eliminating JS_GetFunctionName. r=mrbkap
2010-11-24 17:56:43 +01:00
Blake Kaplan
6deeefba3d
bug 601803 - Support adopting a node cross-compartment. r=gal/jst
2010-11-15 17:21:25 -08:00
Blake Kaplan
bd44733edc
Backout due to bustage
2010-12-02 17:13:20 -08:00
Blake Kaplan
439ca83a7b
bug 601803 - Support adopting a node cross-compartment. r=gal/jst
2010-11-15 17:21:25 -08:00
timeless@mozdev.org
9520a5b1a4
Bug 615068 obj is only used ifdef DEBUG in JS_NextProperty. r=jorendorff.
2010-11-30 10:16:21 -06:00
Jason Orendorff
a1b6342402
JS_DeepFreezeObject does not actually do anything. Bug 609024, r=Waldo.
2010-11-29 12:50:07 -06:00
Jason Orendorff
b4b193de22
Bug 613068 - Add version argument to JS_ReadStructuredClone. r=bent.
2010-11-24 14:14:02 -06:00
Robert Sayre
f2c7dcfca0
Merge.
2010-11-16 11:39:33 -08:00
Robert Sayre
f8d70b12f4
Merge mozilla-central to tracemonkey.
2010-11-16 07:25:10 -08:00
Chris Leary
dc67060b95
Bug 611462: correct option-to-version propagation. (r=lw)
2010-11-15 13:35:20 -08:00
Igor Bukanov
238c877cc8
Bug 607292 - followup to address comments 16 and 20 from the bug
2010-11-15 23:11:07 +01:00
Gregor Wagner
a9ae1a03f4
Bug 612015 - Put all external strings in one arena r=igor
2010-11-15 12:39:00 -08:00
Chris Leary
3cf9a917aa
Bug 609942: anonfunfix for eval cache comparisons. (r=brendan)
2010-11-09 09:00:54 -08:00
Igor Bukanov
d34f057e79
bug 607292 - eliminating JS_GetStringBytes and friends. r=gal
2010-11-08 13:17:31 +01:00
Igor Bukanov
52ea348c4c
bug 610198 - Replacing JS_GetStringBytes usage with JS_EncodeString. r=gal
2010-11-11 21:40:29 +01:00
David Mandelin
2cec713bd4
Bug 605752: don't crash on OOM inside ExecutablePool, r=dvander, a=beta8+
2010-11-12 18:17:21 -08:00
Bill McCloskey
5ad697399b
Bug 610437 - Add equality flag syncing to JSAPI (r=lw)
2010-11-12 10:40:12 -08:00
David Anderson
7487c14d37
Backed out changeset 8e119f847f97 (build busted)
2010-11-11 11:19:42 -08:00
Igor Bukanov
e32ba97023
bug 610198 - Replacing JS_GetStringBytes usage with JS_EncodeString. r=gal
2010-11-02 15:36:25 +01:00
Jan de Mooij
59027dc8e7
Bug 604864 - Optimize undefined, NaN and Infinity in methodjit. r=dmandelin
2010-11-01 21:47:45 +01:00
David Mandelin
8f658c24e0
Bug 605752: don't crash on OOM inside ExecutablePool, r=dvander, a=beta8+
2010-11-12 18:17:21 -08:00
Igor Bukanov
92b67c9caf
bug 607695 - Avoid unnecessary JS_GetStringBytes. r=gal
2010-10-28 17:15:53 +02:00
Blake Kaplan
a4b38abdeb
Bug 609141 - Compartments mismatch in jsdScript::GetFunctionSource. r=sayrer
2010-11-03 18:04:22 -07:00
Chris Leary
5e66fb3ca8
Bug 608778: Rename JSString::MUTABLE to JSString::EXTENSIBLE. (r=jorendorff)
...
--HG--
extra : rebase_source : 411b842e9b23d3e856f32218f559348bd2f4cac3
2010-11-03 15:34:00 -07:00
Chris Leary
9ff0cd58c9
Bug 596580: Fix mozJSSubScriptLoader's version finding. (r=brendan)
2010-11-03 12:09:24 -07:00
Luke Wagner
0a6acc2075
Bug 607243 - JS_New should report error on primitive return; JSProxyHandler::construct should not call JS_New (r=brendan)
...
--HG--
extra : rebase_source : e81f0f4fbfbfafe40a5827f01a1e6bb92103bb64
2010-11-02 17:39:05 -07:00
Chris Leary
4d3fc89539
Bug 597811: Make mozJSComponentLoader use JSVERSION_LATEST. (r=sayrer)
2010-11-01 17:33:22 -07:00
Robert Sayre
03513401da
Bug 595243 - Expose debugMode to JSD. Relanding test bustage fixed up. r=gal.
2010-10-30 12:13:02 -04:00
Jeff Walden
ff603e73f4
Backed out changeset 85feecf161fe (Career Limiting Move? < http://bonsai.mozilla.org/cvsquery.cgi?who=sspitzer%40netscape.com&whotype=regexp&date=explicit&mindate=2001-01-25+10%3A00&maxdate=2001-01-25+10%3A15 >), seems to have turned mochitest-plain-4 orange.
2010-10-29 22:31:12 -07:00
Robert Sayre
19cc79ccf3
Bug 595243 - Expose debugMode to JSD. r=gal
2010-10-29 18:35:07 -04:00
Chris Leary
8692140272
Bug 607724: Minor scope chain function cleanup. (r=mrbkap)
2010-10-27 16:18:16 -07:00
Andreas Gal
257334300b
Backed out changeset 685accd622f0 (bug 606065).
2010-10-24 13:21:33 -07:00
Andreas Gal
61a710e895
Move deflated string cache into compartment (606065, r=jorendorff).
2010-10-24 02:07:42 -07:00
Jason Orendorff
bfaf004fd7
Merge.
2010-10-22 19:11:26 -05:00
Jason Orendorff
42d03e7276
Address review comments in bug 606029, mainly removing JSTitle from jslock.{h,cpp}.
2010-10-22 19:06:26 -05:00
Jason Orendorff
596862d852
Remove JSObject::title. Bug 606029, r=igor.
2010-10-22 19:04:22 -05:00
Andreas Gal
a4b0c37cda
Remove obsolete wrappedObject extended class hook (604523, r=mrbkap/vlad/dvander).
2010-10-22 15:40:11 -07:00
Brian Hackett
5d3fb505d0
Reland rev d20abbebe373, interrupt counter for JSRuntime, bug 589193.
2010-10-22 10:48:06 -07:00
Blake Kaplan
258cc12ef4
Bug 599672 - Give the regexp statics a parent. r=cdleary
2010-10-21 13:51:56 -07:00
Andreas Gal
6e672eda05
Backed out changeset 438afef93fd5 (bug 604523) due to suspected orange.
2010-10-20 23:19:05 -07:00
Andreas Gal
e5f45d98a2
Remove obsolete wrappedObject extended class hook (604523, r=mrbkap/vlad/dvander).
2010-10-20 22:41:35 -07:00
Brian Hackett
975f0c84d2
Merge. Test backout for bug 601725.
2010-10-19 20:51:11 -07:00
Brian Hackett
19785d46d5
Backed out changeset d20abbebe373
2010-10-19 20:19:56 -07:00
Dave Herman
7488e1af91
bug 594060, r=cdleary: Reflect.parse(): make source location information optional
2010-10-19 09:00:51 -07:00
Jason Orendorff
fd0c6b2d5c
Bug 604087 - Minor tweaks to JS_TransplantWrapper and JSAutoEnterCompartment. r=mrbkap
2010-10-13 17:26:40 -07:00
Blake Kaplan
355a7fed18
Bug 604087 - Deal with GC happening during JS_TransplantWrappers. r=jst/gal
2010-10-13 17:21:00 -07:00
Brian Hackett
f9cf7a5b7d
Flexible length JSObject, bug 584917. r=brendan,igor
2010-10-13 11:49:22 -07:00
Jim Blandy
713b25831a
Bug 601168: Allow nsHTMLPluginObjElementSH::Call to pass through non-Object |this| values to the plugin. r=bz,gal
...
This introduces some new JSAPI C++ entry points, one of which allows
arbitrary jsvals to be passed as the |this| value to a call; this means we
avoid a JSVAL_TO_OBJECT call in the caller, and its corresponding
OBJECT_TO_JSVAL call in the callee.
2010-10-12 11:50:03 -07:00
Johnny Stenback
18174c5a4e
Bug 580128 - No need to assert about commpartment mismatches in JS_Get/SetPrivate (r=gal).
2010-10-10 15:50:11 -07:00
Andreas Gal
96223bbef4
Make functions per compartment, and deep copy instead of clone them if needed (584789, r=mrbkap).
2010-09-29 23:17:29 -07:00
Blake Kaplan
a44ad43150
bug 580128 - Fix more compartment warnings. Work of multiple people. r=gal/peterv/jst
2010-10-10 15:37:19 -07:00
Blake Kaplan
c563e195ac
bug 580128 - Allow API consumers to pass in a new object altogether before trying to wrap in a security wrapper. r=gal/peterv
2010-10-10 15:36:38 -07:00
Blake Kaplan
9b63ed2490
bug 580128 - Fix bugs dealing with transplanting when navigating. r=gal
2010-09-28 17:02:43 -07:00
Jason Orendorff
e71e7e1578
bug 580033 - Make JS_Save/RestoreFrameChain set cx->compartment. r=mrbkap
2010-09-27 18:24:24 -07:00