Commit Graph

55941 Commits

Author SHA1 Message Date
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
629ea4ef17 bug 580128 - Fix js_PrintObjectSlotName. r=mrbkap 2010-10-10 15:46:42 -07:00
Peter Van der Beken
579942e2b6 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
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
69b6a88894 Bug 580128. Reset gczeal after test completes. r=gal@uci.edu 2010-10-10 15:46:20 -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
Johnny Stenback
bdc693a467 Bug 580128. Make the editor hold on to the window it's operating on in nsHTMLDocument::EditingStateChanged() so that the window doesn't go away in the middle of this method. r=peterv@propagandism.org 2010-10-10 15:46:10 -07:00
Peter Van der Beken
993f7e96bf bug 580128 - Fix evalInSandbox. r=mrbkap 2010-10-10 15:46:07 -07:00
Andreas Gal
2975066de7 bug 580128 - Make e4x anyname etc be per compartment, not in the default compartment. r=mrbkap 2010-10-10 15:46:05 -07:00
Andreas Gal
06b37f317b Bug 580128. Don't preserve the navigator object in cross compartment navigation. r=jst@mozilla.org 2010-10-10 15:46:01 -07:00
Andreas Gal
4467b41169 bug 580128 - Remove test that no longer works right. r=mrbkap 2010-10-10 15:43:06 -07:00
Blake Kaplan
7e16afee03 bug 580128 - The window is named Window, not WindowProxy. r=gal 2010-10-10 15:43:01 -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
Johnny Stenback
1b772138d9 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
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
b49f4387f9 bug 580128 - Only expose same-compartment window.wrappedJSObject to chrome callers. r=jst 2010-10-10 15:42:15 -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
Peter Van der Beken
63f5a338e8 bug 580128 - Disallow cross-compartment adoptNode. r=jst 2010-10-10 15:42:09 -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
Johnny Stenback
749fd527cc 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
0b6ae7d569 bug 580128 - Fix evalInSandbox returning objects in the wrong compartment. r=jst 2010-10-10 15:41:33 -07:00
Andreas Gal
4ed857a43e bug 580128 - Try to allow "XOWs" to see named frames. 2010-10-10 15:41:30 -07:00
Andreas Gal
a9cd5a763d bug 580128 - Remove vestiges of old wrappers from nsDOMClassInfo. r=mrbkap 2010-10-10 15:41:27 -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
Andreas Gal
1d93b82d53 bug 580128 - Allow proxies to answer the "hasInstance" question. r=mrbkap 2010-10-10 15:39:26 -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
Ben Turner
d21a4b0755 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
db39907b38 Bug 580128. Add cross compartment JSObject clone hooks. r=jst@mozilla.org 2010-10-10 15:39:11 -07:00
Andreas Gal
ff566b632b 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
bce6505f32 bug 580128 - Fix wrapping of jsval parameters. r=peterv 2010-10-10 15:39:04 -07:00
Peter Van der Beken
b7e152241c Bug 580128 - Fix XPCVariant::VariantDataToJS to properly rewrap, r=gal. 2010-10-10 15:39:02 -07:00
Blake Kaplan
bba79011e0 bug 580128 - Make the XPCNativeWrapper constructor work to actually construct XrayWrappers. r=jst 2010-10-10 15:38:56 -07:00
Blake Kaplan
eed8d1aacc bug 580128 - Deal better with compartments around the xray holder object. r=gal 2010-10-10 15:38:39 -07:00
Blake Kaplan
e05232ec8b 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
b656a2c951 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
90e114e435 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
454d48e5fe 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
1b571f0ac4 bug 580128 - Attempt to make the XPCNativeWrapper constructor create XrayWrappers. r=jst 2010-10-10 15:37:44 -07:00