Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 0e9472d1a5c407f65030f25e8399e3aa83a96ca0 https://github.com/WebKit/WebKit/commit/0e9472d1a5c407f65030f25e8399e3aa83a96ca0 Author: Keith Miller <keith_mil...@apple.com> Date: 2025-08-20 (Wed, 20 Aug 2025)
Changed paths: A LayoutTests/workers/btoa-oom-expected.txt A LayoutTests/workers/btoa-oom.html M Source/WebCore/page/WindowOrWorkerGlobalScope.cpp Log Message: ----------- Workers should handle btoa OOM gracefully https://bugs.webkit.org/show_bug.cgi?id=297661 rdar://154896283 Reviewed by Yusuke Suzuki. Right now we call the version of base64EncodeToString that RELEASE_ASSERTs it will succeed. This change instead calls base64EncodeToStringReturnNullIfOverflow and appropriately throws an OOM when encoding fails. This matches the behavior of the main web thread. * LayoutTests/workers/btoa-oom-expected.txt: Added. * LayoutTests/workers/btoa-oom.html: Added. * Source/WebCore/page/WindowOrWorkerGlobalScope.cpp: (WebCore::WindowOrWorkerGlobalScope::btoa): Canonical link: https://commits.webkit.org/298965@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