Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: alert/confirm dialog from WebContentsView does not show message contents #42225

Closed
3 tasks done
code-small-white opened this issue May 20, 2024 · 3 comments · Fixed by #42315
Closed
3 tasks done
Assignees
Labels
31-x-y bug 🪲 component/BaseWindow component/WebContentsView has-repro-gist Issue can be reproduced with code at https://gist.github.com/ status/confirmed A maintainer reproduced the bug or agreed with the feature

Comments

@code-small-white
Copy link

code-small-white commented May 20, 2024

Original Title:
在WebContentsView里面window.alert window.confirm 无法正常使用

Preflight Checklist

Electron Version

v31.0.0-beta.3

What operating system are you using?

macOS

Operating System Version

macOS Sonoma 14.4.1

What arch are you using?

arm64 (including Apple Silicon)

Last Known Working Electron version

No response

Expected Behavior

可以像BrowserWindow里面正常使用

Machine Translation:
Can be used normally like in BrowserWindow

Actual Behavior

image

Testcase Gist URL

https://gist.github.com/428834acf25125a0027fc847f5a28868

Additional Information

No response

@electron-issue-triage electron-issue-triage bot added 31-x-y has-repro-gist Issue can be reproduced with code at https://gist.github.com/ labels May 20, 2024
@clavin clavin changed the title [Bug]: 在WebContentsView里面window.alert window.confirm 无法正常使用 [Bug]: alert/confirm dialog from WebContentsView does not show message contents May 21, 2024
@clavin clavin added status/confirmed A maintainer reproduced the bug or agreed with the feature component/WebContentsView labels May 21, 2024
@code-small-white
Copy link
Author

@clavin 为什么把标题改成了英文

@clavin
Copy link
Member

clavin commented May 22, 2024

@code-small-white I changed the title to English to help other people find this problem and to clarify what the issue is to other maintainers 🙂

@codebytere
Copy link
Member

@code-small-white if you use a BrowserWindow instead of a BaseWindow that'll fix it in the short term. There's a bigger fix to be made but that'll at least handle it for now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
31-x-y bug 🪲 component/BaseWindow component/WebContentsView has-repro-gist Issue can be reproduced with code at https://gist.github.com/ status/confirmed A maintainer reproduced the bug or agreed with the feature
Projects
Status: 👍 Does Not Block Stable
Development

Successfully merging a pull request may close this issue.

3 participants