Skip to content

[Problem/Bug]: CustomScheme after TrySuspend, TrySuspendCompleted can't trigger #4851

@Mengdch

Description

@Mengdch

What happened?

When calling CreateWebViewEnvironment with Options Internal, 'gztime' is defined through CustomsSchemeRegistration. Then, the web page of this protocol is loaded in the webview, and the WebResourceRequested callback is processed to load normally. Then, the TrySuspend function is called on the page, but TrySuspendCompleted cannot be triggered. Loading HTTP URL can be triggered

Importance

Moderate. My app's user experience is affected, but still usable.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

129.0.2792.79

SDK Version

1.0.2792.79

Framework

Win32

Operating System

Windows 10

OS Version

19045.4894

Repro steps

step:

  1. calling CreateWebViewEnvironment with Options Internal, 'gztime' is defined through CustomsSchemeRegistration.
  2. the web page of gztime://index is loaded in the webview, and the WebResourceRequested callback is processed to load normally.
  3. TrySuspend function is called on the page
  4. TrySuspendCompleted cannot be triggered.
    excepted:
    TrySuspendCompleted trigger

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

No, this never worked

Last working version (if regression)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions