Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 9972b95bf01bb57cb62406e1cbaa769721d560da
https://github.com/WebKit/WebKit/commit/9972b95bf01bb57cb62406e1cbaa769721d560da
Author: Fady Farag <[email protected]>
Date: 2026-08-25 (Tue, 25 Aug 2026)
Changed paths:
M Source/WebCore/html/shadow/SpinButtonElement.cpp
M Source/WebCore/html/shadow/SpinButtonElement.h
Log Message:
-----------
Harden `SpinButtonElement` by making `SpinButtonOwner` ref-countable
https://bugs.webkit.org/show_bug.cgi?id=322456
rdar://185740189
Reviewed by Chris Dumez.
This makes SpinButtonOwner ref-countable since nothing enforces that
the owner stays alive across its virtual functions.
No new tests since there should be no behavioral changes.
*
Source/WebCore/html/shadow/SpinButtonElement.cpp:
(WebCore::SpinButtonElement::defaultEventHandler):
(WebCore::SpinButtonElement::doStepAction):
(WebCore::SpinButtonElement::shouldRespondToMouseEvents const):
* Source/WebCore/html/shadow/SpinButtonElement.h:
Canonical link:
https://flagged.apple.com:443/proxy?t2=DJ3m3S1Dv7&o=aHR0cHM6Ly9jb21taXRzLndlYmtpdC5vcmcvMzE5NzkyQG1haW4=&emid=e4263261-a44e-406f-9a68-a8f004de9797&c=11
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications