`errorCode` is never going to be "interrupted" in aboutNetError.mjs
Categories
(Firefox :: Security, task, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox132 | --- | fixed |
People
(Reporter: keeler, Assigned: ldebeasi, Mentored)
References
Details
(Keywords: good-first-bug, priv-triaged, Whiteboard: [lang=js])
Attachments
(1 file)
initPage() in toolkit/content/aboutNetError.mjs has a "interrupted" case for errorCode, but that's not a valid value for errorCode. I believe this comes from 0cf57171638c in bug 1561443.
This is very minor, since it's just dead code, but it confused me for a bit, so maybe it would be nice to take out.
Comment 1•1 year ago
|
||
Going through history it seems like the "interrupted" case origins from 00b8a2d2825f in Bug 1252068. @dana did something change in Bug 1561443 that makes the case not appear anymore? I find the comment // This happens with subresources that are above the max tls not very helpful so this bug is either about updating the comment or removing the case.
| Reporter | ||
Comment 2•1 year ago
|
||
My understanding is that before bug 1561443, the implementation searched through the text of a section of the error page itself. At that point, the text "interrupted" could appear and thus was a valid case. As part of the changes in that bug, though, that code was changed to match against the error name itself. The error name will never be "interrupted", so that case will never match now.
Comment 3•1 year ago
|
||
Ah that makes sense and matches to the code when looking at the changeset. Removing the line case "interrupted" could be done as part as a good-first-bug.
Updated•1 year ago
|
| Assignee | ||
Comment 4•1 year ago
|
||
Hey there,
I am interested in submitting a patch for this. Sounds like the work here is just to remove the case "interrupted" line as noted in https://bugzilla.mozilla.org/show_bug.cgi?id=1899853#c3?
Comment 5•1 year ago
|
||
Hi, yes. That should be it. Nothing more required.
| Assignee | ||
Comment 6•1 year ago
|
||
Updated•1 year ago
|
Comment 8•1 year ago
|
||
| bugherder | ||
Description
•