[webkit-changes] [WebKit/WebKit] 5e92b7: Don't call getDDActionContextClass if we don't hav...

Alex Christensen noreply at github.com
Thu Dec 8 11:30:13 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 5e92b798c222801e991cf39aa378593bbc7f325e
      https://github.com/WebKit/WebKit/commit/5e92b798c222801e991cf39aa378593bbc7f325e
  Author: Alex Christensen <achristensen at apple.com>
  Date:   2022-12-08 (Thu, 08 Dec 2022)

  Changed paths:
    M Source/WebKit/Scripts/generate-serializers.py
    M Source/WebKit/Scripts/webkit/tests/GeneratedSerializers.cpp
    M Source/WebKit/Scripts/webkit/tests/GeneratedSerializers.h
    M Source/WebKit/Scripts/webkit/tests/SerializedTypeInfo.cpp
    M Source/WebKit/Scripts/webkit/tests/TestSerializedType.serialization.in
    M Source/WebKit/Shared/mac/WebHitTestResultPlatformData.serialization.in

  Log Message:
  -----------
  Don't call getDDActionContextClass if we don't have a DDActionContext to decode
https://bugs.webkit.org/show_bug.cgi?id=248931
rdar://103099864

Reviewed by Aditya Keerthi.

This fixes a regression from 257087 at main, before which we would only call getDDActionContextClass
if hasActionContext was true.  This restores equivalent behavior by supporting the Nullable attribute
when encoding soft linked ObjC classes.

* Source/WebKit/Scripts/generate-serializers.py:
(decode_type):
* Source/WebKit/Scripts/webkit/tests/GeneratedSerializers.cpp:
(IPC::ArgumentCoder<NullableSoftLinkedMember>::encode):
(IPC::ArgumentCoder<NullableSoftLinkedMember>::decode):
* Source/WebKit/Scripts/webkit/tests/GeneratedSerializers.h:
* Source/WebKit/Scripts/webkit/tests/SerializedTypeInfo.cpp:
(WebKit::allSerializedTypes):
* Source/WebKit/Scripts/webkit/tests/TestSerializedType.serialization.in:
* Source/WebKit/Shared/mac/WebHitTestResultPlatformData.serialization.in:

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




More information about the webkit-changes mailing list