Closed Bug 1506707 Opened 6 years ago Closed 6 years ago

Keep track of duplicate console messages in the client

Categories

(Core Graveyard :: Web Replay, defect)

defect
Not set
normal

Tracking

(firefox65 fixed)

RESOLVED FIXED
mozilla65
Tracking Status
firefox65 --- fixed

People

(Reporter: bhackett1024, Assigned: bhackett1024)

References

Details

Attachments

(1 file)

Attached patch patchSplinter Review
Currently, the devtools server keeps track of which messages have been sent to the client already, via isDuplicateReplayingMessage.  This causes problems when using a page without the console open, however.  The server will be active and send the messages to the client, which ignores them.  If the console is then opened, it will ask for all the messages sent up the current point, but the server won't send any of them because they have already been sent before.

I think the simplest solution here is to remove all filtering from the server, and have the client ignore duplicate messages when updating its Redux state, per the attached patch.
Attachment #9024578 - Flags: review?(nchevobbe)
Comment on attachment 9024578 [details] [diff] [review]
patch

Review of attachment 9024578 [details] [diff] [review]:
-----------------------------------------------------------------

That looks like a nice solution, thanks Brian!
Do we already have a test to check that we don't show duplicate messages? If not, would it be hard to add one?
Attachment #9024578 - Flags: review?(nchevobbe) → review+
(In reply to Nicolas Chevobbe from comment #1)
> Comment on attachment 9024578 [details] [diff] [review]
> patch
> 
> Review of attachment 9024578 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> That looks like a nice solution, thanks Brian!
> Do we already have a test to check that we don't show duplicate messages? If
> not, would it be hard to add one?

We don't, but I'll try to write one soon.
Pushed by bhackett@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/45d797322196
Keep track of duplicate console messages in the client, r=nchevobbe.
https://hg.mozilla.org/mozilla-central/rev/45d797322196
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: