Skip to content

השבתת ה-endorsement של לינוקס — flutter_inappwebview_linux לא מתקמפל מול WPE 2.36 ושובר את כל בניות הלינוקס#1

Open
palmoni5 wants to merge 4 commits into
Otzaria:masterfrom
palmoni5:fix/disable-linux-endorsement
Open

השבתת ה-endorsement של לינוקס — flutter_inappwebview_linux לא מתקמפל מול WPE 2.36 ושובר את כל בניות הלינוקס#1
palmoni5 wants to merge 4 commits into
Otzaria:masterfrom
palmoni5:fix/disable-linux-endorsement

Conversation

@palmoni5

Copy link
Copy Markdown

הבעיה

מאז שמערכת התוספים של Otzaria עברה להשתמש ב-fork הזה (4/4/2026), בניית הלינוקס ב-CI של Otzaria שבורה לחלוטין — אפס ריצות build_linux ירוקות, והגרסה האחרונה שיצאה ללינוקס היא 0.9.88 (30/3/2026). ריצה נכשלת לדוגמה: https://github.com/Otzaria/otzaria/actions/runs/27395934466

סיבת השורש

ה-pubspec של החבילה הראשית מאמץ (endorses) את flutter_inappwebview_linux: ^0.1.0-beta.1 כמימוש ברירת-המחדל ללינוקס. החבילה הזו:

  • פורסמה בפברואר 2026 ולא עודכנה מאז (גם upstream של pichillilorenzo רדום בנושא)
  • ה-CMake שלה מצהיר על תאימות ל-wpe-webkit-1.0 כ-fallback, אבל קוד ה-C++ משתמש ללא גארדים של גרסה ב-API של WPE WebKit ‏2.40+: ‏WebKitNetworkSession, ‏WebKitScriptMessageReply, ‏webkit_cookie_manager_get_all_cookies, ו-libsoup3 (GDateTime במקום SoupDate)
  • על ubuntu-22.04 (סביבת הבנייה של Otzaria, נבחרה בכוונה בשביל רף glibc 2.35) קיים רק libwpewebkit-1.0-dev = WPE ‏2.36 עם libsoup2 → עשרות שגיאות קומפילציה:
error: unknown type name 'WebKitNetworkSession'; did you mean 'WebKitNetworkError'?
error: use of undeclared identifier 'webkit_network_session_get_default'
error: cannot initialize a variable of type 'GDateTime *' with an rvalue of type 'SoupDate *'

למה השבתה ולא תיקון

נשקלו החלופות:

חלופה בעיה
מעבר ל-ubuntu-24.04 (יש wpe-webkit-2.0) רף glibc קופץ ל-2.39 — נועל בחוץ משתמשי Ubuntu 22.04/Debian 12; וה-plugin מצרף ~100MB של libWPEWebKit לכל חבילה
fork של המימוש + גארדים ל-2.36 ל-API של cookies/network-session אין מקבילה מלאה ב-2.36; עבודת C++ כבדה ועוד fork לתחזק
WPE עדכני על 22.04 אין PPA אמין; בנייה מהמקור = שעות לכל ריצת CI

השבתת ה-endorsement היא הצעד הנכון כרגע: למשתמשי לינוקס מעולם לא הייתה גרסה עם תוספים (הם תקועים על 0.9.88 שקדמה לפיצ'ר), כך שלא נלקח מהם דבר — ובתמורה הם חוזרים לקבל עדכונים. השינוי הפיך לחלוטין כשהמימוש upstream יבשיל.

השינוי

קובץ אחד — flutter_inappwebview/pubspec.yaml:

  1. הסרת linux: default_package: flutter_inappwebview_linux מ-flutter.plugin.platforms — ה-Flutter tool לא יקמפל יותר את התוסף הנייטיבי בלינוקס
  2. הפיכת התלות flutter_inappwebview_linux להערה, עם הסבר קצר

השלכות בצד Otzaria

בלינוקס, קריאות webview יזרקו MissingPluginException בזמן ריצה. ה-UI של התוספים מגודר היום רק לאנדרואיד/ווינדוס (plugin_tab_page.dart), אז כדאי להוסיף שם מסך "לא נתמך בלינוקס" — יטופל בריפו של Otzaria בנפרד.

Y-PLONI and others added 4 commits June 10, 2026 22:49
Batching scroll sends to one platform message per Flutter frame added
0-16ms of variable latency, and in a busy app a delayed or skipped UI
frame held trackpad input back and then released it in a burst -
scrolling that intermittently ignored the fingers and caught up a
moment later. Chromium coalesces a per-event wheel stream by itself
(exactly what high-resolution mouse wheels produce natively), so the
frame-tied batching only added jitter.

Measured with the in-repo smoothness probe (real WebView2, identical
synthetic drag): end-to-end latency dropped from 81ms to 56ms and step
jitter improved (stdStep 0.66px -> 0.52px, 0% stalled frames) with
Chromium smooth scrolling at its default.

Also stop the synthetic fling on PointerScrollInertiaCancelEvent, which
the engine sends when the user touches the trackpad during inertia.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1:1 finger-to-page tracking was reported to feel sluggish compared to
native precision-touchpad scrolling. Pan deltas (and synthetic fling
distances, which pass through the same conversion) are now scaled by a
felt gain of 1.5 on top of the measured 120-units-per-100px Chromium
wheel calibration, so the page moves 1.5x the finger travel.
_kTrackpadGain is the single knob for tuning scroll speed.

A synthetic-touch (SendPointerInput PT_TOUCH) alternative was prototyped
and measured against a real WebView2: it gives native direct
manipulation and Chromium fling, but WebView2 only begins a touch
scroll after ~34px of movement per gesture (282ms begin latency,
gestures under ~30px scroll nothing). That dead zone kills the small
precise scrolls a reading app lives on, so the wheel-injection path
stays.

Measured after this change (in-repo smoothness probe, real WebView2):
page/finger = 1.50 exactly, 0% stalled frames, stdStep 0.44px,
42ms latency, and 8-40px micro-gestures all scroll at full gain.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
… not compile against WPE WebKit 2.36 (Ubuntu 22.04)

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request disables the flutter_inappwebview_linux dependency and its platform endorsement in pubspec.yaml because it requires WPE WebKit >= 2.40, which is incompatible with Ubuntu 22.04's WPE 2.36. There are no review comments, and I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants