From 77d95c715cf47d8ec45b55ce9b869b1aff592f4f Mon Sep 17 00:00:00 2001 From: Luxferre Date: Tue, 10 Nov 2026 12:43:41 +0200 Subject: [PATCH] Fix Webarchy WebKit renderer on the 2720 Flip --- AGENTS.md | 1 + CHANGELOG.md | 4 + MANUAL.md | 1 + README.md | 2 +- .../rootfs/usr/lib/dwm/plugins/webarchy.so | Bin 95688 -> 95688 bytes .../sxmo-x11/usr/lib/dwm/plugins/webarchy.so | Bin 95688 -> 95688 bytes scripts/check-rebuild.sh | 24 +++ scripts/test-webarchy-renderer.py | 146 ++++++++++++++++++ src/dwm-plugins/webarchy_plugin.cpp | 99 ++++++++++-- 9 files changed, 259 insertions(+), 18 deletions(-) create mode 100755 scripts/test-webarchy-renderer.py diff --git a/AGENTS.md b/AGENTS.md index fdbc7ec..2953bde 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -57,6 +57,7 @@ All cross-compilation scripts run inside rootless Docker (`alpine:3.24` `armv7` - `./scripts/prune-rootfs-packages.sh world|purge` — removes Wayland-only, Rust-based, and retired packages from a target rootfs inside the build container. - `./scripts/build-bananarchy-daemons.sh` — cross-builds the three compiled ARM idle daemons (`bananarchy-lid`, `bananarchy-cover-idle`, `bananarchy-volume-keys`) from `src/bananarchy-daemons/`; `--check` validates the ARM ELF artifacts and overlay sync. No Python-based daemon runs in the idle system. - `./scripts/build-lk2nd-beatles.sh` — cross-builds all three beatles lk2nd images (normal, diagnostic and display; the display image is the flasher default) from the pinned upstream lk2nd commit plus `bootloader/lk2nd/nokia-beatles.patch` in rootless Docker (`--check` validates all three shipped images, `--only normal|diagnostic|display` builds one, `--force-panel-init` forces the panel replay, `--with-display` enables SPI display during boot). Offline validators: `scripts/check-lk2nd-beatles.py` and `scripts/test-lk2nd-beatles-port.py`. +- `./scripts/test-webarchy-renderer.py` — host unit test for Webarchy's device-aware WebKit renderer profile (also run by `check-rebuild.sh`). - `./scripts/check-rebuild.sh` — offline preflight for a clean clone (syntax, package list, plugin artifacts, overlay sync, SMS long-message rendering guard, ignored local agent config, Docker, version helper). - `./scripts/sync-prebuilt-overlay.sh [--check]` — mirrors `prebuilt/` artifacts into `overlay/rootfs/`; `--check` only reports drift. - `./scripts/bootstrap-flash-deps.sh` — installs `pyusb` and `pyserial` into the gitignored `.flash-deps/` directory for `flash-edl.py`. diff --git a/CHANGELOG.md b/CHANGELOG.md index 10efb49..699514c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,10 @@ Release versions follow the `
` format (where `2026` is `a`, Work since `a1108` has focused on reliable 2720 Flip hardware support and a reproducible boot/flash path. Earlier incremental and superseded diagnostic entries are consolidated here. +### Webarchy WebKit renderer + +- **Unexpected WebKit error on the 2720 Flip**: `webarchy.so` used `setenv(..., "0")` for the WebKitGTK presence flags `WEBKIT_DISABLE_COMPOSITING_MODE`, `WEBKIT_DISABLE_DMABUF_RENDERER` and `WEBKIT_SKIA_ENABLE_CPU_RENDERING` while still requesting `WEBKIT_HARDWARE_ACCELERATION_POLICY_ALWAYS`. WebKitGTK treats the presence of those variables as "disable", so the WebProcess started with conflicting renderer state and died on every navigation, which WebKit reported as an "Unexpected WebKit error". `configureWebkitRenderer()` now unsets all three flags first, enables the CPU renderer only where required, and chooses `WEBKIT_HARDWARE_ACCELERATION_POLICY_NEVER` on `nokia,beatles` (and after the first WebProcess crash) while `nokia-argon` keeps `WEBKIT_HARDWARE_ACCELERATION_POLICY_ALWAYS` and WebGL. Create `~/.config/sxmo/webarchy_software_renderer` to force the software profile on any target. Load failures now report the GError domain/code in the browser status line instead of an opaque message. `scripts/check-rebuild.sh` guards the profile and the rebuilt `webarchy.so`. + ### Nokia 2720 Flip hardware - **Wi-Fi, Bluetooth, and modem firmware**: added `msm-firmware-loader` and its OpenRC services so the phone's signed firmware and factory NV data are loaded from the stock `modem` and `persist` partitions before udev. This fixed the missing `wcnss.mdt` failure that prevented both `wlan0` and `hci0` from appearing. Wi-Fi scanning, Bluetooth discovery, and cold-boot enumeration were verified on the phone. diff --git a/MANUAL.md b/MANUAL.md index 9e97a6c..0fae0cb 100644 --- a/MANUAL.md +++ b/MANUAL.md @@ -293,6 +293,7 @@ All twenty-five phone applications are compiled as shared-object plugins (`/usr/ 21. **Webarchy Web browser (`webarchy.so` / `webarchy` / `xwebarchy`)**: - **Open**: select **Webarchy (Web)** from the System or Applications menu, or run `webarchy [url]` / `xwebarchy [url]`. - **Engine, User-Agent, encoding, fonts, and multimedia**: built on WPE / WebKit (`webkit2gtk-4.1` + `libwpe-1.0`) with Adreno 304 hardware acceleration (`WEBKIT_HARDWARE_ACCELERATION_POLICY_ALWAYS` and WebGL) and 512 MB RAM pressure tuning (`160 MB` WebProcess cap). Uses `UTF-8` as the primary/default encoding when a server specifies none, configures Google **Noto** (`Noto Sans`, `Noto Serif`, `Noto Sans Symbols`, `Noto Sans Math`, `Noto Color Emoji`) as the default non-monospace web fonts while keeping **Fira Code** with OpenType ligatures (`calt`, `liga`) for monospace (`code`, `pre`, `kbd`, `samp`, `tt`), enables all HTML5/GStreamer multimedia playback (`MediaSource` / MSE, WebAudio, inline `