Log instead of throwing when responseCompleted is skipped due to a missing responseStarted event
Categories
(Remote Protocol :: WebDriver BiDi, defect, P2)
Tracking
(firefox135 fixed)
Tracking | Status | |
---|---|---|
firefox135 | --- | fixed |
People
(Reporter: jdescottes, Assigned: peshannon104, Mentored)
References
(Blocks 1 open bug)
Details
(Whiteboard: [lang=js][webdriver:m14][webdriver:external][webdriver:relnote])
Attachments
(1 file, 1 obsolete file)
At the moment, we have relatively frequent log pollution due to network events which are missing the responseStarted event. This usually shows up in the logs as
JavaScript error: chrome://remote/content/shared/listeners/NetworkEventRecord.sys.mjs, line 328: TypeError: can't access property "setResponseSizes", this[#response] is null
We should investigate individual cases which lead to missing events, but at the moment we don't even log the URL of the skipped event, so it makes it difficult to investigate.
I suggest to add a guard at https://searchfox.org/mozilla-central/rev/55837bbe3e47f9b4fa91ef83a44b53823626f01d/remote/shared/listeners/NetworkEventRecord.sys.mjs#328
this.#response.setResponseSizes(sizes);
Reporter | ||
Updated•3 months ago
|
Comment 1•3 months ago
|
||
The severity field is not set for this bug.
:whimboo, could you have a look please?
For more information, please visit BugBot documentation.
Updated•3 months ago
|
Assignee | ||
Comment 2•3 months ago
|
||
Hey! Looking for my first contribution, have 5 years JS and backend experience. Seems like an easy first contribution, if it is still up for grabs.
I am looking to build up my opensource contributions!
Reporter | ||
Comment 3•3 months ago
|
||
(In reply to Patrick Shannon from comment #2)
Hey! Looking for my first contribution, have 5 years JS and backend experience. Seems like an easy first contribution, if it is still up for grabs.
I am looking to build up my opensource contributions!
Hi Patrick!
Yes it's still available, just submit a patch and the bug will automatically be assigned to you. Our getting started docs should cover everything you need to do that: https://firefox-source-docs.mozilla.org/setup/index.html , but if you need help feel free to reach out on https://chat.mozilla.org
Assignee | ||
Comment 4•3 months ago
|
||
Updated•3 months ago
|
Assignee | ||
Comment 5•3 months ago
|
||
Updated•3 months ago
|
Updated•3 months ago
|
Updated•3 months ago
|
Updated•1 month ago
|
Description
•