Closed Bug 1202362 Opened 9 years ago Closed 7 years ago

Remove nsISaveAsCharset & nsSaveAsCharset from m-c

Categories

(Core :: Internationalization, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla57
Performance Impact none
Tracking Status
firefox57 --- fixed

People

(Reporter: hsivonen, Assigned: emk)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

As seen in https://mxr.mozilla.org/comm-central/search?string=nsISaveAsCharset , m-c has two callers of nsISaveAsCharset and c-c has one. The nsPrimitiveHelpers caller shouldn't exist anymore. The nsFormSubmission caller needs to exist, but nsISaveAsCharset is needlessly complicated and the needed functionality should be implemented as cleaner code without all the unneeded features. (Additionally, nsStandardURL should call the same code as nsFormSubmission, but currently does not.)
The most notable user of nsISaveAsCharset is Enigmail for https://www.mozdev.org/bugs/show_bug.cgi?id=14392 . It's unclear if that code is still needed in Enigmail. In any case, Enigmail catches the exception if nsISaveAsCharset instantiation fails, so things might be OK. The only other addon with a notable userbase seems to be https://addons.mozilla.org/en-US/firefox/addon/custom-buttons/ , which seems to use nsISaveAsCharset for plain conversion to UTF-8...
No longer depends on: post-57-api-changes
Things may have changed since and the only reference in c-c seems unused now.
Attachment #8848780 - Flags: review?(jorgk)
Comment on attachment 8848780 [details] [diff] [review] patch for c-c [landed in comment #4] They forgot this in bug 1202401.
Attachment #8848780 - Flags: review?(jorgk) → review+
Attachment #8848780 - Attachment description: patch for c-c → patch for c-c [landed in comment #4]
Whiteboard: [qf]
Whiteboard: [qf] → [qf-]
Now no one uses nsISaveAsCharset & nsSaveAsCharset. We can just remove them.
Assignee: nobody → VYV03354
Status: NEW → ASSIGNED
Comment on attachment 8893674 [details] Bug 1202362 - Remove nsISaveAsCharset & nsSaveAsCharset. https://reviewboard.mozilla.org/r/164772/#review170168 Thank you!
Attachment #8893674 - Flags: review?(hsivonen) → review+
Pushed by VYV03354@nifty.ne.jp: https://hg.mozilla.org/integration/autoland/rev/4b913ce6d827 Remove nsISaveAsCharset & nsSaveAsCharset. r=hsivonen
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
Performance Impact: --- → -
Whiteboard: [qf-]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: