Looking for saved searches? click on "Search Bugs" above.

Default spellchecker to load dictionaries from GRE folder not APP folder

RESOLVED FIXED

Status

()

Core
Spelling checker
RESOLVED FIXED
10 years ago
10 years ago

People

(Reporter: mfinkle, Assigned: mfinkle)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment, 1 obsolete attachment)

Created attachment 282804 [details] [diff] [review]
Make spellchecker use NS_GRE_DIR as default dictionary root

Spellchecker fails to load dictionaries for XULRunner applications. This is because XULRunner ships the spellchecker dictionaries in the "dictionaries" subfolder of the XULRunner distribution. Without dictionaries, no spellcheck functionality is present.

The spellchecker tries to locate the dictionaries using the "XCurProcD" (launching process) folder as the root. This works fine for Firefox, Thunderbird, and other libxul apps because the GRE folder is the "XCurProcD" folder. But this fails for XULRunner apps, since the "XCurProcD" is rarely ever the "xulrunner" folder.

Changing the spellchecker to default to load from the GRE folder fixes the problem for XULRunner and doesn't break libxul apps like Firefox and Thunderbird.
Attachment #282804 - Flags: review?(benjamin)
Assignee: mscott → mark.finkle
OS: Windows XP → All
Hardware: PC → All

Comment 1

10 years ago
Comment on attachment 282804 [details] [diff] [review]
Make spellchecker use NS_GRE_DIR as default dictionary root

It's a little unfortunate that we can't load dictionaries from both XR and the app... could you add that here or in mozHunspellDirProvider? Or re-request review if that is unfeasible for some reason.
Attachment #282804 - Flags: review?(benjamin)
(Assignee)

Comment 2

10 years ago
Created attachment 283053 [details] [diff] [review]
default to gre folder and app folder (if not same as gre folder)

This patch is the same as the previous patch except it also checks the app folder for dictionaries.
Attachment #282804 - Attachment is obsolete: true
Attachment #283053 - Flags: review?(benjamin)

Updated

10 years ago
Attachment #283053 - Flags: review?(benjamin) → review+
(Assignee)

Updated

10 years ago
Attachment #283053 - Flags: approval1.9?

Updated

10 years ago
Attachment #283053 - Flags: approval1.9? → approval1.9+
(Assignee)

Comment 3

10 years ago
new revision: 1.4; previous revision: 1.3
Status: NEW → RESOLVED
Last Resolved: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.