Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: bc52dccd1b20c7685c044197e8c9b732b3743d67
      
https://github.com/WebKit/WebKit/commit/bc52dccd1b20c7685c044197e8c9b732b3743d67
  Author: Alex Christensen <[email protected]>
  Date:   2025-07-30 (Wed, 30 Jul 2025)

  Changed paths:
    M Source/WebKit/Shared/API/APISerializedScriptValue.cpp
    M Source/WebKit/Shared/API/APISerializedScriptValue.h
    M Source/WebKit/Shared/API/c/WKSharedAPICast.h
    M Source/WebKit/Shared/InspectorExtensionTypes.h
    M Source/WebKit/Shared/glib/JavaScriptEvaluationResultGLib.cpp
    M Source/WebKit/SourcesCocoa.txt
    M Source/WebKit/SourcesGTK.txt
    M Source/WebKit/SourcesWPE.txt
    R Source/WebKit/UIProcess/API/Cocoa/APISerializedScriptValueCocoa.mm
    M Source/WebKit/UIProcess/API/Cocoa/WKScrollGeometry.mm
    M Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm
    M Source/WebKit/UIProcess/API/Cocoa/WKWebViewInternal.h
    M Source/WebKit/UIProcess/API/Cocoa/WKWebViewTesting.mm
    R Source/WebKit/UIProcess/API/glib/APISerializedScriptValueGLib.cpp
    M Source/WebKit/UIProcess/API/glib/WebKitUserContentManager.cpp
    M Source/WebKit/UIProcess/API/glib/WebKitWebView.cpp
    M Source/WebKit/UIProcess/UserContent/WebScriptMessageHandler.h
    M Source/WebKit/UIProcess/WebPageProxy.h
    M Source/WebKit/WebKit.xcodeproj/project.pbxproj

  Log Message:
  -----------
  Remove most of the now-unused API::SerializedScriptValue
https://bugs.webkit.org/show_bug.cgi?id=296718
rdar://157148357

Reviewed by Brent Fulgham.

The only piece of it that is still used is the creation of a JS context
to be used for deserializing to JS values, and that had 3 copies of the same 
code.
This removes the unused code and reduces it to 1 copy of the same code.

As is tradition, when removing a file we have to fix a bunch of issues related
to unified source building.  WKWebView.mm and WKWebViewTesting.mm are now in 
different
compilation units.

* Source/WebKit/Shared/API/APISerializedScriptValue.cpp:
(API::SharedJSContextWK::singleton):
(API::valueToWKObject): Deleted.
(API::SerializedScriptValue::deserializeWK): Deleted.
* Source/WebKit/Shared/API/APISerializedScriptValue.h:
(API::SerializedScriptValue::create): Deleted.
(API::SerializedScriptValue::createFromWireBytes): Deleted.
(API::SerializedScriptValue::deserialize): Deleted.
(API::SerializedScriptValue::dataReference const): Deleted.
(API::SerializedScriptValue::internalRepresentation): Deleted.
(API::SerializedScriptValue::SerializedScriptValue): Deleted.
* Source/WebKit/Shared/API/c/WKSharedAPICast.h:
* Source/WebKit/Shared/InspectorExtensionTypes.h:
* Source/WebKit/Shared/glib/JavaScriptEvaluationResultGLib.cpp:
(WebKit::JavaScriptEvaluationResult::toJSC):
* Source/WebKit/SourcesCocoa.txt:
* Source/WebKit/SourcesGTK.txt:
* Source/WebKit/SourcesWPE.txt:
* Source/WebKit/UIProcess/API/Cocoa/APISerializedScriptValueCocoa.mm: Removed.
* Source/WebKit/UIProcess/API/glib/APISerializedScriptValueGLib.cpp: Removed.
* Source/WebKit/UIProcess/API/glib/WebKitUserContentManager.cpp:
* Source/WebKit/UIProcess/API/glib/WebKitWebView.cpp:
(webkit_web_view_get_javascript_global_context):
* Source/WebKit/UIProcess/UserContent/WebScriptMessageHandler.h:
* Source/WebKit/UIProcess/WebPageProxy.h:
* Source/WebKit/WebKit.xcodeproj/project.pbxproj:

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to