Some rtl pages are causing WebKit to crash when it converts an object to RenderInline. The stack trace (from Chromium builds, but I can reproduce the same crash in Safari with latest WebKit): 0x0143e367 [chrome.dll - inlineflowbox.h:107] WebCore::InlineFlowBox::borderLeft() 0x01442067 [chrome.dll - renderbox.cpp:2037] WebCore::RenderBox::calcAbsoluteHorizontalValues(WebCore::Length,WebCore::RenderBoxModelObject const *,WebCore::TextDirection,int,int,WebCore::Length,WebCore::Length,WebCore::Length,WebCore::Length,int &,int &,int &,int &) 0x01441c6a [chrome.dll - renderbox.cpp:1816] WebCore::RenderBox::calcAbsoluteHorizontal() 0x014408c0 [chrome.dll - renderbox.cpp:1205] WebCore::RenderBox::calcWidth() 0x01471787 [chrome.dll - renderblock.cpp:732] WebCore::RenderBlock::layoutBlock(bool) 0x014716bc [chrome.dll - renderblock.cpp:704] WebCore::RenderBlock::layout() 0x01472d57 [chrome.dll - renderblock.cpp:1521] WebCore::RenderBlock::layoutPositionedObjects(bool) 0x014aa3c8 [chrome.dll - renderflexiblebox.cpp:249] WebCore::RenderFlexibleBox::layoutBlock(bool) 0x014716bc [chrome.dll - renderblock.cpp:704] WebCore::RenderBlock::layout() 0x014eed98 [chrome.dll - bidi.cpp:819] WebCore::RenderBlock::layoutInlineChildren(bool,int &,int &) 0x0147189c [chrome.dll - renderblock.cpp:785] WebCore::RenderBlock::layoutBlock(bool) 0x014716bc [chrome.dll - renderblock.cpp:704] WebCore::RenderBlock::layout() 0x01474a50 [chrome.dll - renderblock.cpp:2354] WebCore::RenderBlock::insertFloatingObject(WebCore::RenderBox *)
Created attachment 27752 [details] a small test case to reproduce the crash.
Created attachment 27753 [details] Patch
Comment on attachment 27753 [details] Patch This patch should be accompanied by a layout test.
Created attachment 27796 [details] New patch (this time with a layout test)
Comment on attachment 27796 [details] New patch (this time with a layout test) r=me
Landed as http://trac.webkit.org/changeset/41259.