Author: anevilyak Date: Sun Jul 18 02:41:33 2010 New Revision: 535 URL: http://mmlr.dyndns.org/changeset/535 Log: - Update reported agent a bit for extra compat with some pickier sites. - When we get a provisional load request from WebCore, reset our error state. Otherwise we ignore the subsequent title change since that's dispatched before load complete (which reset the error state, but too late). - Partly fixes #6321, though it doesn't completely work since it also appears to expose an app_server decorator bug. Modified: webkit/trunk/WebKit/haiku/WebCoreSupport/FrameLoaderClientHaiku.cpp Modified: webkit/trunk/WebKit/haiku/WebCoreSupport/FrameLoaderClientHaiku.cpp ============================================================================== --- webkit/trunk/WebKit/haiku/WebCoreSupport/FrameLoaderClientHaiku.cpp Sun Jul 18 01:58:26 2010 (r534) +++ webkit/trunk/WebKit/haiku/WebCoreSupport/FrameLoaderClientHaiku.cpp Sun Jul 18 02:41:33 2010 (r535) @@ -344,7 +344,7 @@ CALLED(); if (m_loadingErrorPage) { TRACE("m_loadingErrorPage\n"); - return; + m_loadingErrorPage = false; } BMessage message(LOAD_NEGOTIATING); @@ -958,7 +958,7 @@ String FrameLoaderClientHaiku::userAgent(const KURL&) { // FIXME: Get the app name from the app. Hardcoded WebPositive for now. Mentioning "Safari" is needed for some sites like gmail.com. - return String("Mozilla/5.0 (compatible; U; WebPositive/528+; Haiku) AppleWebKit/528+ (KHTML, like Gecko) Safari/528+"); + return String("Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.55 Safari/533.4"); } bool FrameLoaderClientHaiku::canCachePage() const