Skip to content
  • rniwa@webkit.org's avatar
    2011-01-07 Ryosuke Niwa <rniwa@webkit.org> · a89a67a8
    rniwa@webkit.org authored
            Reviewed by Ojan Vafai.
    
            Adopting an iframe to a child frame results in stack overflow
            https://bugs.webkit.org/show_bug.cgi?id=52018
    
            Throws an exception when a document adopts an iframe that is an ancestor
            of the document in the frame hierarchy. New behavior matches that of Firefox.
    
            Test: fast/html/adopt-parent-frame.html
    
            * dom/Document.cpp:
            (WebCore::Document::adoptNode):
    2011-01-07  Ryosuke Niwa  <rniwa@webkit.org>
    
            Reviewed by Ojan Vafai.
    
            Adopting an iframe to a child frame results in stack overflow
            https://bugs.webkit.org/show_bug.cgi?id=52018
    
            Added a test to ensure calling adoptNode with an iframe throws an exception
            if the adoptee is an ancestor of the document adopting the node in the frame hierarchy.
    
            * fast/html/adopt-parent-frame-expected.txt: Added.
            * fast/html/adopt-parent-frame.html: Added.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75293 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    a89a67a8