Commit Graph

1652 Commits

Author SHA1 Message Date
Robert Sayre
d2b800ff26 merge mozilla-central to tracemonkey 2010-11-19 15:54:33 -08:00
Alon Zakai
127f68f980 Bug 502836 - Fix 'script stack space quota is exhausted' error. r=igor a=blocking-betaN+ 2010-11-18 14:16:36 -08:00
Robert Sayre
0292bdad44 Bug 612642 - JS base64 code needs to be updated for removal of JS_GetStringBytesZ. Wallpaper patch for merging. 2010-11-16 11:38:33 -08:00
Robert Sayre
f8d70b12f4 Merge mozilla-central to tracemonkey. 2010-11-16 07:25:10 -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
Igor Bukanov
4e2a74333a Bug 607695 - followup to fix bz comments 2010-11-15 12:42:45 +01: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
Ben Turner
fca93ac512 Bug 580096 - 'move the cycle collector off the main thread'. r=peterv+jst 2010-11-11 14:52:30 -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
Blake Kaplan
df7a668a02 Bug 571849 - Fix enumerateOwn and the Iterate constructor on Xray wrappers. r=gal 2010-11-10 14:08:44 -08:00
Blake Kaplan
57a2e504c5 Bug 605760 - Deal with null a subject principal here. r=jst 2010-11-10 14:08:11 -08:00
Johnny Stenback
17607078e7 Fixing bug 585787. Compare compartments instead of global objects in quickstubs when deteremining whether we need to wrap the return value or not. r=mrbkap@gmail.com, a=bzbarsky 2010-10-22 09:32:09 -07:00
Ben Turner
d0066f07ca Bug 608170 - 'ChromeWorkers should have atob, btoa'. r=jst, a=blocking+ 2010-11-15 17:39:28 -08:00
Vladimir Vukicevic
32ff3a0c50 b=604196; jsval return types in xpidl are broken (non-quickstubs); r=jorendorff, a=b 2010-11-12 12:01:50 -08:00
Robert Sayre
78fcef6d2d Merge mozilla-central to tracemonkey. 2010-11-09 15:29:44 -05:00
Igor Bukanov
92b67c9caf bug 607695 - Avoid unnecessary JS_GetStringBytes. r=gal 2010-10-28 17:15:53 +02:00
Chris Leary
9ff0cd58c9 Bug 596580: Fix mozJSSubScriptLoader's version finding. (r=brendan) 2010-11-03 12:09:24 -07:00
Robert Sayre
28f659d794 Merge. 2010-11-02 18:53:40 -07:00
Robert Sayre
bb710d32b2 Bug 608763 - JSD breakpoint does not work. r=gal 2010-11-02 18:52:55 -07:00
Chris Leary
4d3fc89539 Bug 597811: Make mozJSComponentLoader use JSVERSION_LATEST. (r=sayrer) 2010-11-01 17:33:22 -07:00
Johnny Stenback
7528c7b226 Remove new JS_ASSERT() that triggers during browser-chrome runs. Will investigate further. r=orange, a=orange 2010-10-30 22:51:35 -07:00
Andreas Gal
80039beea8 Merge from mozilla-central. 2010-10-30 21:57:42 -07:00
Robert Sayre
5ad2152acd Merge mozilla-central to tm. 2010-10-30 17:11:52 -04:00
Robert Sayre
aecb00a979 Follow-up fix for bug 595243. Don't try to place non-main thread scripts in debug mode, and don't attempt to set debug mode from a non-main thread. r=gal 2010-10-30 15:07:46 -04: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
Andreas Gal
142e029c97 Follow-up for bug 608142: disallow sending between main and non-main thread only (r=orange). 2010-10-30 08:39:53 -07:00
Andreas Gal
682ce67f2d Re-land bug 608142. 2010-10-30 06:01:25 -07:00
Jeff Walden
27484886a8 Backed out changeset 71728ff7002c, seems to have turned mochitest-plain-2 orange. 2010-10-29 22:39:19 -07:00
Johnny Stenback
03e709926a Backed out changeset e7436725f170 due to crashes in mochitest and elsewhere. a=backout 2010-10-29 17:33:29 -07:00
Andreas Gal
4f2e656d40 Disallow sending JS functions to a different thread (608142, r=jst). 2010-10-29 15:03:44 -07:00
Peter Van der Beken
18ce843491 Fix for bug 606705 (Browser crash when using many web workers [@ GCGraphBuilder::NoteXPCOMChild ] or beyond). r=jst, a=beta7+ 2010-10-29 14:43:02 -07:00
Peter Van der Beken
42793743d1 Fix for bug 606705 (Browser crash when using many web workers [@ GCGraphBuilder::NoteXPCOMChild ] or beyond). r=jst, a=beta7+ 2010-10-29 14:43:02 -07:00
Blake Kaplan
1802eb481e Bug 606585 - Make the compartment map use principals properly. r=peterv/bz
--HG--
extra : rebase_source : b4585beb4aa5f9f44cb02beb3f0f91212345f1f8
2010-10-26 23:57:31 -07:00
Chris Leary
f501d81983 Fix bad mochitest for bug 601299. (rs=Waldo) 2010-10-27 14:21:09 -07:00
Chris Leary
cee380ffc0 Bug 601299: Find RegExpStatics in cx->globalObject if necessary. (r=mrbkap) 2010-10-27 12:33:55 -07:00
Blake Kaplan
0947251bf8 Bug 606585 - Make the compartment map use principals properly. r=peterv/bz, a=beta7+ 2010-10-26 23:57:31 -07:00
Blake Kaplan
745db0123d Bug 601829 - Protect ourselves against a null sandbox. r=jst
--HG--
extra : rebase_source : 0fc1079f16ac97f2b27c2038f7ee6cfa17652a84
2010-10-26 19:48:41 -07:00
Blake Kaplan
8789cb1eec Bug 604430 - Make the wantXrays flag apply to values obtained off of the sandbox object itself. r=peterv
--HG--
extra : rebase_source : 5c4c04829b8db95cc47954b11152ec328bbd7b98
2010-10-25 16:29:13 -07:00
Blake Kaplan
c7f9cb0697 Bug 606106 - Avoid tripping an assertion under CC. r=gal
--HG--
extra : transplant_source : x%D1%3C%A8%8D%D2%F0%1E%9FL%E8%E9%21%C5%EA%0ET%2C%7B%E3
2010-10-25 12:12:43 -07:00
Andreas Gal
de49671a75 Merge from mozilla-central. 2010-10-22 19:46:37 -07:00
Brian Hackett
5d3fb505d0 Reland rev d20abbebe373, interrupt counter for JSRuntime, bug 589193. 2010-10-22 10:48:06 -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
Peter Van der Beken
c66e34a29f Fix for bug 604957 (Change sandbox constructor to take one optional argument instead of two). r=mrbkap, a=blocking. 2010-10-15 11:02:42 -07:00
Blake Kaplan
2541b77fee Followup fix for bug 605167 2010-10-18 16:45:39 -07:00
Blake Kaplan
60998c4cdd Fix bug 605167. r=peterv
--HG--
extra : rebase_source : 67b5ac9708e2efe22a200ab4cbcaef76b494dfa1
2010-10-18 15:21:50 -07:00
Blake Kaplan
81e28f8cec Bug 604368 - Share some code so that bug fixes fix both parts. r=peterv a=blocking beta7 2010-10-16 15:26:14 -07:00
Peter Van der Beken
9c40aad72a Fix for bug 604362 (Don't rewrap XPCWrappedNatives that don't have classinfo). r=mrbkap. 2010-10-16 01:43:53 -07:00
Blake Kaplan
4e14d8e983 Bug 604476 - Do a full property resolve when enumerating. r=gal
--HG--
extra : rebase_source : be6ee618aebfed864e737d341208e854061671ee
2010-10-15 18:27:42 -07:00
Blake Kaplan
677d1719d6 Bug 604797 - Wrap values in nsJSCID::CreateInstance. r=peterv
--HG--
extra : rebase_source : 013a2f6a7056bb50673b5328d31fd069cb05f5ec
2010-10-15 18:27:29 -07:00
Blake Kaplan
4c0461f1ad Fix bug 593602. r=gal
--HG--
extra : rebase_source : d0f105abd26702cd95c6b530ed6d1b1c76c82d52
2010-10-15 14:15:53 -07:00
Blake Kaplan
e1d2f6f844 Bug 604368 - Protect against the this translator returning a this object from another domain. r=peterv
--HG--
extra : rebase_source : cf6f17e100d0b2fc1cef483e3480757f636d877a
2010-10-14 16:57:56 -07:00
Blake Kaplan
7961434bd1 Bug 604368 - Successfully get principals off of sandboxes too. r=peterv
--HG--
extra : rebase_source : 78252e0d3a702d3fdbe2221e8649bf59896b47d4
2010-10-14 16:57:27 -07:00
Blake Kaplan
fd4258f7a7 Fix more orange. a=orange 2010-10-14 16:00:55 -07:00
Blake Kaplan
cfbcf1b6ef Fix bustage. a=orange
--HG--
extra : transplant_source : %CA%90%83%CA%B8%EF%94%24%D8b%FE%8F%E0-%86%B6%BB%0A%8E%EE
2010-10-14 15:53:23 -07:00
Blake Kaplan
2705deadbc Bug 604363 - Don't create Xray wrappers for chrome objects in sandboxes. r=peterv
--HG--
extra : rebase_source : 417edb2b843c0f3d8c4f5cb28d1872d901b3081d
2010-10-14 14:56:31 -07:00
Andreas Gal
3417abf36c Don't try to waive Xray wrapper for primitives (604361, r=mrbkap). 2010-10-14 13:41:52 -07:00
Blake Kaplan
29e85b9844 Merge mozilla-central into tracemonkey 2010-10-13 17:54:54 -07:00
Brian Hackett
f9cf7a5b7d Flexible length JSObject, bug 584917. r=brendan,igor 2010-10-13 11:49:22 -07:00
Blake Kaplan
fd87098d25 Bug 603845 - Protect ourselves against compartments that have null principals. r=gal 2010-10-13 11:37:25 -07:00
David Mandelin
e45bcfe30a Bug 603558: add -m option to turn on method jit for xpcshell, r=dvander, a=shaver
--HG--
extra : rebase_source : 9374b3ab212fa8cd41d33b3887e678b9888be972
2010-10-12 17:25:37 -07:00
Blake Kaplan
7c9de80f1f Revert unintended changes. 2010-10-12 17:44:34 -07:00
Blake Kaplan
03450c5470 Bug 603816 - Don't assume that target->data is non-null. r=peterv
--HG--
extra : rebase_source : 6a3e949376465cc9eac3d4ffa6b7fc3ba501c502
2010-10-12 16:28:22 -07:00
Peter Van der Beken
ac7fa9fd75 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
Jim Blandy
d195d41b0a 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
Blake Kaplan
05061dd1c1 Bug 580128 - Deal with the outer object hook failing a little more gracefully. r=jst 2010-10-10 15:49:51 -07:00
Blake Kaplan
0228224cd3 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
20ff9fd18f bug 580128 - split expando properties onto a separate object and implement enumeration. r=mrbkap 2010-10-10 15:49:13 -07:00
Blake Kaplan
9eac8b4de5 bug 580128 - Create SOWs same and cross compartment. r=jst 2010-10-10 15:48:55 -07:00
Andreas Gal
9103300871 bug 580128 - Implement deep wrapping for .wrappedJSObject. r=mrbkap 2010-10-10 15:48:29 -07:00
Blake Kaplan
b8df1d75e7 bug 580128 - Outerize inner windows. r=jst 2010-10-10 15:47:55 -07:00
Andreas Gal
5724ba40ea bug 580128 - Cross origin wrapper needs no waive xray flag. r=mrbkap 2010-10-10 15:47:22 -07:00
Peter Van der Beken
cc3214ae02 bug 580128 - Don't create slim wrappers when crossing compartments. r=mrbkap 2010-10-10 15:47:19 -07:00
Peter Van der Beken
9ba94d50b4 bug 580128 - Don't create multiple wrappers for global objects (like BackstagePass). r=mrbkap 2010-10-10 15:47:16 -07:00
Blake Kaplan
e4cff70d45 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
dba11b628d Bug 580128. Remove XrayUtils::JSSLOT_PROXY_OBJ to fix leaks. r=mrbkap. 2010-10-10 15:46:45 -07:00
Peter Van der Beken
a4014cdf86 Bug 580128 - Fix NativeWrapper(window).document. r=mrbkap 2010-10-10 15:46:26 -07:00
Andreas Gal
695053b449 bug 580128 - Fix compartment bugs in XrayWrapper. r=mrbkap 2010-10-10 15:46:23 -07:00
Johnny Stenback
1cb512cddb 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
e08bf405b4 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
Peter Van der Beken
993f7e96bf bug 580128 - Fix evalInSandbox. r=mrbkap 2010-10-10 15:46:07 -07:00
Johnny Stenback
1ca1b04765 bug 580128 - Move test that tests for existence of XrayWrapper's into chrome, and fix lookupMethod bug that was triggered by the test move. r=mrbkap
--HG--
rename : js/src/xpconnect/tests/mochitest/test_bug517163.html => js/src/xpconnect/tests/chrome/test_bug517163.xul
2010-10-10 15:42:45 -07:00
Blake Kaplan
8970b90a14 bug 580128 - Attempt to fix file:// URIs all ending up in the same compartment. r=peterv 2010-10-10 15:42:36 -07:00
Blake Kaplan
fbd8321aa9 bug 580128 - Make document.domain affect how we look up properties in addition to the security check. r=gal 2010-10-10 15:42:21 -07:00
Blake Kaplan
4982e8d388 bug 580128 - Distinguish between XOW XrayWrappers and XPCNW XrayWrappers and use the new knowledge in a few places. r=gal 2010-10-10 15:42:18 -07:00
Blake Kaplan
e5f38fdf0b bug 580128 - Use scopes when we have them to wrap into the right scopes. r=peterv 2010-10-10 15:42:12 -07:00
Johnny Stenback
fd0ffcbc96 bug 580128 - Fix getting doubled wrapped objects in XPConnect. r=mrbkap 2010-10-10 15:42:04 -07:00
Andreas Gal
ab068cae64 bug 580128 - Remove test that uses an obsolete wrapper. r=mrbkap 2010-10-10 15:42:01 -07:00
Jason Orendorff
73fb2b5453 Mainly just fix ExposedPropertiesOnly::check to ignore non-enumerable properties and return true when no property is found. r=mrbkap 2010-10-10 15:41:56 -07:00
Peter Van der Beken
6594bfed65 bug 580128 - Remove old wrappers. r=mrbkap 2010-10-10 15:41:40 -07:00
Blake Kaplan
0b6ae7d569 bug 580128 - Fix evalInSandbox returning objects in the wrong compartment. r=jst 2010-10-10 15:41:33 -07:00
Andreas Gal
3139de18ef bug 580128 - Try to allow UniversalXPConnect to have full access through "XOWs". 2010-10-10 15:41:24 -07:00
Andreas Gal
fe1f79bea1 bug 580128 - Don't think the outer window isn't "native". r=mrbkap 2010-10-10 15:41:20 -07:00
Andreas Gal
1148b3e425 Bug 580128. Update mochi tests to the new wrappers. r=mrbkap@gmail.com 2010-10-10 15:41:14 -07:00
Andreas Gal
4727d8eb7b bug 580128 - Fix compartment mistakes around document.domain stuff. r=mrbkap 2010-10-10 15:39:29 -07:00
Peter Van der Beken
9779e115ec bug 580128 - Allow NewResolve to set properties on wrappers. r=gal 2010-10-10 15:39:23 -07:00
Andreas Gal
133adc68a7 bug 580128 - Allow access when both sites have set document.domain. r=mrbkap 2010-10-10 15:39:19 -07:00
Johnny Stenback
c74184af3e Bug 580128. Use JS_WrapObject() in xpcJSWeakReference::Get() since it's the right API to use here. r=mrbkap@gmail.com 2010-10-10 15:39:17 -07:00