Title: [284698] trunk/Source/WebKit
Revision
284698
Author
[email protected]
Date
2021-10-22 11:22:22 -0700 (Fri, 22 Oct 2021)

Log Message

WKErrorRef.h does't have some error definitions
https://bugs.webkit.org/show_bug.cgi?id=232116

Reviewed by Alex Christensen.

Add error definitions which exist in APIrror.h but do not exist in WKErrorRef.h

        kWKErrorCodeCancelled
        kWKErrorCodeFileDoesNotExist

No test as this patch does not change code behavior.

* Shared/API/c/WKErrorRef.cpp:
(WKErrorGetErrorCode):
* Shared/API/c/WKErrorRef.h:

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (284697 => 284698)


--- trunk/Source/WebKit/ChangeLog	2021-10-22 18:11:31 UTC (rev 284697)
+++ trunk/Source/WebKit/ChangeLog	2021-10-22 18:22:22 UTC (rev 284698)
@@ -1,3 +1,21 @@
+2021-10-22  Takashi Komori  <[email protected]>
+
+        WKErrorRef.h does't have some error definitions
+        https://bugs.webkit.org/show_bug.cgi?id=232116
+
+        Reviewed by Alex Christensen.
+
+        Add error definitions which exist in APIrror.h but do not exist in WKErrorRef.h
+
+                kWKErrorCodeCancelled
+                kWKErrorCodeFileDoesNotExist
+
+        No test as this patch does not change code behavior.
+
+        * Shared/API/c/WKErrorRef.cpp:
+        (WKErrorGetErrorCode):
+        * Shared/API/c/WKErrorRef.h:
+
 2021-10-22  Wenson Hsieh  <[email protected]>
 
         RemoteRenderingBackend::CreateImageBuffer should be an async IPC stream message

Modified: trunk/Source/WebKit/Shared/API/c/WKErrorRef.cpp (284697 => 284698)


--- trunk/Source/WebKit/Shared/API/c/WKErrorRef.cpp	2021-10-22 18:11:31 UTC (rev 284697)
+++ trunk/Source/WebKit/Shared/API/c/WKErrorRef.cpp	2021-10-22 18:22:22 UTC (rev 284698)
@@ -76,6 +76,10 @@
         return kWKErrorCodeInsecurePlugInVersion;
     case API::Error::General::Internal:
         return kWKErrorInternal;
+    case API::Error::Network::Cancelled:
+        return kWKErrorCodeCancelled;
+    case API::Error::Network::FileDoesNotExist:
+        return kWKErrorCodeFileDoesNotExist;
     }
 
     return errorCode;

Modified: trunk/Source/WebKit/Shared/API/c/WKErrorRef.h (284697 => 284698)


--- trunk/Source/WebKit/Shared/API/c/WKErrorRef.h	2021-10-22 18:11:31 UTC (rev 284697)
+++ trunk/Source/WebKit/Shared/API/c/WKErrorRef.h	2021-10-22 18:22:22 UTC (rev 284698)
@@ -47,6 +47,8 @@
     kWKErrorCodePlugInWillHandleLoad =                           204,
     kWKErrorCodeInsecurePlugInVersion =                          205,
     kWKErrorInternal =                                           300,
+    kWKErrorCodeCancelled =                                      302,
+    kWKErrorCodeFileDoesNotExist =                               303,
 };
 
 WK_EXPORT WKTypeID WKErrorGetTypeID(void);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to