Closed Bug 974469 Opened 10 years ago Closed 6 years ago

Ship parts of Fennec's omni.ja as unpackaged Android assets

Categories

(Firefox for Android Graveyard :: Testing, defect)

All
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: nalexander, Unassigned)

References

(Blocks 1 open bug)

Details

At the moment, Fennec ships a monolithic omni.ja comprising all sorts of assets (chrome HTML, CSS, and JS; components and modules JS{M}).  This omni.ja is built during packaging and incorporates assets from all over the tree.

It would be nice to include the Fennec-specific assets directly in the Fennec APK.  This would allow Fennec developers to package an omni.ja containing things they are not likely to touch once, and then continually update the things they are likely to touch in the APK assets/ directory.  Combined with Bug 974462, this would make front-end development a lot faster: the single omni.ja would be packaged and deployed once, while the small amount of Fennec specific chrome would be re-packed without needing packaging.

This might be as simple as implementing an android_asset:// protocol handler, or file:///android_asset/ (like WebView -- see https://android.googlesource.com/platform/frameworks/base.git/+/android-4.2.2_r1/core/java/android/webkit/BrowserFrame.java).

I could imagine this completely breaking l10n repacks, so it might be wanted only for developer builds.
This is relevant for access to fonts from Android content, right?
(In reply to Richard Newman [:rnewman] from comment #1)
> This is relevant for access to fonts from Android content, right?

It could.  We already have support for this, though: GeckoJarReader can extract from omni.ja.
Mass closing Firefox for Android :: Testing bugs with no progress in 2017.

If this bug is important to you, please re-open.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.