[webkit-changes] cvs commit: WebCore/khtml/ecma kjs_binding.cpp

Adele adele at opensource.apple.com
Thu Aug 4 11:18:35 PDT 2005


adele       05/08/04 11:18:35

  Modified:    .        Tag: Safari-OC-branch ChangeLog
               khtml/ecma Tag: Safari-OC-branch kjs_binding.cpp
  Log:
         Merged fix from TOT to Safari-OC-branch
  
      2005-08-04  Geoffrey Garen  <ggaren at apple.com>
  
          - fixed <rdar://problem/4199495> REGRESSION: Safari Crashes on Window Closing Event
  
          Reviewed by darin.
  
          * khtml/ecma/kjs_binding.cpp:
          (KJS::ScriptInterpreter::updateDOMNodeDocument): inserting a node into a new
          document now removes the node from its old document.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.4104.2.68.2.1 +14 -0     WebCore/ChangeLog
  
  Index: ChangeLog
  ===================================================================
  RCS file: /cvs/root/WebCore/ChangeLog,v
  retrieving revision 1.4104.2.68
  retrieving revision 1.4104.2.68.2.1
  diff -u -r1.4104.2.68 -r1.4104.2.68.2.1
  --- ChangeLog	15 Jul 2005 18:02:13 -0000	1.4104.2.68
  +++ ChangeLog	4 Aug 2005 18:18:27 -0000	1.4104.2.68.2.1
  @@ -1,3 +1,17 @@
  +2005-08-04  Adele Peterson  <adele at apple.com>
  +
  +       Merged fix from TOT to Safari-OC-branch
  +
  +    2005-08-04  Geoffrey Garen  <ggaren at apple.com>
  +
  +        - fixed <rdar://problem/4199495> REGRESSION: Safari Crashes on Window Closing Event
  +
  +        Reviewed by darin.
  +
  +        * khtml/ecma/kjs_binding.cpp:
  +        (KJS::ScriptInterpreter::updateDOMNodeDocument): inserting a node into a new
  +        document now removes the node from its old document.
  +
   === WebCore-415.13 ===
   
   2005-07-15  Adele Peterson  <adele at apple.com>
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.26.8.2.6.1 +3 -1      WebCore/khtml/ecma/kjs_binding.cpp
  
  Index: kjs_binding.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/ecma/kjs_binding.cpp,v
  retrieving revision 1.26.8.2
  retrieving revision 1.26.8.2.6.1
  diff -u -r1.26.8.2 -r1.26.8.2.6.1
  --- kjs_binding.cpp	31 May 2005 23:48:22 -0000	1.26.8.2
  +++ kjs_binding.cpp	4 Aug 2005 18:18:34 -0000	1.26.8.2.6.1
  @@ -242,8 +242,10 @@
   void ScriptInterpreter::updateDOMNodeDocument(DOM::NodeImpl *node, DOM::DocumentImpl *oldDoc, DOM::DocumentImpl *newDoc)
   {
     DOMNode *cachedObject = getDOMNodeForDocument(oldDoc, node);
  -  if (cachedObject)
  +  if (cachedObject) {
       putDOMNodeForDocument(newDoc, node, cachedObject);
  +    forgetDOMNodeForDocument(oldDoc, node);
  +  }
   }
   
   bool ScriptInterpreter::wasRunByUserGesture() const
  
  
  



More information about the webkit-changes mailing list