mirror of
https://github.com/servo/servo
synced 2026-05-09 00:22:16 +02:00
Fix caching before the console is opened and stop sending messages prematurely. Fix line numbers not showing in console messages because of a missing `rename_all`. Remove `getCachedMessages` in favour of sending a list of messages as a reply to the `watchResources` for `console-message`/`error-message` in the watcher. Remove `startListeners` and `stopListeners`. These are legacy methods of watching properties before the watcher actor. It is preferred to enable properties in `supported_resources` in the watcher than to use these messages. Remove `clearMessagesCache`, only `clearMessagesCacheAsync` seems to be used now. Add a reply to `clearMessagesCacheAsync`. Simplify a bit the structs for console messages and prefer serde's annotations to manual serialization. Merge `handle_console_message` and `handle_page_error`, and improve the usability of `ConsoleResource`. Fix some fields in console messages. We are missing `source_id` for now. This will be easier to add after better support for source actors. We are also missing stack traces. | Before | After | | --- | --- | |  |  | Testing: Manual testing Fixes: #26666 --------- Signed-off-by: eri <eri@igalia.com> Co-authored-by: Martin Robinson <mrobinson@igalia.com>