Changeset 95521 in webkit
- Timestamp:
- Sep 20, 2011 1:58:54 AM (13 years ago)
- Location:
- trunk/Source
- Files:
-
- 2 added
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r95517 r95521 1 2011-09-20 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 [GTK] WebProcess shouldn't use the GTK+ API 4 https://bugs.webkit.org/show_bug.cgi?id=68062 5 6 Reviewed by Martin Robinson. 7 8 Move errors code that is common between webki1 and webkit2 to 9 WebCore so that it can be shared. 10 11 * GNUmakefile.list.am: Add new files to compilation. 12 * platform/gtk/ErrorsGtk.cpp: Added. 13 (WebCore::cancelledError): 14 (WebCore::blockedError): 15 (WebCore::cannotShowURLError): 16 (WebCore::interruptedForPolicyChangeError): 17 (WebCore::cannotShowMIMETypeError): 18 (WebCore::fileDoesNotExistError): 19 (WebCore::pluginWillHandleLoadError): 20 * platform/gtk/ErrorsGtk.h: Added. 21 1 22 2011-09-19 Mark Rowe <mrowe@apple.com> 2 23 -
trunk/Source/WebCore/GNUmakefile.list.am
r95486 r95521 2620 2620 Source/WebCore/platform/graphics/WOFFFileFormat.cpp \ 2621 2621 Source/WebCore/platform/graphics/WOFFFileFormat.h \ 2622 Source/WebCore/platform/gtk/ErrorsGtk.cpp \ 2623 Source/WebCore/platform/gtk/ErrorsGtk.h \ 2622 2624 Source/WebCore/platform/gtk/KURLGtk.cpp \ 2623 2625 Source/WebCore/platform/gtk/LanguageGtk.cpp \ -
trunk/Source/WebKit/gtk/ChangeLog
r95518 r95521 1 2011-09-20 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 [GTK] WebProcess shouldn't use the GTK+ API 4 https://bugs.webkit.org/show_bug.cgi?id=68062 5 6 Reviewed by Martin Robinson. 7 8 Use WebCore API to create errors in frame loader. 9 10 * WebCoreSupport/AssertMatchingEnums.cpp: 11 * WebCoreSupport/FrameLoaderClientGtk.cpp: 12 (WebKit::FrameLoaderClient::cancelledError): 13 (WebKit::FrameLoaderClient::blockedError): 14 (WebKit::FrameLoaderClient::cannotShowURLError): 15 (WebKit::FrameLoaderClient::interruptedForPolicyChangeError): 16 (WebKit::FrameLoaderClient::cannotShowMIMETypeError): 17 (WebKit::FrameLoaderClient::fileDoesNotExistError): 18 (WebKit::FrameLoaderClient::pluginWillHandleLoadError): 19 * webkit/webkiterror.cpp: 20 (webkit_network_error_quark): 21 (webkit_policy_error_quark): 22 (webkit_plugin_error_quark): 23 1 24 2011-09-20 Philippe Normand <pnormand@igalia.com> 2 25 -
trunk/Source/WebKit/gtk/WebCoreSupport/AssertMatchingEnums.cpp
r87978 r95521 24 24 #include "DumpRenderTreeSupportGtk.h" 25 25 #include "EditingBehaviorTypes.h" 26 #include "ErrorsGtk.h" 26 27 #include "FindOptions.h" 27 28 #include "FrameLoaderTypes.h" 28 29 #include "PasteboardHelper.h" 30 #include "webkiterror.h" 29 31 #include "webkitwebnavigationaction.h" 30 32 #include "webkitwebsettings.h" … … 57 59 COMPILE_ASSERT_MATCHING_ENUM(WEBKIT_WEB_VIEW_TARGET_INFO_URI_LIST, PasteboardHelper::TargetTypeURIList); 58 60 COMPILE_ASSERT_MATCHING_ENUM(WEBKIT_WEB_VIEW_TARGET_INFO_NETSCAPE_URL, PasteboardHelper::TargetTypeNetscapeURL); 61 62 COMPILE_ASSERT_MATCHING_ENUM(WEBKIT_NETWORK_ERROR_FAILED, NetworkErrorFailed); 63 COMPILE_ASSERT_MATCHING_ENUM(WEBKIT_NETWORK_ERROR_TRANSPORT, NetworkErrorTransport); 64 COMPILE_ASSERT_MATCHING_ENUM(WEBKIT_NETWORK_ERROR_UNKNOWN_PROTOCOL, NetworkErrorUnknownProtocol); 65 COMPILE_ASSERT_MATCHING_ENUM(WEBKIT_NETWORK_ERROR_CANCELLED, NetworkErrorCancelled); 66 COMPILE_ASSERT_MATCHING_ENUM(WEBKIT_NETWORK_ERROR_FILE_DOES_NOT_EXIST, NetworkErrorFileDoesNotExist); 67 68 COMPILE_ASSERT_MATCHING_ENUM(WEBKIT_POLICY_ERROR_FAILED, PolicyErrorFailed); 69 COMPILE_ASSERT_MATCHING_ENUM(WEBKIT_POLICY_ERROR_CANNOT_SHOW_MIME_TYPE, PolicyErrorCannotShowMimeType); 70 COMPILE_ASSERT_MATCHING_ENUM(WEBKIT_POLICY_ERROR_CANNOT_SHOW_URL, PolicyErrorCannotShowURL); 71 COMPILE_ASSERT_MATCHING_ENUM(WEBKIT_POLICY_ERROR_FRAME_LOAD_INTERRUPTED_BY_POLICY_CHANGE, PolicyErrorFrameLoadInterruptedByPolicyChange); 72 COMPILE_ASSERT_MATCHING_ENUM(WEBKIT_POLICY_ERROR_CANNOT_USE_RESTRICTED_PORT, PolicyErrorCannotUseRestrictedPort); 73 74 COMPILE_ASSERT_MATCHING_ENUM(WEBKIT_PLUGIN_ERROR_FAILED, PluginErrorFailed); 75 COMPILE_ASSERT_MATCHING_ENUM(WEBKIT_PLUGIN_ERROR_CANNOT_FIND_PLUGIN, PluginErrorCannotFindPlugin); 76 COMPILE_ASSERT_MATCHING_ENUM(WEBKIT_PLUGIN_ERROR_CANNOT_LOAD_PLUGIN, PluginErrorCannotLoadPlugin); 77 COMPILE_ASSERT_MATCHING_ENUM(WEBKIT_PLUGIN_ERROR_JAVA_UNAVAILABLE, PluginErrorJavaUnavailable); 78 COMPILE_ASSERT_MATCHING_ENUM(WEBKIT_PLUGIN_ERROR_CONNECTION_CANCELLED, PluginErrorConnectionCancelled); 79 COMPILE_ASSERT_MATCHING_ENUM(WEBKIT_PLUGIN_ERROR_WILL_HANDLE_LOAD, PluginErrorWillHandleLoad); -
trunk/Source/WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp
r95387 r95521 35 35 #include "DocumentLoader.h" 36 36 #include "DocumentLoaderGtk.h" 37 #include "ErrorsGtk.h" 37 38 #include "FormState.h" 38 39 #include "FrameLoader.h" … … 1133 1134 ResourceError FrameLoaderClient::cancelledError(const ResourceRequest& request) 1134 1135 { 1135 return ResourceError(g_quark_to_string(WEBKIT_NETWORK_ERROR), WEBKIT_NETWORK_ERROR_CANCELLED, 1136 request.url().string(), _("Load request cancelled")); 1136 return WebCore::cancelledError(request); 1137 1137 } 1138 1138 1139 1139 ResourceError FrameLoaderClient::blockedError(const ResourceRequest& request) 1140 1140 { 1141 return ResourceError(g_quark_to_string(WEBKIT_POLICY_ERROR), WEBKIT_POLICY_ERROR_CANNOT_USE_RESTRICTED_PORT, 1142 request.url().string(), _("Not allowed to use restricted network port")); 1141 return WebCore::blockedError(request); 1143 1142 } 1144 1143 1145 1144 ResourceError FrameLoaderClient::cannotShowURLError(const ResourceRequest& request) 1146 1145 { 1147 return ResourceError(g_quark_to_string(WEBKIT_POLICY_ERROR), WEBKIT_POLICY_ERROR_CANNOT_SHOW_URL, 1148 request.url().string(), _("URL cannot be shown")); 1146 return WebCore::cannotShowURLError(request); 1149 1147 } 1150 1148 1151 1149 ResourceError FrameLoaderClient::interruptedForPolicyChangeError(const ResourceRequest& request) 1152 1150 { 1153 return ResourceError(g_quark_to_string(WEBKIT_POLICY_ERROR), WEBKIT_POLICY_ERROR_FRAME_LOAD_INTERRUPTED_BY_POLICY_CHANGE, 1154 request.url().string(), _("Frame load was interrupted")); 1151 return WebCore::interruptedForPolicyChangeError(request); 1155 1152 } 1156 1153 1157 1154 ResourceError FrameLoaderClient::cannotShowMIMETypeError(const ResourceResponse& response) 1158 1155 { 1159 return ResourceError(g_quark_to_string(WEBKIT_POLICY_ERROR), WEBKIT_POLICY_ERROR_CANNOT_SHOW_MIME_TYPE, 1160 response.url().string(), _("Content with the specified MIME type cannot be shown")); 1156 return WebCore::cannotShowMIMETypeError(response); 1161 1157 } 1162 1158 1163 1159 ResourceError FrameLoaderClient::fileDoesNotExistError(const ResourceResponse& response) 1164 1160 { 1165 return ResourceError(g_quark_to_string(WEBKIT_NETWORK_ERROR), WEBKIT_NETWORK_ERROR_FILE_DOES_NOT_EXIST, 1166 response.url().string(), _("File does not exist")); 1161 return WebCore::fileDoesNotExistError(response); 1167 1162 } 1168 1163 1169 1164 ResourceError FrameLoaderClient::pluginWillHandleLoadError(const ResourceResponse& response) 1170 1165 { 1171 return ResourceError(g_quark_to_string(WEBKIT_PLUGIN_ERROR), WEBKIT_PLUGIN_ERROR_WILL_HANDLE_LOAD, 1172 response.url().string(), _("Plugin will handle load")); 1166 return WebCore::pluginWillHandleLoadError(response); 1173 1167 } 1174 1168 -
trunk/Source/WebKit/gtk/po/ChangeLog
r95443 r95521 1 2011-09-20 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 [GTK] WebProcess shouldn't use the GTK+ API 4 https://bugs.webkit.org/show_bug.cgi?id=68062 5 6 Reviewed by Martin Robinson. 7 8 * POTFILES: Remove FrameLoaderGtk.cpp and add ErrorsGtk.cpp. 9 1 10 2011-09-19 Gustavo Noronha Silva <gns@gnome.org> 2 11 -
trunk/Source/WebKit/gtk/po/POTFILES
r88834 r95521 2 2 Source/WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp 3 3 Source/WebKit/gtk/WebCoreSupport/ContextMenuClientGtk.cpp 4 Source/WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp5 4 Source/WebKit/gtk/WebCoreSupport/FullscreenVideoController.cpp 6 5 Source/WebKit/gtk/webkit/webkitdownload.cpp … … 12 11 Source/WebKit/gtk/webkit/webkitwebsettings.cpp 13 12 Source/WebKit/gtk/webkit/webkitwebview.cpp 13 Source/WebCore/platform/gtk/ErrorsGtk.cpp 14 14 Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp -
trunk/Source/WebKit/gtk/webkit/webkiterror.cpp
r43302 r95521 19 19 20 20 #include "config.h" 21 #include "webkiterror.h" 21 22 22 #include " webkiterror.h"23 #include "ErrorsGtk.h" 23 24 24 25 GQuark webkit_network_error_quark(void) 25 26 { 26 return g_quark_from_static_string( "webkit-network-error-quark");27 return g_quark_from_static_string(WebCore::errorDomainNetwork); 27 28 } 28 29 29 30 GQuark webkit_policy_error_quark(void) 30 31 { 31 return g_quark_from_static_string( "webkit-policy-error-quark");32 return g_quark_from_static_string(WebCore::errorDomainPolicy); 32 33 } 33 34 34 35 GQuark webkit_plugin_error_quark(void) 35 36 { 36 return g_quark_from_static_string( "webkit-plugin-error-quark");37 return g_quark_from_static_string(WebCore::errorDomainPlugin); 37 38 } -
trunk/Source/WebKit2/ChangeLog
r95513 r95521 1 2011-09-20 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 [GTK] WebProcess shouldn't use the GTK+ API 4 https://bugs.webkit.org/show_bug.cgi?id=68062 5 6 Reviewed by Martin Robinson. 7 8 Use WebCore API to create errors in WebProcess. 9 10 * GNUmakefile.am: Don't use webkit/webkierror.h. 11 * WebProcess/WebCoreSupport/gtk/WebErrorsGtk.cpp: 12 (WebKit::cancelledError): 13 (WebKit::blockedError): 14 (WebKit::cannotShowURLError): 15 (WebKit::interruptedForPolicyChangeError): 16 (WebKit::cannotShowMIMETypeError): 17 (WebKit::fileDoesNotExistError): 18 (WebKit::pluginWillHandleLoadError): 19 1 20 2011-09-19 Mark Rowe <mrowe@apple.com> 2 21 -
trunk/Source/WebKit2/GNUmakefile.am
r95403 r95521 147 147 148 148 libwebkit2gtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_SOURCES = \ 149 Source/WebKit/gtk/webkit/webkiterror.h \150 Source/WebKit/gtk/webkit/webkiterror.cpp \151 149 Source/WebKit2/Platform/CoreIPC/ArgumentCoder.h \ 152 150 Source/WebKit2/Platform/CoreIPC/ArgumentCoders.cpp \ -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/gtk/WebErrorsGtk.cpp
r93960 r95521 29 29 #include "WebErrors.h" 30 30 31 #include <WebCore/ErrorsGtk.h> 31 32 #include <WebCore/ResourceError.h> 32 33 #include <WebCore/ResourceRequest.h> 33 34 #include <WebCore/ResourceResponse.h> 34 #include <glib/gi18n-lib.h>35 #include <webkit/webkiterror.h>36 35 37 36 using namespace WebCore; … … 41 40 ResourceError cancelledError(const ResourceRequest& request) 42 41 { 43 return ResourceError(g_quark_to_string(WEBKIT_NETWORK_ERROR), WEBKIT_NETWORK_ERROR_CANCELLED, 44 request.url().string(), _("Load request cancelled")); 42 return WebCore::cancelledError(request); 45 43 } 46 44 47 45 ResourceError blockedError(const ResourceRequest& request) 48 46 { 49 return ResourceError(g_quark_to_string(WEBKIT_POLICY_ERROR), WEBKIT_POLICY_ERROR_CANNOT_USE_RESTRICTED_PORT, 50 request.url().string(), _("Not allowed to use restricted network port")); 47 return WebCore::blockedError(request); 51 48 } 52 49 53 50 ResourceError cannotShowURLError(const ResourceRequest& request) 54 51 { 55 return ResourceError(g_quark_to_string(WEBKIT_POLICY_ERROR), WEBKIT_POLICY_ERROR_CANNOT_SHOW_URL, 56 request.url().string(), _("URL cannot be shown")); 52 return WebCore::cannotShowURLError(request); 57 53 } 58 54 59 55 ResourceError interruptedForPolicyChangeError(const ResourceRequest& request) 60 56 { 61 return ResourceError(g_quark_to_string(WEBKIT_POLICY_ERROR), WEBKIT_POLICY_ERROR_FRAME_LOAD_INTERRUPTED_BY_POLICY_CHANGE, 62 request.url().string(), _("Frame load was interrupted")); 57 return WebCore::interruptedForPolicyChangeError(request); 63 58 } 64 59 65 60 ResourceError cannotShowMIMETypeError(const ResourceResponse& response) 66 61 { 67 return ResourceError(g_quark_to_string(WEBKIT_POLICY_ERROR), WEBKIT_POLICY_ERROR_CANNOT_SHOW_MIME_TYPE, 68 response.url().string(), _("Content with the specified MIME type cannot be shown")); 62 return WebCore::cannotShowMIMETypeError(response); 69 63 } 70 64 71 65 ResourceError fileDoesNotExistError(const ResourceResponse& response) 72 66 { 73 return ResourceError(g_quark_to_string(WEBKIT_NETWORK_ERROR), WEBKIT_NETWORK_ERROR_FILE_DOES_NOT_EXIST, 74 response.url().string(), _("File does not exist")); 67 return WebCore::fileDoesNotExistError(response); 75 68 } 76 69 77 70 ResourceError pluginWillHandleLoadError(const ResourceResponse& response) 78 71 { 79 return ResourceError(g_quark_to_string(WEBKIT_PLUGIN_ERROR), WEBKIT_PLUGIN_ERROR_WILL_HANDLE_LOAD, 80 response.url().string(), _("Plugin will handle load")); 72 return WebCore::pluginWillHandleLoadError(response); 81 73 } 82 74
Note: See TracChangeset
for help on using the changeset viewer.