Reviewed by Darin.
authormjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 15 Jun 2004 08:49:17 +0000 (08:49 +0000)
committermjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 15 Jun 2004 08:49:17 +0000 (08:49 +0000)
Fix crash with last checkin.

        * khtml/ecma/kjs_binding.cpp:
        (ScriptInterpreter::domObjectsPerDocument): check the same
property we want to initialize.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6853 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog-2005-08-23
WebCore/khtml/ecma/kjs_binding.cpp

index 10230d3..61ff892 100644 (file)
@@ -2,6 +2,16 @@
 
         Reviewed by Darin.
 
+       Fix crash with last checkin.
+
+        * khtml/ecma/kjs_binding.cpp:
+        (ScriptInterpreter::domObjectsPerDocument): check the same
+       property we want to initialize.
+
+2004-06-15  Maciej Stachowiak  <mjs@apple.com>
+
+        Reviewed by Darin.
+
        <rdar://problem/3685309>: (properties not shared for JS wrappers of same DOM object, accessed from different frames)
 
         * khtml/ecma/kjs_binding.cpp:
index 5219686..9d2409f 100644 (file)
@@ -153,7 +153,7 @@ QPtrDict<DOMObject> & ScriptInterpreter::domObjects()
 
 QPtrDict< QPtrDict<DOMObject> > & ScriptInterpreter::domObjectsPerDocument()
 {
-  if (!staticDomObjects) {
+  if (!staticDomObjectsPerDocument) {
     staticDomObjectsPerDocument = new QPtrDict<QPtrDict<DOMObject> >();
     staticDomObjectsPerDocument->setAutoDelete(true);
   }