Closed Bug 1924589 Opened 3 months ago Closed 2 months ago

Remove getNSSErrorClass function and tidy up NSS related code in cZ

Categories

(SeaMonkey :: Chat, task)

Tracking

(seamonkey2.53? affected)

RESOLVED FIXED
Tracking Status
seamonkey2.53 ? affected

People

(Reporter: iannbugzilla, Assigned: iannbugzilla)

Details

(Whiteboard: SM2.53.20)

Attachments

(1 file, 1 obsolete file)

At the moment there are two callers for getNSSErrorClass but the second caller needs to make further use of the nss_errors_service so let's remove the helper function and just use the nss_errors_service directly within each caller's code.

Attached patch 1924589-irc-tidy-nss-25320.patch (obsolete) — Splinter Review

[Approval Request Comment]
Regression caused by (bug #): n/a
User impact if declined: none
Testing completed (on m-c, etc.): 2.53.20pre
Risk to taking this patch (and alternatives if risky): low
String changes made by this patch: none

Attachment #9430868 - Flags: review?(frgrahl)
Attachment #9430868 - Flags: approval-comm-release?

Check value being passed to getErrorClass is in a valid range
The other option, maybe safer one, is to use try/catch as previously.

Attachment #9430868 - Attachment is obsolete: true
Attachment #9430868 - Flags: review?(frgrahl)
Attachment #9430868 - Flags: approval-comm-release?
Attachment #9431429 - Flags: review?(frgrahl)
Attachment #9431429 - Flags: approval-comm-release?
Whiteboard: SM2.53.20

Comment on attachment 9431429 [details] [diff] [review]
1924589-irc-tidy-nss-v1_1-25320.patch

Mozilla always seems to do the try/catch so I wonder if this shouldn't be restored instead of checking the range.
Anyweay maybe something for a followup r/a=me

Attachment #9431429 - Flags: review?(frgrahl)
Attachment #9431429 - Flags: review+
Attachment #9431429 - Flags: approval-comm-release?
Attachment #9431429 - Flags: approval-comm-release+

Pushed by frgrahl@gmx.net:
https://hg.mozilla.org/comm-central/rev/cb3e7f04ebec
Remove getNSSErrorClass function and tidy up NSS related code in cZ. r=frg

Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: