Closed
Bug 1280757
Opened 9 years ago
Closed 9 years ago
Load hyphenation dictionaries from writable location
Categories
(Firefox for Android Graveyard :: General, defect)
Firefox for Android Graveyard
General
Tracking
(firefox50 fixed)
RESOLVED
FIXED
Firefox 50
Tracking | Status | |
---|---|---|
firefox50 | --- | fixed |
People
(Reporter: k.krish, Assigned: k.krish, Mentored)
References
Details
Attachments
(1 file)
58 bytes,
text/x-review-board-request
|
Details |
We are excluding the hyphenation dictionaries from the APK in the Bug 1095719. So when we exclude the hyphenation dictionary from the build, some reftests will fail. We need to package them separately and install them along with the build in this Bug 1276560.
We are loading the hyphenation dictionary into the test profile - sdcard/tests/reftest/profile/hyphenation/<files>
But we need to load the hyphenation dictionaries from the test profile directory.
Blocks: downloadable-hyphenation-dicts
Review commit: https://reviewboard.mozilla.org/r/59558/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/59558/
Attachment #8763334 -
Flags: review?(s.kaspari)
Comment 2•9 years ago
|
||
Comment on attachment 8763334 [details]
Bug 1280757 - Load hyphenation from test profile directory
Simon, Masatoshi: You are the owners or peers of intl/ - Can anyone of you review the patch or flag someone who can? :)
We'd like to add a sub directory of the profile directory as additional directory to look for hyphenation dictionaries.
Attachment #8763334 -
Flags: review?(smontagu)
Attachment #8763334 -
Flags: review?(s.kaspari)
Attachment #8763334 -
Flags: review?(VYV03354)
Attachment #8763334 -
Flags: feedback+
Comment 3•9 years ago
|
||
Do you know why hyphenation dictionaries have been restricted to non-writable location? Or do you know who would have known that?
Flags: needinfo?(s.kaspari)
Comment 4•9 years ago
|
||
(In reply to Masatoshi Kimura [:emk] from comment #3)
> Do you know why hyphenation dictionaries have been restricted to
> non-writable location? Or do you know who would have known that?
I know nothing about the history of the hyphenation manager unfortunately. However it is loading dictionaries from the process dir:
https://dxr.mozilla.org/mozilla-central/source/intl/hyphenation/glue/nsHyphenationManager.cpp#161-170
.. and this directory is writeable and not restricted - at least on Android. And that's exactly what we want to use on Android: To reduce the app size we do not want to ship the dictionaries with the app anymore. Instead we download them at runtime into the process dir. However we can't do this when running reftests, so we would like to push them to the test profile. That's how we handle other files (e.g.) that need to exist for testing too.
Flags: needinfo?(s.kaspari)
Comment 5•9 years ago
|
||
(In reply to Sebastian Kaspari (:sebastian) from comment #4)
> .. and this directory is writeable and not restricted - at least on Android.
But it is usually not writable on desktop platforms, although it is possible to install Firefox to writable location.
Comment 6•9 years ago
|
||
Comment on attachment 8763334 [details]
Bug 1280757 - Load hyphenation from test profile directory
https://reviewboard.mozilla.org/r/59558/#review57062
OK, let's try and see whats going on.
Attachment #8763334 -
Flags: review?(VYV03354) → review+
Comment 7•9 years ago
|
||
Comment on attachment 8763334 [details]
Bug 1280757 - Load hyphenation from test profile directory
Thank you!
Attachment #8763334 -
Flags: review?(smontagu)
Comment on attachment 8763334 [details]
Bug 1280757 - Load hyphenation from test profile directory
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/59558/diff/1-2/
Attachment #8763334 -
Flags: review?(s.kaspari)
Attachment #8763334 -
Flags: review+
Attachment #8763334 -
Flags: feedback+
Comment 9•9 years ago
|
||
Comment on attachment 8763334 [details]
Bug 1280757 - Load hyphenation from test profile directory
This patch already had r+ from Masatoshi and it doesn't seem that the patch has changed (Is this just a rebase?). You can go ahead and land it if there are no other issues.
Attachment #8763334 -
Flags: review?(s.kaspari)
Assignee | ||
Comment 10•9 years ago
|
||
Yes it is just a rebase. I triggered a new try run for this too. I will land it asap
Assignee | ||
Comment 11•9 years ago
|
||
Keywords: checkin-needed
Comment 12•9 years ago
|
||
Pushed by cbook@mozilla.com:
https://hg.mozilla.org/integration/fx-team/rev/dc96e5ff02fd
Load hyphenation from test profile directory. r=sebastian
Keywords: checkin-needed
Comment 13•9 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox50:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 50
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•