Skip to content
Browse files
AX: Logging outerHTML in streamAXCoreObject is not truncated

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:

Canonical link:
git-svn-id: 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.