We were always returning the first "root" object for all runtime
objects. Changed 0 in loop to i, the index.
Reviewed by David Harrison.
* bindings/runtime_root.cpp:
(KJS::Bindings::rootForImp):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8345
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2005-01-12 Richard Williamson <rjw@apple.com>
+
+ Fixed <rdar://problem/3923356> REGRESSION: Java/JavaScript security checks working incorrectly
+
+ We were always returning the first "root" object for all runtime
+ objects. Changed 0 in loop to i, the index.
+
+ Reviewed by David Harrison.
+
+ * bindings/runtime_root.cpp:
+ (KJS::Bindings::rootForImp):
+
2005-01-11 Richard Williamson <rjw@apple.com>
Fixed <rdar://problem/3887930> Must use new Java plug-in API to get/set fields so exception handling works (fixes many LiveConnect crashes)
using namespace KJS;
using namespace KJS::Bindings;
-
// Java does NOT always call finalize (and thus KJS_JSObject_JSFinalize) when
// it collects an objects. This presents some difficulties. We must ensure
// the a JSObject's corresponding JavaScript object doesn't get collected. We
for(i = 0; i < count; i++) {
CFMutableDictionaryRef referencesDictionary = (CFMutableDictionaryRef)allValues[i];
if (CFDictionaryGetValue(referencesDictionary, imp) != 0) {
- rootObject = (const Bindings::RootObject *)allKeys[0];
+ rootObject = (const Bindings::RootObject *)allKeys[i];
break;
}
}