Closed Bug 643048 Opened 13 years ago Closed 13 years ago

Default searchplugins will not work with maemo langpack.

Categories

(Firefox for Android Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 645970

People

(Reporter: bugzilla, Unassigned)

Details

Attachments

(1 file)

note: Not tested on Maemo devices, only tested on Android and Mac builds.

We are now building Fennec langpacks for non en-US locale like:
ftp://ftp.mozilla.org/pub/mozilla.org/mobile/candidates/4.0rc1-candidates/build3/maemo5-gtk/ja/fennec-4.0.ja.langpack.xpi

But with this langpack, default searchplugins will not work (all disabled).

Firefox currently support only flat packaging (without jar: url) if the add-on include searchplugins. But the langpack use jar packaging (ja.jar) in the xpi.

To fix this problem we should do one of following:
 - support jar packaging for searchplugins
 - use flat packaging for langpacks like the attachment

If we're planing to release langpack, this should be fixed. If the langpacks are just for tests, this can be just known issue.
If we use langpack with jar packaging, a exception will be throw in the _findJAREngines() when it try to do fileURI.QueryInterface(Ci.nsIFileURL);
http://mxr.mozilla.org/mozilla-central/source/toolkit/components/search/nsSearchService.js#2876
  LOG("_findJAREngines: failed to get chromeFile for " + root + ": " + ex);
We're not planning on using these for the release yet but are working on a better system to allow the app to dynamically pull langpacks in for any supported language.  We'll get this working in a future release
Gavin, mighty Gavin, mere mortals seek your help and wisdom.
Ooops, I should have added the error log message:

(In reply to comment #1)
> If we use langpack with jar packaging, a exception will be throw in the
> _findJAREngines() when it try to do fileURI.QueryInterface(Ci.nsIFileURL);
> http://mxr.mozilla.org/mozilla-central/source/toolkit/components/search/nsSearchService.js#2876
>   LOG("_findJAREngines: failed to get chromeFile for " + root + ": " + ex);

_findJAREngines: failed to get chromeFile for chrome://browser/locale/searchplugins/: [Exception... "Component returned failure code: 0x80004002 (NS_NOINTERFACE) [nsISupports.QueryInterface]"  nsresult: "0x80004002 (NS_NOINTERFACE)"  location: "JS frame :: file:///Applications/Fennec%204.0.app/Contents/MacOS/components/nsSearchService.js :: <TOP_LEVEL> :: line 2838"  data: no]
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: