[Webkit-unassigned] [Bug 6621] Blank page in Safari; http://www.capitalone.co.uk/web/MenuUrl?z=null&c=null% (Works in Firefox & IE)

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Sat Jan 21 11:49:38 PST 2006


http://bugzilla.opendarwin.org/show_bug.cgi?id=6621





------- Comment #1 from ap at nypop.com  2006-01-21 11:49 -------
This site uses an HTTP "Refresh" header to redirect from /web/MenuUrl?pageId=1
to /web/CookieDetectServlet?url=/web/MenuUrl?pageId=1. For whatever reason, the
response includes a body (one byte, 0x20). NSURLConnection sniffs a MIME type
text/plain for it, so it is handled by WebTextRepresentation.

Now, HTTP Refresh is handled in Frame::receivedFirstData(), and
WebTextRepresentation, unlike WebHTMLRepresentation, never calls that. Note
that the refresh is handled via Frame::setEncoding()!

#0      0x01904b7c in Frame::receivedFirstData at Frame.cpp:665
#1      0x01905104 in Frame::setEncoding at Frame.cpp:3187
#2      0x01946b44 in -[WebCoreFrameBridge setEncoding:userChosen:] at
WebCoreFrameBridge.mm:624
#3      0x003347f0 in -[WebFrameBridge receivedData:textEncodingName:] at
WebFrameBridge.m:470
#4      0x0036e404 in -[WebHTMLRepresentation receivedData:withDataSource:] at
WebHTMLRepresentation.m:120

I've been told that the architecture of WebTextRepresentation is going to be
reworked to match HTML case. When this is done, it's quite likely that this
problem will disappear without additional effort.


-- 
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list