Commit Graph

232813 Commits

Author SHA1 Message Date
Johnny Stenback
87581aa250 Bug 580128. Resolve class names on the window's own JS object, not on the passed in object. r=peterv@propagandism.org 2010-10-10 15:42:23 -07:00
Blake Kaplan
316a5324f1 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
5631a85e40 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
facf459aa7 bug 580128 - Only expose same-compartment window.wrappedJSObject to chrome callers. r=jst 2010-10-10 15:42:15 -07:00
Blake Kaplan
48b273e97d bug 580128 - Use scopes when we have them to wrap into the right scopes. r=peterv 2010-10-10 15:42:12 -07:00
Peter Van der Beken
af2b530a4d bug 580128 - Disallow cross-compartment adoptNode. r=jst 2010-10-10 15:42:09 -07:00
Johnny Stenback
b854afb970 bug 580128 - Fix getting doubled wrapped objects in XPConnect. r=mrbkap 2010-10-10 15:42:04 -07:00
Andreas Gal
509eb29b87 bug 580128 - Remove test that uses an obsolete wrapper. r=mrbkap 2010-10-10 15:42:01 -07:00
Jason Orendorff
d1d7718ac8 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
f2855434db bug 580128 - Remove old wrappers. r=mrbkap 2010-10-10 15:41:40 -07:00
Johnny Stenback
36c5c9ec0f Bug 580128. Remove usage of old wrapper type which isn't needed any more. r=mrbkap@gmail.com 2010-10-10 15:41:37 -07:00
Blake Kaplan
6c7cd79252 bug 580128 - Fix evalInSandbox returning objects in the wrong compartment. r=jst 2010-10-10 15:41:33 -07:00
Andreas Gal
84f62c2607 bug 580128 - Try to allow "XOWs" to see named frames. 2010-10-10 15:41:30 -07:00
Andreas Gal
1219a88f7e bug 580128 - Remove vestiges of old wrappers from nsDOMClassInfo. r=mrbkap 2010-10-10 15:41:27 -07:00
Andreas Gal
fa5d3f82f5 bug 580128 - Try to allow UniversalXPConnect to have full access through "XOWs". 2010-10-10 15:41:24 -07:00
Andreas Gal
1539341407 bug 580128 - Don't think the outer window isn't "native". r=mrbkap 2010-10-10 15:41:20 -07:00
Andreas Gal
bd7d445d26 Bug 580128. Update mochi tests to the new wrappers. r=mrbkap@gmail.com 2010-10-10 15:41:14 -07:00
Andreas Gal
046cfa050e bug 580128 - Fix compartment mistakes around document.domain stuff. r=mrbkap 2010-10-10 15:39:29 -07:00
Andreas Gal
15df9eaaec bug 580128 - Allow proxies to answer the "hasInstance" question. r=mrbkap 2010-10-10 15:39:26 -07:00
Peter Van der Beken
dc1082fc97 bug 580128 - Allow NewResolve to set properties on wrappers. r=gal 2010-10-10 15:39:23 -07:00
Andreas Gal
f8bd40201e bug 580128 - Allow access when both sites have set document.domain. r=mrbkap 2010-10-10 15:39:19 -07:00
Johnny Stenback
a0fe326988 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
Ben Turner
b7e2067093 Bug 580128. Fix plugin stream test to work with the new wrappers. r=jst@mozilla.org 2010-10-10 15:39:14 -07:00
Ben Turner
09878ba8cc Bug 580128. Add cross compartment JSObject clone hooks. r=jst@mozilla.org 2010-10-10 15:39:11 -07:00
Andreas Gal
6a4e9945b0 Bug 580128. Don't let script access only wrappers be passed to C++ code. r=peterv@propagandism.org 2010-10-10 15:39:08 -07:00
Andreas Gal
7f9d12d8d0 bug 580128 - Fix wrapping of jsval parameters. r=peterv 2010-10-10 15:39:04 -07:00
Peter Van der Beken
33995dacf8 Bug 580128 - Fix XPCVariant::VariantDataToJS to properly rewrap, r=gal. 2010-10-10 15:39:02 -07:00
Blake Kaplan
4e1b8c7a56 bug 580128 - Make the XPCNativeWrapper constructor work to actually construct XrayWrappers. r=jst 2010-10-10 15:38:56 -07:00
Blake Kaplan
9973d0f31d bug 580128 - Deal better with compartments around the xray holder object. r=gal 2010-10-10 15:38:39 -07:00
Blake Kaplan
79395ab7c3 bug 580128 - Try to make test_wrappers-2.xul work a little better.
--HG--
rename : js/src/xpconnect/tests/chrome/file_wrappers-2.html => js/src/xpconnect/tests/mochitest/file_wrappers-2.html
2010-10-10 15:38:24 -07:00
Andreas Gal
b08d9a62c9 Bug 580128. Add more asserts to the interpreter to check that we're on the right compartment. r=mrbkap@gmail.com 2010-10-10 15:38:13 -07:00
Peter Van der Beken
a1eae3cb88 Bug 580128. Call JS_ClearScope on the holder object for XrayWrappers around windows when navigating. r=mrbkap 2010-10-10 15:38:10 -07:00
Blake Kaplan
42c68caa59 bug 580128 - Bad attempt to make .wrappedJSObject on raw windows only apply to chrome. Fixed later r=nobody I hope! 2010-10-10 15:38:04 -07:00
Blake Kaplan
186109950a bug 580128 - Attempt to make the XPCNativeWrapper constructor create XrayWrappers. r=jst 2010-10-10 15:37:44 -07:00
Johnny Stenback
c6b8f8093f Bug 580128. Fix various mochi chrome tests to work with the new wrappers. r=mrbkap@gmail.com 2010-10-10 15:37:28 -07:00
Andreas Gal
21cdd79153 Make functions per compartment, and deep copy instead of clone them if needed (584789, r=mrbkap). 2010-09-29 23:17:29 -07:00
Andreas Gal
efbae541a4 Bug 580128 - Small cleanups in XrayWrapper and first stab at enumeration. r=mrbkap 2010-10-10 15:37:22 -07:00
Blake Kaplan
644aa16e54 bug 580128 - Fix more compartment warnings. Work of multiple people. r=gal/peterv/jst 2010-10-10 15:37:19 -07:00
Blake Kaplan
969bd22678 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
8f2f47a9d0 bug 580128 - Clean up our passing from JS-into-C++ story. r=peterv/mrbkap 2010-10-10 15:36:41 -07:00
Blake Kaplan
a6e9a41e46 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
0e8ed043cb 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
58483cc685 bug 580128 - Implement XrayWrapper::toString. r=jst 2010-10-10 15:36:32 -07:00
Blake Kaplan
f55282e9f1 bug 580128 - Use the shiny new API for finding XrayWrappers. r=jst 2010-10-10 15:36:20 -07:00
Andreas Gal
3ae5caff40 bug 580128 - Give XrayWrappers a flag they can query for. r=mrbkap 2010-10-10 15:36:04 -07:00
Blake Kaplan
c00723aef7 bug 580128 - Find the true caller through the wrappers. r=jst 2010-10-10 15:36:01 -07:00
Blake Kaplan
a943fb0e00 bug 580128 - Allow unwrapping XrayWrappers via XPCNativeWrapper.unwrap. r=jst 2010-10-10 15:35:54 -07:00
Blake Kaplan
71313e7628 bug 580128 - Enter the right compartment when calling toString. r=jst 2010-10-10 15:35:51 -07:00
Blake Kaplan
4d8b527cd4 bug 580128 - Stop returning the old wrappers from their constructors. r=jst 2010-10-10 15:35:48 -07:00
Jason Orendorff
01554ba3dc Bug 580128 - Some more compartment fixes. r=gal 2010-10-10 15:35:46 -07:00