MicrosoftEdge / MicrosoftEdge/WebView2Feedback

Why does windows.xam.ul api change the binding of a webview2 source using communitywinui 8.02.

Open
#4,614 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.