Mini App pop-out window stays opaque under the webview renderer backend
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 48/100
- Issue-Typ
- Bug
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- typescript
- Bereich
- desktop
Rechercherichtung
Start with embedded-browser-manager.js and webview-host/host.js, then trace how the detached guest surface is created for the webview backend. Check the platform-specific APIs for setting a transparent guest background and compare behavior with the native web-contents-view backend. Done means a transparent Mini App pop-out reveals the desktop behind its transparent pixels on the webview backend, or the backend clearly communicates that it cannot honor the setting.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
What happens
A Mini App that declares a transparent pop-out window renders as an opaque black rectangle when the client uses the webview renderer backend. The same package, unchanged, is fully transparent on the native web-contents-view backend.
Environment
- MiniMax Code 3.1.12.216
- Windows 11, build 26300 (UBR 9818)
- Package installed under
%USERPROFILE%\.minimax\plugins\<plugin> miniapp.json:
"surface": {
"path": "/bottle",
"window": {
"width": 220,
"height": 300,
"minWidth": 220,
"minHeight": 300,
"resizable": false,
"frame": false,
"transparent": true,
"alwaysOnTop": true,
"skipTaskbar": false
}
}
Steps
- Install the package, open it in the side panel, pop it out into its own window.
- The window is a black rectangle around the page content, and it takes the mouse over its whole area.
- The client log confirms the backend:
[EmbeddedBrowserLifecycle] shown {"rendererBackend":"webview","requestedRendererBackend":"webview",
"backendPolicyRevision":1,"event":"shown", ... "presentation":"detached"}
The page is not painting the backdrop
- In window mode the page forces
html,bodyand the app root tobackground: transparent !important, and the stage, panels and footer aredisplay: none. - A headless Chromium render of the same page at 220×300 has alpha = 0 at all four corners, so the document paints nothing.
- With the native backend the identical package is transparent, so the difference is the guest surface, not the document.
Where it looks broken
embedded-browser-manager.js passes the declaration through when it rebuilds the guest for a detach:
transparentBackground: host === tab.detachedWindow && tab.miniApp?.window?.transparent === true,
and webview-host/host.js only applies it as CSS on the host element:
Object.assign(entry.page.style, {
colorScheme: "light",
backgroundColor: descriptor.transparentBackground ? "transparent" : "Canvas"
});
The guest's own surface keeps an opaque background, so a transparent CSS background on the <webview> element cannot reveal what is behind the window.
Expected
A window declared "transparent": true should show the desktop behind the page's transparent pixels, as it does with web-contents-view.
Suggested fix
- Give the guest a transparent background where the platform supports one (a transparent
webContentsbackground / WebView2 default background), instead of relying on CSS on the host element; or - Keep
transparent: trueMini Apps on the native backend and state that the webview backend cannot honour the flag, so packages can avoid the declaration there.
Related
-webkit-app-region: drag is inert inside the webview guest as well, so a popped-out page has to move its own window through window.mcode.miniapp.window.update({ x, y }). That works, but docs/client.md recommends the app-region, and a page that follows the documentation ends up with a window the user cannot move at all.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 2.3k
- Forks
- 315
- Ø Merge
- 3 Std. 54 Min.
- Gemergte PRs (30 T.)
- 9
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus MiniMax-AI/minimax-code
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
MiniMax-AI/minimax-code#639 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
MiniMax-AI/minimax-code#636 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
MiniMax-AI/minimax-code#615 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
MiniMax-AI/minimax-code#556 · 4 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
MiniMax-AI/minimax-code#507 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in MiniMax-AI/minimax-code
Ähnliche Issues
-
[Bug]: A Markdown link with both a :line suffix and a #L fragment opens a path containing ":line"Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 1 Tag
-
status:needs-triage type:bug workstream:refimpl
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
GenAI-Security-Project/agent-control-standard#764 ·
Maintainer antworten meist innerhalb von 1 Tag
-
good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
TanbirRamim/vibereel#39 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 72/100
lingdojo/kana-dojo#34988 · 1 Kommentar · 5 Reaktionen ·
Maintainer antworten meist innerhalb von 1 Tag