MicrosoftEdge / MicrosoftEdge/WebView2Feedback
Why does windows.xam.ul api change the binding of a webview2 source using communitywinui 8.02.
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
What happened?
I was debugging my application and used a binding onthe source property;
xaml <Webview2 source="{x:Bind ViewModel.Source, mode=TwoWay, updateSourceProperty }:/>
private uri _source = default;
public uri Source { get { return _source; } set { SetProperty(ref _source, value); }.
I set the break point on the set property, and I seen the requested uri set, and then the windows.ui.xaml api set it to "about:blank" this occurred a couple of times, although binding was finally correct.
I was wondering why does this happen, and a fallbackvalue doesn't work either.
Importance
Moderate. My app's user experience is affected, but still usable.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
1.4.231115000
SDK Version
1.4.231115000
Framework
WinUI3/WinAppSDK
Operating System
Windows 10
OS Version
22621
Repro steps
Create a page with the webview2 and bind using communitywinui observablereceiptant, and create a binding and set a break point on the setter.
Repros in Edge Browser
No, issue does not reproduce in the corresponding Edge version
Regression
Don't know
Last working version (if regression)
1.4.231115000
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 with the reported XAML WebView2 binding using TwoWay mode and the Source setter breakpoint; the issue provides no repository file or test entry point. Reproduce the binding on WinUI3/WinAppSDK with the stated runtime versions and determine why the source temporarily becomes "about:blank"; done means documenting a confirmed cause and reproducible behavior.
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
- Needs clarification
- Newbie friendliness
- 20/100