Changeset 225666 in webkit
- Timestamp:
- Dec 7, 2017 7:00:42 PM (6 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r225665 r225666 1 2017-12-07 Yousuke Kimoto <yousuke.kimoto@sony.com> 2 3 [WinCairo] Fix ResourceError handling in ArgumentCoder for wincairo webkit 4 https://bugs.webkit.org/show_bug.cgi?id=180483 5 6 Reviewed by Alex Christensen. 7 8 * Shared/curl/WebCoreArgumentCodersCurl.cpp: 9 (IPC::ArgumentCoder<ResourceError>::encodePlatformData): 10 (IPC::ArgumentCoder<ResourceError>::decodePlatformData): 11 1 12 2017-12-07 Youenn Fablet <youenn@apple.com> 2 13 -
trunk/Source/WebKit/Shared/curl/WebCoreArgumentCodersCurl.cpp
r224961 r225666 57 57 } 58 58 59 void ArgumentCoder<ResourceError>::encodePlatformData(Encoder& , const ResourceError&)59 void ArgumentCoder<ResourceError>::encodePlatformData(Encoder& encoder, const ResourceError& resourceError) 60 60 { 61 encoder.encodeEnum(resourceError.type()); 62 if (resourceError.isNull()) 63 return; 64 65 encoder << resourceError.domain(); 66 encoder << resourceError.errorCode(); 67 encoder << resourceError.failingURL().string(); 68 encoder << resourceError.localizedDescription(); 69 encoder << resourceError.sslErrors(); 61 70 } 62 71 63 bool ArgumentCoder<ResourceError>::decodePlatformData(Decoder& , ResourceError&)72 bool ArgumentCoder<ResourceError>::decodePlatformData(Decoder& decoder, ResourceError& resourceError) 64 73 { 74 ResourceErrorBase::Type errorType; 75 if (!decoder.decodeEnum(errorType)) 76 return false; 77 if (errorType == ResourceErrorBase::Type::Null) { 78 resourceError = { }; 79 return true; 80 } 81 82 String domain; 83 if (!decoder.decode(domain)) 84 return false; 85 86 int errorCode; 87 if (!decoder.decode(errorCode)) 88 return false; 89 90 String failingURL; 91 if (!decoder.decode(failingURL)) 92 return false; 93 94 String localizedDescription; 95 if (!decoder.decode(localizedDescription)) 96 return false; 97 98 unsigned sslErrors; 99 if (!decoder.decode(sslErrors)) 100 return false; 101 102 resourceError = ResourceError(domain, errorCode, URL(URL(), failingURL), localizedDescription, errorType); 103 resourceError.setSslErrors(sslErrors); 104 65 105 return true; 66 106 }
Note: See TracChangeset
for help on using the changeset viewer.