Closed Bug 1899853 Opened 1 year ago Closed 1 year ago

`errorCode` is never going to be "interrupted" in aboutNetError.mjs

Categories

(Firefox :: Security, task, P3)

task

Tracking

()

RESOLVED FIXED
132 Branch
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.

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.

Severity: -- → N/A
Flags: needinfo?(dkeeler)
Keywords: priv-triaged
Priority: -- → P3
See Also: → 1252068

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.

Flags: needinfo?(dkeeler)

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.

Keywords: good-first-bug
Mentor: manuel
Whiteboard: [lang=js]

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?

Hi, yes. That should be it. Nothing more required.

Assignee: nobody → ldebeasi
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 132 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: