Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 99f7a1b31baefb106961aaa7bae0ad28ae0a29c4
      
https://github.com/WebKit/WebKit/commit/99f7a1b31baefb106961aaa7bae0ad28ae0a29c4
  Author: Adrian Perez de Castro <ape...@igalia.com>
  Date:   2025-03-17 (Mon, 17 Mar 2025)

  Changed paths:
    M Source/WebKit/UIProcess/API/glib/WebKitWebViewSessionState.cpp

  Log Message:
  -----------
  [GTK][WPE] Limit memory used by target strings serialized in 
WebKitWebViewSessionState
https://bugs.webkit.org/show_bug.cgi?id=264879

Reviewed by Carlos Garcia Campos.

Same as done in 273810@main for the Mac port, limit the size of the
target string in the serialized session state to 32 KiB (16K characters)
to avoid having back/forward list items with ridiculously large target
strings.

* Source/WebKit/UIProcess/API/glib/WebKitWebViewSessionState.cpp:
(decodeFrameState): Set the target string only if non-empty.
(encodeFrameState): Encode the target string as empty when it goes over
the allowed limit.

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



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

Reply via email to