[webkit-changes] [WebKit/WebKit] 0c35c3: Cherry-pick 285588 at main (46d8803827ef). https://bu...
Qianlang Chen
noreply at github.com
Wed Oct 23 14:12:33 PDT 2024
Branch: refs/heads/webkitglib/2.46
Home: https://github.com/WebKit/WebKit
Commit: 0c35c3220bda60c8c87c56050a186af58548f75f
https://github.com/WebKit/WebKit/commit/0c35c3220bda60c8c87c56050a186af58548f75f
Author: Qianlang Chen <qianlangchen at apple.com>
Date: 2024-10-24 (Thu, 24 Oct 2024)
Changed paths:
M Source/WebCore/inspector/InspectorStyleSheet.cpp
Log Message:
-----------
Cherry-pick 285588 at main (46d8803827ef). https://bugs.webkit.org/show_bug.cgi?id=281807
Regression(283950 at main): Crash in WebCore::InspectorStyleSheet::setRuleStyleText
rdar://138232398
https://bugs.webkit.org/show_bug.cgi?id=281807
Reviewed by Chris Dumez.
* Source/WebCore/inspector/InspectorStyleSheet.cpp:
(WebCore::computeCanonicalRuleText):
(WebCore::InspectorStyleSheet::setRuleStyleText):
- When writing the helper `computeCanonicalRuleText`, returning a
StringView was incorrect. A String should be returned to properly
pass ownership of the underlying data.
- This change can be tested with
run-webkit-tests -g LayoutTests/inspector/css/setStyleText.html
Canonical link: https://commits.webkit.org/285588@main
Canonical link: https://commits.webkit.org/282416.234@webkitglib/2.46
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list