Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 287641e1e1170d0f8dc4f1e0047f4b5fc0940818
https://github.com/WebKit/WebKit/commit/287641e1e1170d0f8dc4f1e0047f4b5fc0940818
Author: Yijia Huang <[email protected]>
Date: 2026-07-07 (Tue, 07 Jul 2026)
Changed paths:
M Source/WTF/wtf/FilePrintStream.h
M Source/WTF/wtf/JSONValues.cpp
M Source/WTF/wtf/PrintStream.cpp
M Source/WTF/wtf/PrintStream.h
M Source/WTF/wtf/ScopedPrintStream.h
Log Message:
-----------
Fix PrintStream truncation of long strings written to files
https://bugs.webkit.org/show_bug.cgi?id=318735
rdar://181536755
Reviewed by Yusuke Suzuki.
PrintStream truncates strings over 5MB for readability, which is fine
for terminal output but corrupts data meant to be persisted exactly
(e.g. JSON::Value::dump, previously patched around this one call site
in cd07e3f6c0c0 with a FIXME noting the fix should be systemic).
Add PrintStream::truncatesLongStrings(), true by default, overridden
to false in FilePrintStream and forwarded through ScopedPrintStream.
Revert the JSONValues.cpp workaround now that the root cause is fixed.
Canonical link: https://commits.webkit.org/316622@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications