Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: d069b94b2d7ba4e09f1e2dab850b4c3f52bd6a82
https://github.com/WebKit/WebKit/commit/d069b94b2d7ba4e09f1e2dab850b4c3f52bd6a82
Author: Alex Christensen <[email protected]>
Date: 2023-04-28 (Fri, 28 Apr 2023)
Changed paths:
M Source/WebKit/Shared/Cocoa/ArgumentCodersCocoa.mm
Log Message:
-----------
Enable strict decoding of NSURLProtectionSpace behind runtime flag
https://bugs.webkit.org/show_bug.cgi?id=256107
rdar://108675120
Reviewed by David Kilzer.
Even before rdar://107730786 is resolved, we can strictly decode
NSURLProtectionSpace
by simply transforming the NSMutableDictionary serialized members to
NSDictionary members
like we do with NSURLCredential. Enable strict decoding when
strictSecureDecodingForAllObjCEnabled
returns true.
I also separate the remaining non-strict-decoded ObjC classes so their strict
decoding can be
enabled with straightforward changes, and annotated each one with the blocking
radar.
To make the logic less cluttered, I move the lists of MessageNames to lambdas.
These changes
don't change behavior now.
* Source/WebKit/Shared/Cocoa/ArgumentCodersCocoa.mm:
(IPC::encodeSecureCodingInternal):
(IPC::shouldEnableStrictMode):
Canonical link: https://commits.webkit.org/263520@main
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes