⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 284698 in webkit


Ignore:
Timestamp:
Oct 22, 2021, 11:22:22 AM (5 years ago)
Author:
Takashi.Komori@sony.com
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:
Location:
trunk/Source/WebKit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r284695 r284698  
     12021-10-22  Takashi Komori  <Takashi.Komori@sony.com>
     2
     3        WKErrorRef.h does't have some error definitions
     4        https://bugs.webkit.org/show_bug.cgi?id=232116
     5
     6        Reviewed by Alex Christensen.
     7
     8        Add error definitions which exist in APIrror.h but do not exist in WKErrorRef.h
     9
     10                kWKErrorCodeCancelled
     11                kWKErrorCodeFileDoesNotExist
     12
     13        No test as this patch does not change code behavior.
     14
     15        * Shared/API/c/WKErrorRef.cpp:
     16        (WKErrorGetErrorCode):
     17        * Shared/API/c/WKErrorRef.h:
     18
    1192021-10-22  Wenson Hsieh  <wenson_hsieh@apple.com>
    220
  • trunk/Source/WebKit/Shared/API/c/WKErrorRef.cpp

    r245979 r284698  
    7777    case API::Error::General::Internal:
    7878        return kWKErrorInternal;
     79    case API::Error::Network::Cancelled:
     80        return kWKErrorCodeCancelled;
     81    case API::Error::Network::FileDoesNotExist:
     82        return kWKErrorCodeFileDoesNotExist;
    7983    }
    8084
  • trunk/Source/WebKit/Shared/API/c/WKErrorRef.h

    r248797 r284698  
    4848    kWKErrorCodeInsecurePlugInVersion =                          205,
    4949    kWKErrorInternal =                                           300,
     50    kWKErrorCodeCancelled =                                      302,
     51    kWKErrorCodeFileDoesNotExist =                               303,
    5052};
    5153
Note: See TracChangeset for help on using the changeset viewer.