Mini App pop-out window stays opaque under the webview renderer backend
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 48/100
- Tipo de issue
- Bug
- Clareza
- Claramente especificada
- Status de atividade
- Ativa
- Stack de tecnologia
- typescript
- Domínio
- desktop
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- TypeScript
- Estrelas
- 2.3k
- Forks
- 315
- Merge médio
- 3h 54min
- PRs com merge (30d)
- 9
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de MiniMax-AI/minimax-code
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
MiniMax-AI/minimax-code#639 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
MiniMax-AI/minimax-code#636 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
MiniMax-AI/minimax-code#615 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
MiniMax-AI/minimax-code#556 · 4 comentários ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
MiniMax-AI/minimax-code#507 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de MiniMax-AI/minimax-code
Issues semelhantes
-
[Bug]: A Markdown link with both a :line suffix and a #L fragment opens a path containing ":line"Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
Mantenedores costumam responder em até 1 dia
-
status:needs-triage type:bug workstream:refimpl
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
GenAI-Security-Project/agent-control-standard#764 ·
Mantenedores costumam responder em até 1 dia
-
good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
TanbirRamim/vibereel#39 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 72/100
lingdojo/kana-dojo#34988 · 1 comentário · 5 reações ·
Mantenedores costumam responder em até 1 dia