WebFrame calls Frame::begin() too early when loading requests. It currently calls Frame::begin() from WebFrame::loadDataSource, but it should hold off until it gets the receivedResponse callback from the ResourceLoader. Doing so will make it easy to feed mime type information into the Frame code.
Created attachment 10920 [details] patch Note, this patch gets us setup to specify the actual mime type of the response once we have that information available via the PlatformResponse object. For now, this patch just feeds WebCore with "text/html" ... I will gladly comment out that part of the patch (or remove it) if that is desired.
Comment on attachment 10920 [details] patch Looks fine. r=me
Landed in r16822.
This change causes a crash. Frame::begin() creates the document, which is accessed in WebFrame::loadDataSource(). Without the call to Frame::begin() in that function, we get a NULL dereference.