MicrosoftEdge / MicrosoftEdge/WebView2Feedback
Navigate to string then to uri, IME will not work and page will close
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
Description
When WebView2 navigated to a string and get focused, and then navigate it to an uri, users using IME can't type anything and page will close after two seconds or longer. See this minimum project:
WebView2IMEPageClose.zip
Version
SDK: WinUI 1.0 prerelease2
Runtime: 94, 95
Framework: WinUI in Desktop
OS: Windows 11
Repro Steps
- Run the project above. It first navigate webview to a string which has a textarea that you can input something.
- Click in the textarea to make the webview get focused. This step is important. Without webview getting focused once, you can't reproduce the problem.
- Typing something in the textarea using IME, now everything is OK.
- Click the button above the webview, it navigate webview to a uri pointing to a html which contains the same code to the previous string (actually the string is read from this file)
- Now click in the textarea and try to type something using IME, note that no letters will appear in the textarea and after about two seconds, the page is very likely to close without any reason.
Screenshots

The problem happens when webview's source changes from string to uri. If its sources are always string or always uri, there will be no problem. But since developers may use a same webview to display strings and uris, the problem worth to be fixed.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the attached WebView2IMEPageClose.zip minimum project and follow the five reproduction steps, especially focusing the WebView before changing its source from a string to a URI. Compare IME input and page lifetime before and after navigation. Done means the URI-loaded textarea accepts IME input and the page remains open.
Written by the indexing model from the issue text.
Assessment
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100