Bug 244100 - Web Inspector: printing HTML elements with console.table() causes inspector and tab to hang
Summary: Web Inspector: printing HTML elements with console.table() causes inspector a...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: Safari 15
Hardware: Mac (Intel) macOS 12
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-08-18 12:13 PDT by tbiethman
Modified: 2023-04-06 02:12 PDT (History)
3 users (show)

See Also:


Attachments
Screenshot of error state (109.08 KB, image/png)
2022-08-18 12:13 PDT, tbiethman
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description tbiethman 2022-08-18 12:13:48 PDT
Created attachment 461719 [details]
Screenshot of error state

Printing HTML elements with console.table() will cause the web inspector and associated tab to hang. Sometimes this hang is indefinite, other times it ends with a crash/reload of the tab.

To reproduce:
1. Navigate to any page and open the inspector
2. Enter the following command in the console: `console.table([{ 'Body': document.body }])`
3. Notice the table is not printed in the logs
4. Notice that, while you can navigate within the inspector, more console commands cannot be submitted, the tab is not responsive, etc. In some cases, "Maximum call stack size exceeded." will be presented in an alert.

This could be a duplicate of https://bugs.webkit.org/show_bug.cgi?id=225743.
Comment 1 Radar WebKit Bug Importer 2022-08-25 12:14:15 PDT
<rdar://problem/99149986>