[webkit-changes] [WebKit/WebKit] bc5000: Skip check for superclasses when decoding _WKRemot...

Alex Christensen noreply at github.com
Fri Mar 31 17:07:06 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: bc50003fa6c8b3bd2a8b3601a479faa7a9112faf
      https://github.com/WebKit/WebKit/commit/bc50003fa6c8b3bd2a8b3601a479faa7a9112faf
  Author: Alex Christensen <achristensen at apple.com>
  Date:   2023-03-31 (Fri, 31 Mar 2023)

  Changed paths:
    M Source/WebKit/Shared/API/Cocoa/WKRemoteObjectCoder.mm
    M Source/WebKit/Shared/API/Cocoa/_WKRemoteObjectRegistry.mm

  Log Message:
  -----------
  Skip check for superclasses when decoding _WKRemoteObjectRegistry classes on macOS
https://bugs.webkit.org/show_bug.cgi?id=254818

Reviewed by David Kilzer.

We added a RELEASE_LOG_FAULT to get logs on iOS, but on macOS we should just go ahead and throw the exception.
Also remove the @try @catch to throw the exception all the way to the CFRunLoop.

* Source/WebKit/Shared/API/Cocoa/WKRemoteObjectCoder.mm:
(checkIfClassIsAllowed):

Canonical link: https://commits.webkit.org/262454@main




More information about the webkit-changes mailing list