mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibJS+LibWeb: Remove remaining use and reference to SafeFunction
This commit is contained in:
parent
716e86f042
commit
797b0d0f43
Notes:
github-actions[bot]
2024-10-30 19:56:42 +00:00
Author: https://github.com/shannonbooth
Commit: 797b0d0f43
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2062
Reviewed-by: https://github.com/kalenikaliaksandr ✅
26 changed files with 10 additions and 335 deletions
|
@ -197,7 +197,7 @@ void EventTarget::add_an_event_listener(DOMEventListener& listener)
|
|||
|
||||
// 5. If listener’s signal is not null, then add the following abort steps to it:
|
||||
if (listener.signal) {
|
||||
// NOTE: `this` and `listener` are protected by AbortSignal using JS::SafeFunction.
|
||||
// NOTE: `this` and `listener` are protected by AbortSignal using JS::HeapFunction.
|
||||
listener.signal->add_abort_algorithm([this, &listener] {
|
||||
// 1. Remove an event listener with eventTarget and listener.
|
||||
remove_an_event_listener(listener);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue