RESOLVED FIXED300728
Wrong console message's repeat count is updated when messages are mixed from page and Web Workers.
https://bugs.webkit.org/show_bug.cgi?id=300728
Summary Wrong console message's repeat count is updated when messages are mixed from ...
Basuke Suzuki
Reported 2025-10-14 14:39:57 PDT
Console messages are compared in each target in Web Content process. If the message is same with previous message, it sends `messageRepeatCountUpdated` message to the frontend. In frontend, it updates simply previously displayed messageView's repeat count. If a Worker sends a message, the things get messy. Because comparison happens in each target, they don't know each other. Only checks if the message is same with the one from the target. But that message can be not the one in the frontend. 1. main frame send a message A. 2. Worker send a message B. 3. Now console UI have line A and B. 4. In main frame, send identical message A. 5. Before sending the message, ConsoleAgent compares the one with previously sent message at step 1. 6. Because they are identical, it send `messageRepeatCountUpdated` with count 2. 7. Frontend get `messageRepeatCountUpdated` and it tries to update previous message view, but that is view for B. 8. B has updated with [2] count label.
Attachments
Basuke Suzuki
Comment 1 2025-10-14 14:41:10 PDT
Basuke Suzuki
Comment 2 2025-10-15 10:40:21 PDT
EWS
Comment 3 2025-10-21 17:41:24 PDT
Committed 301917@main (1a9813d49b1b): <https://commits.webkit.org/301917@main> Reviewed commits have been landed. Closing PR #52406 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.