Граф коммитов

261142 Коммитов

Автор SHA1 Сообщение Дата
Peter Van der Beken 9fc01aa93d Fix for bug 603677 (Crash on startup due to GetProto on an XPCWrappedNative being null with Bugzilla Tweaks jetpack installed), compartments followup. r=mrbkap.
--HG--
extra : rebase_source : 884494ce295e8e2222de4f3bafb02d4a96e2bcc2
2010-10-12 11:51:42 -07:00
Nicholas Nethercote ded661f43c These tests should have been added as part of the patch for bug 595728.
--HG--
extra : convert_revision : f31ee612d65e224424ae24d1852491c1b1698388
2010-10-07 23:14:10 -07:00
Nicholas Nethercote da81d1c120 Bug 599247 - nanojit: in Nativei386.cpp, generate d[b + i<<s] addressing modes in asm_store32(). r=edwsmith.
--HG--
extra : convert_revision : cf8d0148a91da8795edec935ddec57d4164bc3aa
2010-10-07 20:24:07 -07:00
Rick Reitmaier 78296efc38 fix build breakage
--HG--
extra : convert_revision : c900245f6488bbcca67f1b2136c4f30427a789aa
2010-10-07 19:35:06 -07:00
Rick Reitmaier 82959cbc12 Bug 596056 - nanojit: random number generator needed for many hardening algorithms (r+nnethercote,edwsmith)
introduce noise object

Assembler to use a noise object in which the actual mechanics of how noise is
being produced in abstracted by the client.

The noise object will often need to contain state so its convenient to derive
from this class and build an object containing all the necessary state.

--HG--
extra : convert_revision : c569f3ddd2d9b7a69b3c63f1fd139ea8d513fd9c
2010-10-07 19:22:35 -07:00
Nicholas Nethercote 562196787e Bug 602408 - nanojit: print all hex numbers in LIR dumps with an 0x prefix. r=rreitmai.
--HG--
extra : convert_revision : 819b3d7e0ab682bf76da6c24de58434f5744e640
2010-10-07 15:30:36 -07:00
Michael Wu 73283bfd75 Bug 567873 - Android packaging should use standard packaging code, r=ted a=blocking-fennec 2010-10-12 12:43:38 -07:00
Jason Orendorff af0a68663c Fix anyname_finalize to look in the right compartment, to avoid dangling pointer. Likely fix for bug 603270. r=mrbkap over IRC.
--HG--
extra : rebase_source : 234c1412ce5543e32222cfd292ee905634ef6741
2010-10-12 14:40:05 -05:00
Blake Kaplan 703fd78188 Bug 603533 - We need to hold a strong reference when forwarding to the outer window. r=jst
--HG--
extra : rebase_source : e885ff63003bd52d94bb3d2bc7ea0e1c631884b6
2010-10-12 11:59:28 -07:00
Jim Blandy fa5eb3d917 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
Jim Blandy 71e233afb3 Bug 514570: Adapt XPConnect to new JS_GetFrameThis arguments. r=jorendorff
It used to be:
JSObject *JS_GetFrameThis(JSContext *, JSStackFrame *);

Now it is:
JSBool JS_GetFrameThis(JSContext *, JSStackFrame *, jsval *);

(In strict mode code, |this| values that are primitives don't get wrapped.)
2010-10-12 11:50:03 -07:00
Jim Blandy def7caaed5 Bug 514570: Adapt jsd to new JS_GetFrameThis arguments. r=brendan
It used to be:
JSObject *JS_GetFrameThis(JSContext *, JSStackFrame *);

Now it is:
JSBool JS_GetFrameThis(JSContext *, JSStackFrame *, jsval *);

(In strict mode code, |this| values that are primitives don't get wrapped.)
2010-10-12 11:50:03 -07:00
Jeff Walden c79dd5c763 Bug 575522 - Object.prototype.toString should return "[object Undefined]" and "[object Null]" when called with |this === undefined| or |this === null|, respectively. r=jorendorff,brendan 2010-10-12 11:50:03 -07:00
Jeff Walden 3b62059562 Bug 514570 - 3 - Don't box |this| for strict mode functions. r=jorendorff 2010-10-12 11:50:03 -07:00
Jeff Walden 545f7104c0 Bug 514570 - 2 - Push |undefined| rather than |null| when calling functions without a specified |this| value, per ES5. r=jorendorff 2010-10-12 11:50:03 -07:00
Jeff Walden 8a276492f8 Bug 514570 - 1 - Convert primitive-this-of-type function flags into a single primitive-this flag, to pave way for strict mode unadulterated-this passing. r=jorendorff 2010-10-12 11:50:02 -07:00
Brendan Eich 8140dc23ab JSOPTION_ANONFUNFIX should be set in js shell (5595555, r=cdleary). 2010-10-06 14:58:28 -07:00
Ginn Chen 524b7dd76b Bug 601835 Add JS_STATIC_ASSERT back for Solaris Studio, r=brendan 2010-10-11 18:23:55 +08:00
Brendan Eich 96d9a470af Warning fixes (one left over from 602621, the other from 584789). 2010-10-10 21:11:45 -07:00
Johnny Stenback 0bccc11e08 Bug 580128 - No need to assert about commpartment mismatches in JS_Get/SetPrivate (r=gal). 2010-10-10 15:50:11 -07:00
Johnny Stenback 865897ffbc Bug 580128 - Make nsJSNPRuntime compartment safe (r=gal). 2010-10-10 15:50:08 -07:00
Blake Kaplan 4b1a2175d4 Bug 580128 - Deal with the outer object hook failing a little more gracefully. r=jst 2010-10-10 15:49:51 -07:00
Peter Van der Beken 4c00529cae Bug 580128. Remove cross origin string wrappers from hash when the wrapped string dies. r=mrbkap.
As a note: this bug took peterv and mrbkap 7 hours to track down using replay debugging after spending hours trying to even catch it on a replay debugging box.
2010-10-10 15:49:38 -07:00
Blake Kaplan 54b162890d bug 580128 - Allow chrome://global/ scripts to unwrap SOWs going into C++. r=peterv/jst 2010-10-10 15:49:30 -07:00
Andreas Gal 2b24b54ddc bug 580128 - split expando properties onto a separate object and implement enumeration. r=mrbkap 2010-10-10 15:49:13 -07:00
Blake Kaplan c69d16700c bug 580128 - By default properties created by property assignment are enumerable. r=gal 2010-10-10 15:49:08 -07:00
Blake Kaplan 25fc5d0395 bug 580128 - Create SOWs same and cross compartment. r=jst 2010-10-10 15:48:55 -07:00
Johnny Stenback 6c9d0884d7 Bug 580128. Disable tests that don't play well with brain transplants yet. r=mrbkap@gmail.com 2010-10-10 15:48:42 -07:00
Johnny Stenback 9542cb75f1 Bug 580128. Remove .wrappedJSObject gets that don't work with the new wrappers. r=mrbkap@gmail.com 2010-10-10 15:48:39 -07:00
Johnny Stenback 65f800bb78 bug 580128 - Allow unwrapping windows via JSObject::unwrap. r=jst 2010-10-10 15:48:35 -07:00
Andreas Gal d57858e03c bug 580128 - Implement deep wrapping for .wrappedJSObject. r=mrbkap 2010-10-10 15:48:29 -07:00
Peter Van der Beken e0c094ee12 bug 580128 - Fix test_printpreview.xul. r=mrbkap 2010-10-10 15:48:13 -07:00
Johnny Stenback 7bcad74474 Bug 580128. Disable reftests that don't play well with brain transplants yet. r=mrbkap@gmail.com 2010-10-10 15:48:10 -07:00
Blake Kaplan 2976346a0c bug 580128 - Outerize inner windows. r=jst 2010-10-10 15:47:55 -07:00
Blake Kaplan 15775f1bf8 bug 580128 - Reparent proxies when we pull them out of the map in order to try to keep their parents sembling something current. r=jst 2010-10-10 15:47:48 -07:00
Andreas Gal dc2e83e4c7 bug 580128 - Cross origin wrapper needs no waive xray flag. r=mrbkap 2010-10-10 15:47:22 -07:00
Peter Van der Beken df4cfdf19f bug 580128 - Don't create slim wrappers when crossing compartments. r=mrbkap 2010-10-10 15:47:19 -07:00
Peter Van der Beken 13711188f4 bug 580128 - Don't create multiple wrappers for global objects (like BackstagePass). r=mrbkap 2010-10-10 15:47:16 -07:00
Peter Van der Beken e98a0d0126 bug 580128 - Define Error constructor in the sealed global for CTypes. r=jst/mrbkap/gal 2010-10-10 15:47:12 -07:00
David Anderson 016817669a Fix bug 602574 - Assertion failure: constOffset != 0 in JSScript::NewScript() on 64-bit platforms. r=gal@uci.edu 2010-10-10 15:47:09 -07:00
Blake Kaplan 599bb02e36 Bug 580128. Remove unnecessary .wrappedJSObject gets that don't work with the new wrappers. r=jst@mozilla.com 2010-10-10 15:47:06 -07:00
Blake Kaplan fd3d460e9e bug 580128 - Revert bogus change to which scope we use in nsXPCWrappedJSClass::CallMethod. r=jst Many thanks to Margaret and sdwilsh who helped track this one down. 2010-10-10 15:46:59 -07:00
Peter Van der Beken 155dfa7b38 Bug 580128. Remove XrayUtils::JSSLOT_PROXY_OBJ to fix leaks. r=mrbkap. 2010-10-10 15:46:45 -07:00
Peter Van der Beken c8ee8265da bug 580128 - Fix js_PrintObjectSlotName. r=mrbkap 2010-10-10 15:46:42 -07:00
Peter Van der Beken 0603277ffe bug 580128 - Initialize vp before calling property op in JSProxyHandler::get. r=mrbkap 2010-10-10 15:46:34 -07:00
Peter Van der Beken 77409a67ef Bug 580128 - Fix NativeWrapper(window).document. r=mrbkap 2010-10-10 15:46:26 -07:00
Andreas Gal 594577a504 bug 580128 - Fix compartment bugs in XrayWrapper. r=mrbkap 2010-10-10 15:46:23 -07:00
Johnny Stenback d2eae6376e Bug 580128. Reset gczeal after test completes. r=gal@uci.edu 2010-10-10 15:46:20 -07:00
Johnny Stenback 66f860e05f Bug 580128. Properly switch compartments and wrap values when running xpcshell tests. r=mrbkap@gmail.com 2010-10-10 15:46:16 -07:00
Johnny Stenback 40af29c60d Bug 580128. Disable test that is not ready for the new wrappers yet. r=mrbkap@gmail.com 2010-10-10 15:46:13 -07:00