Bug 257118

Summary: CONSOLE JS ERROR ResizeObserver loop completed with undelivered notifications.
Product: WebKit Reporter: Milan Crha <mcrha>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: bugs-noreply, heycam, mcatanzaro, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   

Milan Crha
Reported 2023-05-22 02:51:11 PDT
Is there a way to disable "CONSOLE JS ERROR ResizeObserver loop completed with undelivered notifications.", please? I understood from the ResizeObserver documentation that it's expected to not have delivered all the notifications, especially when changing size of the elements inside the callback, thus the error itself is kinda meaningless and only fills the console with no gain. This is with webkit2gtk4.1-2.40.1
Attachments
Radar WebKit Bug Importer
Comment 1 2023-05-29 02:52:16 PDT
Milan Crha
Comment 2 2023-06-22 22:20:32 PDT
For the record, the warning can be useful for developers, but not useful at all for the users. In my case, I made some changes to avoid it, thus I get and process all the notifications in the code now.
Michael Catanzaro
Comment 3 2023-06-23 06:06:19 PDT
Well it's not expected that users would ever notice console JS errors. You have to open the web inspector to see these, or deliberately hook into WebKitConsoleMessage to do something else with them. All console messages are intended for developers.
Milan Crha
Comment 4 2023-06-25 23:40:40 PDT
You are right. Evolution enables webkit_settings_set_enable_write_console_messages_to_stdout() only when WebKit developer option is enabled in the settings. Err, re-reading the ResizeObserver documentation [1] I see I'm wrong, the WebKitGTK does precisely what the documentation says. I'm sorry for the noise. [1] https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver#observation_errors
Note You need to log in before you can comment on or make changes to this bug.