WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
300740
[Web Inspector] _consoleMessageViews are not cleared when new session is started.
https://bugs.webkit.org/show_bug.cgi?id=300740
Summary
[Web Inspector] _consoleMessageViews are not cleared when new session is star...
Basuke Suzuki
Reported
2025-10-14 16:10:17 PDT
LogContentView does keep all messageView for each console messages in _consoleMessageViews. It keeps the obsolete views after new session is started. This is memory leak. Steps To Reproduce: 1. Open Web Inspector. Log something using console.log. 2. Reload the page. Console log view should has been cleared. 3. Open Web Inspector for Web Inspector. (
https://a1391192.slack.com/archives/GMD6ADPLM/p1758231029864959?thread_ts=1758230885.563809&cid=GMD6ADPLM
) 4. Type `WI.consoleContentView._logViewController._consoleMessageViews` in the console message. Results: You will see many entries with non attached messageViews. Regression: It should be cleared when new session is created. This bug was introduced at
258675@main
.
Attachments
Add attachment
proposed patch, testcase, etc.
Basuke Suzuki
Comment 1
2025-10-14 16:10:32 PDT
rdar://162638323
Basuke Suzuki
Comment 2
2025-10-15 10:24:03 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/52404
EWS
Comment 3
2025-10-16 09:47:28 PDT
Committed
301638@main
(748645e2c4d3): <
https://commits.webkit.org/301638@main
> Reviewed commits have been landed. Closing PR #52404 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug