LibWeb: Add a simplified Notification constructor

This allows the Notification object to be created in javascript without
any additional functionalities.

It passes two wpt tests which require a call to the notification
constructor with no arguments.

https://wpt.live/notifications/constructor-basic.https.html

https://wpt.live/notifications/constructor-invalid.https.html
This commit is contained in:
Niccolo Antonelli Dziri 2025-09-17 09:14:38 +02:00 committed by Sam Atkins
commit a72b0c29bb
Notes: github-actions[bot] 2025-09-24 10:54:18 +00:00
12 changed files with 263 additions and 0 deletions

View file

@ -324,6 +324,7 @@ libweb_js_bindings(MediaSourceExtensions/SourceBuffer)
libweb_js_bindings(MediaSourceExtensions/SourceBufferList)
libweb_js_bindings(NavigationTiming/PerformanceNavigation)
libweb_js_bindings(NavigationTiming/PerformanceTiming)
libweb_js_bindings(NotificationsAPI/Notification)
libweb_js_bindings(PerformanceTimeline/PerformanceEntry)
libweb_js_bindings(PerformanceTimeline/PerformanceObserver)
libweb_js_bindings(PerformanceTimeline/PerformanceObserverEntryList)