LayoutTests:
authorggaren <ggaren@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 15 Jul 2006 16:31:30 +0000 (16:31 +0000)
committerggaren <ggaren@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 15 Jul 2006 16:31:30 +0000 (16:31 +0000)
commit544ea4cf2be44777a08ab12dea1ff81963de4d80
tree021366bf379725ab4810f16b3cdb088abbc1cd01
parent8775a05182273d9bf87e9afa1c0157ab8c01ae05
LayoutTests:

        Reviewed by Maciej.

        Layout test for crash when setting the dir property on a document with no body.

        * fast/dom/dir-no-body-expected.txt: Added.
        * fast/dom/dir-no-body.html: Added.

WebCore:

        Reviewed by Maciej, tweaked to match Darin's patch.

        - Fixed <rdar://problem/4631837> REGRESSION: Reproducible crash on
        FCKeditor demo (9911)

        * WebCore.xcodeproj/project.pbxproj:
        * bindings/js/kjs_html.cpp:
        (KJS::JSHTMLDocument::putValueProperty): Check for a null body element before
        forwarding the put request to it. I confirmed that no other parts of the
        file use 'body' or 'bodyElement' without checking for null.

        Also, use 'body' rather than 'bodyElement' because dir can bet set on
        any element, not just HTMLBodyElement.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15456 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/dom/dir-no-body-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/dir-no-body.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/bindings/js/kjs_html.cpp