Changeset 115451 in webkit
- Timestamp:
- Apr 27, 2012 11:05:58 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r115450 r115451 1 2012-04-27 Christophe Dumez <christophe.dumez@intel.com> 2 3 [EFL] ResourceError domain needs to be properly set in FrameLoaderClient 4 https://bugs.webkit.org/show_bug.cgi?id=84129 5 6 Reviewed by Nate Chapin. 7 8 Unskip the tests which require EFL's DumpRenderTree to support 9 LayoutTestController's dumpResourceLoadCallbacks() and print out 10 correctly information about resource loading errors. 11 12 * platform/efl/Skipped: 13 1 14 2012-04-27 Dimitri Glazkov <dglazkov@chromium.org> 2 15 -
trunk/LayoutTests/platform/efl/Skipped
r115415 r115451 996 996 http/tests/multipart/policy-ignore-crash.php 997 997 http/tests/security/feed-urls-from-remote.html 998 999 # ResourceError domain needs to be properly set in FrameLoaderClient1000 # https://bugs.webkit.org/show_bug.cgi?id=841291001 http/tests/misc/window-dot-stop.html1002 http/tests/security/XFrameOptions/x-frame-options-deny-meta-tag-in-body.html1003 http/tests/security/XFrameOptions/x-frame-options-deny-meta-tag-parent-same-origin-deny.html1004 http/tests/security/XFrameOptions/x-frame-options-deny-meta-tag.html1005 http/tests/security/XFrameOptions/x-frame-options-deny.html1006 http/tests/security/XFrameOptions/x-frame-options-parent-same-origin-deny.html1007 http/tests/xmlhttprequest/abort-should-cancel-load.html1008 998 1009 999 # Test times out (via GTK+) -
trunk/Source/WebKit/efl/ChangeLog
r115449 r115451 1 2012-04-27 Christophe Dumez <christophe.dumez@intel.com> 2 3 [EFL] ResourceError domain needs to be properly set in FrameLoaderClient 4 https://bugs.webkit.org/show_bug.cgi?id=84129 5 6 Reviewed by Nate Chapin. 7 8 Properly set ResourceError objects' domain instead of using a generic 9 one. This allows WebKit and NSURL errors to be distinguished, which is 10 required to properly print out information in EFL's DumpRenderTree 11 when dumpResourceLoadCallbacks() returns true. 12 13 * WebCoreSupport/FrameLoaderClientEfl.cpp: 14 (WebCore::FrameLoaderClientEfl::cancelledError): 15 (WebCore::FrameLoaderClientEfl::blockedError): 16 (WebCore::FrameLoaderClientEfl::cannotShowURLError): 17 (WebCore::FrameLoaderClientEfl::interruptedForPolicyChangeError): 18 (WebCore::FrameLoaderClientEfl::cannotShowMIMETypeError): 19 (WebCore::FrameLoaderClientEfl::fileDoesNotExistError): 20 (WebCore::FrameLoaderClientEfl::pluginWillHandleLoadError): 21 1 22 2012-04-27 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com> 2 23 -
trunk/Source/WebKit/efl/WebCoreSupport/FrameLoaderClientEfl.cpp
r115415 r115451 840 840 }; 841 841 842 // Domains used for ResourceError 843 const char* const NSURLErrorDomain = "NSURLErrorDomain"; 844 const char* const WebKitErrorDomain = "WebKitErrorDomain"; 845 842 846 ResourceError FrameLoaderClientEfl::cancelledError(const ResourceRequest& request) 843 847 { 844 ResourceError error( "Error", -999, request.url().string(),848 ResourceError error(NSURLErrorDomain, -999, request.url().string(), 845 849 "Request cancelled"); 846 850 error.setIsCancellation(true); … … 850 854 ResourceError FrameLoaderClientEfl::blockedError(const ResourceRequest& request) 851 855 { 852 return ResourceError( "Error", WebKitErrorCannotUseRestrictedPort, request.url().string(),856 return ResourceError(WebKitErrorDomain, WebKitErrorCannotUseRestrictedPort, request.url().string(), 853 857 "Request blocked"); 854 858 } … … 856 860 ResourceError FrameLoaderClientEfl::cannotShowURLError(const ResourceRequest& request) 857 861 { 858 return ResourceError( "Error", WebKitErrorCannotShowURL, request.url().string(),862 return ResourceError(WebKitErrorDomain, WebKitErrorCannotShowURL, request.url().string(), 859 863 "Cannot show URL"); 860 864 } … … 862 866 ResourceError FrameLoaderClientEfl::interruptedForPolicyChangeError(const ResourceRequest& request) 863 867 { 864 return ResourceError( "Error", WebKitErrorFrameLoadInterruptedByPolicyChange,868 return ResourceError(WebKitErrorDomain, WebKitErrorFrameLoadInterruptedByPolicyChange, 865 869 request.url().string(), "Frame load interrupted by policy change"); 866 870 } … … 868 872 ResourceError FrameLoaderClientEfl::cannotShowMIMETypeError(const ResourceResponse& response) 869 873 { 870 return ResourceError( "Error", WebKitErrorCannotShowMIMEType, response.url().string(),874 return ResourceError(NSURLErrorDomain, WebKitErrorCannotShowMIMEType, response.url().string(), 871 875 "Cannot show mimetype"); 872 876 } … … 874 878 ResourceError FrameLoaderClientEfl::fileDoesNotExistError(const ResourceResponse& response) 875 879 { 876 return ResourceError( "Error", -998 /* ### */, response.url().string(),880 return ResourceError(NSURLErrorDomain, -998 /* ### */, response.url().string(), 877 881 "File does not exist"); 878 882 } … … 880 884 ResourceError FrameLoaderClientEfl::pluginWillHandleLoadError(const ResourceResponse& response) 881 885 { 882 return ResourceError( "Error", WebKitErrorPluginWillHandleLoad, response.url().string(),886 return ResourceError(WebKitErrorDomain, WebKitErrorPluginWillHandleLoad, response.url().string(), 883 887 "Plugin will handle load"); 884 888 }
Note: See TracChangeset
for help on using the changeset viewer.