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