Title: [294499] trunk/Source/WebCore/accessibility/AXLogger.cpp
Revision
294499
Author
[email protected]
Date
2022-05-19 12:22:34 -0700 (Thu, 19 May 2022)

Log Message

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

Modified Paths

Diff

Modified: trunk/Source/WebCore/accessibility/AXLogger.cpp (294498 => 294499)


--- trunk/Source/WebCore/accessibility/AXLogger.cpp	2022-05-19 19:18:42 UTC (rev 294498)
+++ trunk/Source/WebCore/accessibility/AXLogger.cpp	2022-05-19 19:22:34 UTC (rev 294499)
@@ -588,7 +588,7 @@
             objectWithInterestingHTML = parent;
 
         if (objectWithInterestingHTML)
-            stream.dumpProperty("outerHTML", objectWithInterestingHTML->outerHTML());
+            stream.dumpProperty("outerHTML", objectWithInterestingHTML->outerHTML().left(150));
     }
 
     if (options & AXStreamOptions::DisplayContents) {
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to