|
| 1 | +# Netormium Chromium Component Porting Plan |
| 2 | + |
| 3 | +## Objective |
| 4 | + |
| 5 | +Netormium must integrate at least one genuine component distributed in |
| 6 | +Chromium's source tree. Merely copying Chromium's design ideas or writing an |
| 7 | +unrelated HTML renderer is not sufficient to satisfy this project objective. |
| 8 | + |
| 9 | +## Platform boundary |
| 10 | + |
| 11 | +- The browser shell remains a MIDP 2.0 / CLDC 1.1 MIDlet. |
| 12 | +- J2ME does not provide JNI. A native Android library cannot be loaded by the |
| 13 | + MIDlet JAR on a normal feature phone. |
| 14 | +- Native Chromium components must initially live in a separate Android |
| 15 | + Companion process/application. |
| 16 | +- The Companion may expose a loopback/local HTTP or socket API to a MIDlet |
| 17 | + emulator when the emulator supports that connectivity. |
| 18 | +- A pure J2ME device without a companion remains a separate compatibility |
| 19 | + target; it must not be represented as running native Chromium. |
| 20 | + |
| 21 | +## Component selection |
| 22 | + |
| 23 | +### Milestone 1: Brotli decoder |
| 24 | + |
| 25 | +Brotli is included under Chromium's `third_party/brotli` and is independently |
| 26 | +buildable. Its upstream implementation is C and is distributed under the MIT |
| 27 | +License. Netormium's `native/CMakeLists.txt` pins Google Brotli v1.1.0 and |
| 28 | +exposes the decoder as `netormium_brotli_decoder`. |
| 29 | + |
| 30 | +This is a genuine component integration, but Brotli only decompresses data. |
| 31 | +It does not parse HTML, execute JavaScript, calculate CSS layout, or render |
| 32 | +pages. Its value is establishing the native build and licensing workflow. |
| 33 | + |
| 34 | +### Later candidates |
| 35 | + |
| 36 | +- Skia: investigate a small, isolated rendering use case and dependencies. |
| 37 | +- Blink: investigate architecture and minimum dependency closure before any |
| 38 | + port attempt. A direct CLDC port is not assumed feasible. |
| 39 | +- V8: treat as a separate high-risk project; do not promise it can run on J2ME. |
| 40 | +- Android System WebView: possible Companion rendering backend, but it is |
| 41 | + Chromium-based Android infrastructure, not a Blink/V8 port to MIDP. |
| 42 | + |
| 43 | +## Acceptance gates |
| 44 | + |
| 45 | +1. Android NDK builds the pinned Brotli decoder for at least arm64-v8a. |
| 46 | +2. A native test verifies known Brotli compressed fixtures and rejects |
| 47 | + oversized output safely. |
| 48 | +3. An Android Companion loads the library and exposes a bounded local API. |
| 49 | +4. The MIDlet emulator can reach that local API without an internet-hosted |
| 50 | + gateway. |
| 51 | +5. A separate feasibility report determines whether a rendering-related |
| 52 | + Chromium component can be integrated at useful size and memory cost. |
| 53 | + |
| 54 | +Do not mark the project complete merely because CMake configures. Record |
| 55 | +actual CI build results and runtime tests. |
| 56 | + |
| 57 | +## Project decision |
| 58 | + |
| 59 | +The current work is an experiment, not a guarantee that Chromium's full |
| 60 | +rendering stack can be ported to J2ME. If the acceptance gates fail, stop and |
| 61 | +reassess honestly rather than silently replacing the goal with an unrelated |
| 62 | +custom browser engine. |
0 commit comments