Closed Bug 1208885 Opened 10 years ago Closed 10 years ago

Use mozGenericWordUtils in mozSpellI18NManager::GetUtil() if the input language is not English

Categories

(Core :: Spelling checker, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla44
Tracking Status
firefox44 --- fixed

People

(Reporter: ehsan.akhgari, Unassigned)

References

Details

Attachments

(1 file, 1 obsolete file)

Found by Viva64.
Comment on attachment 8666501 [details] [diff] [review] Use mozGenericWordUtils in mozSpellI18NManager::GetUtil() if the input language is not English Did you actually test the change? Since mozGenericWordUtils is currently totally unused and the methods just return NS_ERROR_NOT_IMPLEMENTED. GetUtil is apparently called only with "" as language (at least in Firefox, dunno about TB) I'm rather worried that http://mxr.mozilla.org/mozilla-central/source/extensions/spellcheck/src/mozSpellChecker.cpp#84 will break. r-, but if you think we really should do the change, please explain what kind of behavior we get. this is old code https://bugzilla.mozilla.org/show_bug.cgi?id=56301#c214
Attachment #8666501 - Flags: review?(bugs) → review-
You're right. Let me silence the static analysis for now. I guess nobody has objected yet. We should remove mozGenericWordUtils since it really has no value!
Found by Viva64. In the future we need to add support for more langauges, but right now mozGenericWordUtils doesn't provide any value.
Attachment #8666556 - Flags: review?(bugs)
Attachment #8666501 - Attachment is obsolete: true
Blocks: 710966
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: