Skip to content
Permalink
Browse files
AX: Logging outerHTML in streamAXCoreObject is not truncated
https://bugs.webkit.org/show_bug.cgi?id=240523
<rdar://93429407>

Reviewed by Chris Fleizach.

outerHTML can be a very, very big string, and we don't truncate it at all.
This can cause debug builds to perform even worse than they already do, and
is almost always too much noise in the logs.

In this change, we truncate outerHTML to 150 characters.

* Source/WebCore/accessibility/AXLogger.cpp:
(WebCore::streamAXCoreObject):

Canonical link: https://commits.webkit.org/250758@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@294499 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
twilco committed May 19, 2022
1 parent 8cfadef commit b1494de3e5ef6bda876a9d26e5b2f618ba620330
Showing 1 changed file with 1 addition and 1 deletion.
@@ -588,7 +588,7 @@ void streamAXCoreObject(TextStream& stream, const AXCoreObject& object, const Op
objectWithInterestingHTML = parent;

if (objectWithInterestingHTML)
stream.dumpProperty("outerHTML", objectWithInterestingHTML->outerHTML());
stream.dumpProperty("outerHTML", objectWithInterestingHTML->outerHTML().left(150));
}

if (options & AXStreamOptions::DisplayContents) {

0 comments on commit b1494de

Please sign in to comment.