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

22832 Коммитов

Автор SHA1 Сообщение Дата
Blake Kaplan 2fe3830b98 bug 580128 - Add a test about double wrapped native objects in security wrappers. r=jst 2010-10-10 15:36:59 -07:00
Andreas Gal 84dc68b734 bug 580128 - Clean up our passing from JS-into-C++ story. r=peterv/mrbkap 2010-10-10 15:36:41 -07:00
Blake Kaplan 8fa4142573 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
Mounir Lamouri 34e9c2a2a2 Bug 580128. Make tests that now need to be chrome tests be chrome tests. r=jst@mozilla.org
--HG--
rename : js/src/xpconnect/tests/mochitest/test_bug484459.html => js/src/xpconnect/tests/chrome/test_bug484459.xul
rename : js/src/xpconnect/tests/mochitest/test_cows.html => js/src/xpconnect/tests/chrome/test_cows.xul
rename : js/src/xpconnect/tests/mochitest/test_wrappers.html => js/src/xpconnect/tests/chrome/test_wrappers-2.xul
2010-09-30 00:14:30 -07:00
Blake Kaplan d4e6fc1d03 bug 580128 - Implement XrayWrapper::toString. r=jst 2010-10-10 15:36:32 -07:00
Blake Kaplan 0a92ad616e bug 580128 - Use the shiny new API for finding XrayWrappers. r=jst 2010-10-10 15:36:20 -07:00
Andreas Gal 5f55c9cf8f bug 580128 - Give XrayWrappers a flag they can query for. r=mrbkap 2010-10-10 15:36:04 -07:00
Blake Kaplan 495c22a549 bug 580128 - Allow unwrapping XrayWrappers via XPCNativeWrapper.unwrap. r=jst 2010-10-10 15:35:54 -07:00
Blake Kaplan f748b13b17 bug 580128 - Stop returning the old wrappers from their constructors. r=jst 2010-10-10 15:35:48 -07:00
Jason Orendorff 227f3c1dfb Bug 580128 - Some more compartment fixes. r=gal 2010-10-10 15:35:46 -07:00
Peter Van der Beken 42e84b64c0 Bug 580128 - Always wrap Location objects in wrappers, even for same origin. r=mrbkap/gal 2010-09-29 10:00:52 -07:00
Johnny Stenback c455f0ac4d bug 580128 - Make the component loader work for content scripts with UniversalXPConnect. r=mrbkap 2010-09-29 10:00:52 -07:00
Johnny Stenback 751ac646a7 bug 580128 - Deal with null principals (for e.g. dom worker compartments). r=mrbkap 2010-09-29 10:00:52 -07:00
Blake Kaplan 04162da78e bug 580128 - Loosen our policy on what you're to see on cross-origin errors. r=jst 2010-09-29 10:00:52 -07:00
Peter Van der Beken b448cdc455 Fix dom/tests/mochitest/general/file_frameElementWrapping.html to deal with proxies. r=mrbkap 2010-09-28 17:02:43 -07:00
Blake Kaplan 20e65225e2 bug 580128 - Outerize in JS instead of in the rewrap hook so the identity in the wrapper map stays constant. r=gal 2010-09-28 17:02:43 -07:00
Blake Kaplan d4dbc19ff6 bug 580128 - Fix bugs dealing with transplanting when navigating. r=gal 2010-09-28 17:02:43 -07:00
Blake Kaplan f60321d27f bug 580128 - Make js_DumpStackFrame deal with dummy frames. r=jst 2010-09-27 19:52:15 -07:00
Jason Orendorff 0b425e3feb bug 580033 - Make JS_Save/RestoreFrameChain set cx->compartment. r=mrbkap 2010-09-27 18:24:24 -07:00
Andreas Gal f56da5a5ac bug 599503 - Return true compartment info from JSObject::getCompartment(). r=jorendorff/gregor/gal 2010-09-27 13:49:09 -07:00
Blake Kaplan 4af43e19cf Bug 580128 - Use compartments instead of global objects to see if we should use slim wrappers. r=peterv 2010-09-24 23:49:58 -07:00
Blake Kaplan 2665901a71 bug 580128 - Avoid using the parent chain of proxies for anything because it's often wrong. r=jst 2010-09-24 18:00:58 -07:00
Blake Kaplan 63dfd76526 bug 580128 - Pass the right resolve flags to ResolveNativeHandler. r=peterv/jst 2010-09-24 15:30:00 -07:00
Blake Kaplan 11e5c41621 bug 580128 - Pass the XrayWrapper itself to scriptable helpers (and related cleanup) since the holder doesn't have enough smarts to do lookups, etc. r=gal 2010-09-23 15:56:28 -07:00
Blake Kaplan bcc2c1c1da 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
Blake Kaplan 3225778966 bug 580128 - Make xpcconvert trust cx->compartment when called from JS. r=peterv 2010-09-22 16:35:10 -07:00
Blake Kaplan 70935f7b8c bug 580128 - Rewrite XrayWrapper so the wrapped object is in the wrapped object slot and the holder goes in an extra slot. r=gal 2010-09-20 14:48:01 -07:00
Blake Kaplan 805a2aaafb bug 580128 - .wrappedJSObject returns a wrapper that pushes principals. r=gal 2010-09-20 14:47:15 -07:00
Blake Kaplan 528d99c21c bug 580128 - Make compartment warnings real. r=jst 2010-09-17 14:54:41 -07:00
Blake Kaplan 2a3b7cc2e2 bug 580128 - Don't allow fast getting of nsGlobalWindow's wrapper cache. r=peterv 2010-09-17 14:54:41 -07:00
Blake Kaplan f01ca483f0 bug 580128 - Propagate whether we're getting or setting to getPropertyDescriptor. r=gal 2010-09-17 14:54:41 -07:00
Blake Kaplan f746556e55 bug 580128 - Chrome sandboxes cause this assertion to box: use plain cross compartment wrappers when we see them. r=jst 2010-09-17 14:54:41 -07:00
Blake Kaplan f7daf83f96 bug 580128 - Make evalInSandbox work with the new wrappers. r=peterv 2010-09-17 14:54:41 -07:00
Blake Kaplan bb8641798d bug 580128 - Fix a bug in early XrayWrappers that allowed Holders to get in here. r=gal 2010-09-17 14:54:41 -07:00
Blake Kaplan 9effc3a49a bug 580128 - Prepare objects for wrapping. r=peterv 2010-09-17 14:54:41 -07:00
Blake Kaplan edeb6cc86e bug 580128 - Allow calling functions cross origin. r=gal 2010-09-17 14:54:40 -07:00
Blake Kaplan a0d344d742 bug 580128 - Make the Window constructor be defined on new windows. r=peterv 2010-09-17 14:54:40 -07:00
Blake Kaplan 11ca6cd213 Bug 580128 - Preliminary fixes to make .wrappedJSObject on XrayWrappers work. Overridden by later patches. r=gal 2010-09-03 19:24:23 -07:00
Blake Kaplan f2103a50a8 bug 580128 - Temporary fixes to XrayWrapper - note: these were mostly overridden by later patches. r=gal 2010-09-02 16:02:51 -07:00
Blake Kaplan 856533e5bc bug 580128 - Make AccessCheck work (fixing bad calls/missing assumptions). r=gal/peterv 2010-09-17 14:54:40 -07:00
Blake Kaplan 2387aea1a5 bug 580128 - The rewrap hook needs to know what parent to use when creating wrappers. r=gal 2010-09-17 14:54:40 -07:00
Blake Kaplan 00a12e0549 bug 580128 - Create a proxy for the outer window and use it. Note: this turns on new wrappers for all objects. r=peterv 2010-09-17 14:54:40 -07:00
Blake Kaplan ae216df4c3 bug 580128 - Don't assume that we have a wrapped native object here. r=gal 2010-09-17 14:54:40 -07:00
Blake Kaplan ab73110726 bug 580128 - Give API consumers a way to perform "brain transplants" on an object. r=gal 2010-09-17 14:54:40 -07:00
Blake Kaplan d12851a0a4 Bug 580128 - Give objects a way to inform XPConnect that they implement their own JS object in a way that does not involve wrapped natives. r=peterv 2010-09-17 14:54:40 -07:00
Luke Wagner 49d0db2f76 Remove unnecessary padding from JSStackFrame 2010-10-08 22:58:33 -07:00
Robert Sayre a2321e9216 Merge mozilla-central to tracemonkey. 2010-10-08 21:56:00 -04:00
Luke Wagner f8a700471e Bug 578916 - Cache results of Math.sin() (r=waldo) 2010-10-06 12:13:20 -07:00
Luke Wagner cbc93d3be3 Bug 601296, part 3 - speedup FindReplaceLength - inline JS_GetEmptyStringValue (r=cdleary) 2010-10-04 11:45:56 -07:00
Luke Wagner 9c46e2d712 Bug 601296, part 2 - speedup FindReplaceLength - don't copy RegExpStatics (r=cdleary) 2010-10-04 11:45:34 -07:00
Luke Wagner cb2f158edb Bug 601296, part 1 - speedup FindReplaceLength - inline js_ValueToString (r=cdleary) 2010-10-04 11:45:34 -07:00
Luke Wagner dbc5a3717f Bug 581893 - build a js::Invoke Gatling gun (r=waldo) 2010-09-28 15:23:43 -07:00
Gregor Wagner 3e5a0bf73d Bug 600139 - Delayed marking can skip marking live objects r=igor 2010-10-08 16:25:57 -07:00
Brendan Eich 0a0f7901fc Clean up JSOP_DEFFUN and duplicated methodjit StubCall logic, fixing latent arguments override bug (602621, r=igor). 2010-10-07 13:52:58 -07:00
David Mandelin 5670746f87 Bug 602744: fix test case for JSOP_BEGIN with trap, r=dvander 2010-10-07 18:59:18 -07:00
David Mandelin b6afb977ea Bug 602003: add jsd API to query valid script begin and end PCs, r=sayrer,jjb 2010-10-06 11:23:14 -07:00
Jason Orendorff 88a7b70980 Bug 592664, Epilogue: caching eval scripts that we will never use again is necessary to avoid leaking them. rs=Waldo. (Note that my 4 previous commits today were all for bug 592664, not "592644" as the commit messages say.)
--HG--
extra : rebase_source : e7337a31313a4ef3d2d676be41291c832afa4c15
2010-10-07 19:15:45 -05:00
David Mandelin c647a70390 Backed out changeset af020f2b9293 due to x64 build bustage. 2010-10-07 17:03:01 -07:00
David Mandelin 8bea69ceb4 Bug 602003: add jsd API to query valid script begin and end PCs, r=sayrer,jjb 2010-10-06 11:23:14 -07:00
David Mandelin 2c817b41f5 Remove obsolete declarations for functions never defined or called 2010-10-07 16:33:40 -07:00
Nicholas Nethercote fdeacba786 Bug 601009 - TM: allow for guards that always exit. r=dmandelin. 2010-10-07 15:51:57 -07:00
Jeff Walden ab38ba2e5e Bug 600128 - Properly record attempted addition of properties to non-extensible objects. r=jimb
--HG--
extra : rebase_source : af730b39d1f5d6b299e74278ec22d1920ec96e2c
2010-09-28 17:09:40 -07:00
Jeff Walden 85869d6440 Bug 601307 - Add a test for directness of the eval in |with (...) eval(...)| (assuming eval is the global eval function). r=jimb
--HG--
extra : rebase_source : 9a6b233cd99a3f9016c760f1249497d5a39d0c55
2010-10-01 18:40:11 -07:00
Jason Orendorff 1b8c6bda13 Bug 592644 - ES5 indirect eval. Part 2, factor out EvalCacheLookup and other misc. cleanup. r=brendan. 2010-10-07 15:01:45 -05:00
Jason Orendorff f6db5c4329 Back out changeset 7598b7ab2e76.
--HG--
extra : rebase_source : e3571c6433d01e53ba31639d4dc082ced93775f0
2010-10-07 15:35:08 -05:00
Brendan Eich ef45b5bbf7 Back out my last push (599009 botched followup). 2010-10-07 13:17:03 -07:00
Jason Orendorff 92d5ca1dc7 Bug 592644 - ES5 indirect eval. Part 2, factor out EvalCacheLookup and other misc. cleanup. r=brendan.
--HG--
extra : rebase_source : 6c0dfea58dbbe3d9ce7aa6315b4c9c17c253a03a
2010-10-07 15:01:45 -05:00
Jason Orendorff 332c179f26 Bug 592644 - ES5 indirect eval. Part 1, add support and tests. r=brendan.
--HG--
extra : rebase_source : 5d07f3e847b2adfb46f30f343af2e06d494012c3
2010-10-07 15:00:09 -05:00
Brendan Eich c4ead6da5c Nit-picks, mainly localizing and initializing the oldAttrs var, on patchwork for bug 599009 (r=bz). 2010-10-07 11:33:23 -07:00
Dave Herman c3c6f4378f bug 584787, r=pcwalton: Node shouldn't subclass Array 2010-10-07 10:59:45 -07:00
Boris Zbarsky b5b240a94c Another bug 599009 followup. Don't assert things about uninitialized quantities. 2010-10-07 13:58:51 -04:00
Boris Zbarsky 6a95cecd4c Bug 599009 followup. Fix typo in assert. 2010-10-07 11:03:41 -04:00
Boris Zbarsky d9a198ca44 Bug 599009. Don't use setProperty for JSOP_DEFFUN unless there's already a property with that name around, to work around the fact that setProperty will define with class-default getter and setter while we always want to define with stub getter and setter if we can. r=igor 2010-10-07 09:18:53 -04:00
Johnny Stenback 24f40039dc Fixing bustage. 2010-10-06 19:50:46 -07:00
Andreas Gal baeb634139 GetPropertyByName doesn't deep bail (602415, r=dvander). 2010-10-06 19:30:02 -07:00
Robert Sayre ab219edba6 Merge mozilla-central to tracemonkey. 2010-10-06 18:48:56 -07:00
Nicholas Nethercote 955bb23ffc Bug 599251 - nanojit: make Register a non-numeric type (TM-specific part). r=edwsmith. 2010-10-06 17:39:28 -07:00
Chris Jones e9f011fa16 Bug 602393: Fix idiotic mistake causing JITs to be blacklisted on all android devices. r=dvander a=blocking-fennec-b1+ 2010-10-06 19:39:19 -05:00
Nicholas Nethercote f981009a40 Update nanojit-import-rev stamp. 2010-10-06 17:28:51 -07:00
Nicholas Nethercote b43384dbb4 Bustage fix: add new file that was accidentally omitted for bug 599251.
--HG--
extra : convert_revision : 661718b83d398aa4c91f522f7d08ef5cea8e20a9
2010-10-06 15:51:01 -07:00
Nicholas Nethercote bfa41bbb4c Bug 599251 - nanojit: make Register a non-numeric type. r=edwsmith.
--HG--
extra : convert_revision : c7275693cde4c740f1a53ab73b9ec1963f6fe0cc
2010-10-06 15:30:56 -07:00
Nicholas Nethercote b830997304 Fix compiler warning. No bug, r=jwalden via IRC. 2010-10-06 16:16:11 -07:00
Nicholas Nethercote 950fc61240 Bug 593931 - inline js_GetPropertyHelper() and friends more aggressively. r=cdleary. 2010-10-06 16:14:01 -07:00
Chris Leary 6d8801c7da Fix trace_tests.py when showing output. (r=jorendorff) 2010-10-06 15:15:54 -07:00
Chris Leary d03b3dae38 Bug 596775: re-enable YARR-JIT on ARM. (r=vladimir) 2010-10-05 18:20:06 -07:00
Jason Orendorff 2798a2c31b Back out changeset 89006937466d (crashing tests on tinderbox). 2010-10-06 15:51:14 -05:00
Jason Orendorff e5baa6afae Bug 592644 - Indirect eval should be allowed under ES5. r=brendan. 2010-10-06 15:11:30 -05:00
Tom Schuster 949190e84a Bug 601689 - Optimize GetArrayElement for arguments objects (r=lw)
--HG--
extra : rebase_source : 6360a47b95660da477a1f312ab8654a23e4019c1
2010-10-06 12:04:31 -07:00
Bill McCloskey 0359380c32 Fix trap instruction in trace-test, bump XDR version (r=dvander) 2010-10-06 11:58:33 -07:00
David Anderson be6670e3a6 Fix assert in InvokeConstructor (bug 602088, r=luke). 2010-10-06 11:06:18 -07:00
Bill McCloskey d9cff48d7d Bug 601986 - Make blockchain determination faster for with, flat closures (r=igor) 2010-10-06 10:41:36 -07:00
Bill McCloskey 9658d5f787 Bug 601398 - Use new instructions, rather than source notes, to obtain block chain (r=igor) 2010-10-06 10:40:07 -07:00
Luke Wagner b01a84b672 Bug 601733 - respect deleted arguments-object properties in JSOP_GETELEM (r=dvander,dmandelin) 2010-10-06 10:09:40 -07:00
Sean Stangl 1b4f798058 Define isOOLPath if JaegerSpew is enabled. 2010-10-06 00:46:21 -04:00
Boris Zbarsky 790085c627 Bug 601968. Trace call(null). r=gal, a=sayrer 2010-10-06 00:00:28 -04:00
David Mandelin c9a09b4816 Bug 601256: optimize access to globals in global eval using GNAME ops, r=dvander
--HG--
extra : rebase_source : 7c4bd486cc9dff1c65eda717fe34dd0fc36fe171
2010-10-05 11:02:05 -07:00
David Anderson 648f264128 Don't build debug structures if not in debug mode (bug 596804, r=dmandelin). 2010-10-05 17:15:06 -07:00
David Anderson 7dcc38f5b2 Fix crash in AtSafePoint (bug 589398, r=dmandelin). 2010-10-05 16:41:06 -07:00
David Mandelin 14fea6ff85 Bug 595963: notify iterators about property deletion in array_splice, r=gal
--HG--
extra : rebase_source : de2700e0d3d7bce1453a73155c569d28cfbd4482
2010-10-01 11:12:01 -07:00
Nicholas Nethercote acd7fb4d4f Bug 601771 - TM: possibly uninitialized variable in jsclone.cpp. r=jorendorff via IRC. 2010-10-05 14:50:15 -07:00