Author: stippi Date: Mon May 3 11:54:14 2010 New Revision: 473 URL: http://mmlr.dyndns.org/changeset/473 Log: Do not display the "failed" message when the error indicates a cancellation, for example caused by a policy change. Fixes the "blah failed" for downloads. Modified: webkit/trunk/WebKit/haiku/WebCoreSupport/FrameLoaderClientHaiku.cpp Modified: webkit/trunk/WebKit/haiku/WebCoreSupport/FrameLoaderClientHaiku.cpp ============================================================================== --- webkit/trunk/WebKit/haiku/WebCoreSupport/FrameLoaderClientHaiku.cpp Mon May 3 11:45:22 2010 (r472) +++ webkit/trunk/WebKit/haiku/WebCoreSupport/FrameLoaderClientHaiku.cpp Mon May 3 11:54:14 2010 (r473) @@ -245,8 +245,10 @@ notImplemented(); } -void FrameLoaderClientHaiku::dispatchDidFailLoading(DocumentLoader* loader, unsigned long, const ResourceError&) +void FrameLoaderClientHaiku::dispatchDidFailLoading(DocumentLoader* loader, unsigned long, const ResourceError& error) { + if (error.isCancellation()) + return; BMessage message(LOAD_FAILED); message.AddString("url", loader->url().string()); dispatchMessage(message);