Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 30dcf5d1c9402dea5a26158e103f7e4333a7eac2
https://github.com/WebKit/WebKit/commit/30dcf5d1c9402dea5a26158e103f7e4333a7eac2
Author: Ahmad Saleem <[email protected]>
Date: 2026-07-03 (Fri, 03 Jul 2026)
Changed paths:
M Source/WebCore/inspector/agents/InspectorCSSAgent.cpp
Log Message:
-----------
[Web Inspector] Null InspectorStyleSheet dereference in
InspectorCSSAgent::setActiveStyleSheetsForDocument when removing a stylesheet
https://bugs.webkit.org/show_bug.cgi?id=318537
rdar://181307890
Reviewed by Devin Rousso.
When processing removed stylesheets, InspectorCSSAgent dereferenced the
result of m_cssStyleSheetToInspectorStyleSheet.get() without a null check
to read id(), unlike its twin FrameCSSAgent::setActiveStyleSheetsForDocument
which guards the same access. Add the missing null check to match.
* Source/WebCore/inspector/agents/InspectorCSSAgent.cpp:
(WebCore::InspectorCSSAgent::setActiveStyleSheetsForDocument):
Canonical link: https://commits.webkit.org/316490@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications