Changeset 61857 in webkit
- Timestamp:
- Jun 25, 2010 6:13:04 AM (14 years ago)
- Location:
- trunk/WebKit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/ChangeLog
r61848 r61857 1 2010-06-25 Lucas De Marchi <lucas.demarchi@profusion.mobi> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 [EFL] Do not load error message for download and cancellation. 6 When a download is made or a request is cancelled an error page should 7 not be shown. 8 https://bugs.webkit.org/show_bug.cgi?id=40956 9 10 * efl/WebCoreSupport/FrameLoaderClientEfl.cpp: 11 (WebCore::FrameLoaderClientEfl::dispatchDidFailLoading): return if it 12 should not fallback. 13 (WebCore::FrameLoaderClientEfl::dispatchDidFailLoad): return if it 14 should not fallback. 15 (WebCore::FrameLoaderClientEfl::interruptForPolicyChangeError): fix 16 typo in related error message. 17 (WebCore::FrameLoaderClientEfl::shouldFallBack): if user cancelled the 18 request or the policy changed (for example, because the request is a 19 download) then it should not fallback. 20 1 21 2010-06-25 Lucas De Marchi <lucas.demarchi@profusion.mobi> 2 22 -
trunk/WebKit/efl/WebCoreSupport/FrameLoaderClientEfl.cpp
r61706 r61857 708 708 } 709 709 710 void FrameLoaderClientEfl::dispatchDidFailLoading(DocumentLoader* loader, unsigned long identifier, const ResourceError&) 711 { 710 void FrameLoaderClientEfl::dispatchDidFailLoading(DocumentLoader* loader, unsigned long identifier, const ResourceError& err) 711 { 712 if (!shouldFallBack(err)) 713 return; 714 712 715 if (m_firstData) { 713 716 FrameLoader* fl = loader->frameLoader(); … … 736 739 void FrameLoaderClientEfl::dispatchDidFailLoad(const ResourceError& err) 737 740 { 741 if (!shouldFallBack(err)) 742 return; 743 738 744 m_loadError = err; 739 745 ewk_frame_load_error(m_frame, … … 783 789 { 784 790 return ResourceError("Error", WebKitErrorFrameLoadInterruptedByPolicyChange, 785 request.url().string(), "Frame load interrup ed by policy change");791 request.url().string(), "Frame load interrupted by policy change"); 786 792 } 787 793 … … 804 810 } 805 811 806 bool FrameLoaderClientEfl::shouldFallBack(const ResourceError&) 807 { 808 notImplemented(); 809 return false; 812 bool FrameLoaderClientEfl::shouldFallBack(const ResourceError& error) 813 { 814 return !(error.isCancellation() || (error.errorCode() == WebKitErrorFrameLoadInterruptedByPolicyChange)); 810 815 } 811 816
Note: See TracChangeset
for help on using the changeset viewer.