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

The print preview does not load #4371

Closed
fvanheeswijk opened this issue Feb 13, 2024 · 5 comments
Closed

The print preview does not load #4371

fvanheeswijk opened this issue Feb 13, 2024 · 5 comments
Assignees
Labels
bug Something isn't working regression Something used to work but doesn't anymore tracked We are tracking this work internally.

Comments

@fvanheeswijk
Copy link

fvanheeswijk commented Feb 13, 2024

What happened?

When using the print functionality with the beta runtime the print preview does not load, a loading circle will be shown indefinitely.

Importance

Blocking. My app's basic functions are not working due to this issue.

Runtime Channel

Prerelease (Edge Canary/Dev/Beta)

Runtime Version

122.0.2365.30 beta

SDK Version

1.0.2277.86

Framework

Winforms

Operating System

Windows 11

OS Version

10.0.0.22631

Repro steps

With the Microsoft Edge Beta application installed the following code should be run in a C# Windows Forms application. Subsequently the Print command should be selected in the context menu after opening the menu by right-clicking on the page.

using System;
using System.Drawing;
using System.Windows.Forms;

using Microsoft.Web.WebView2.WinForms;

namespace WebView2Bug
{
    static class Program
    {
        [STAThread]
        static void Main()
        {
            Environment.SetEnvironmentVariable("WEBVIEW2_RELEASE_CHANNEL_PREFERENCE", "1");

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(CreateForm());
        }

        private static Form CreateForm()
        {
            var form = new Form
            {
                Size = new Size(1280, 1024)
            };

            var webView2 = new WebView2
            {
                Dock = DockStyle.Fill,
                Source = new Uri("http://example.org/")
            };

            form.Controls.Add(webView2);

            return form;
        }
    }
}

Repros in Edge Browser

No

Regression

Regression in newer Runtime

Last working version (if regression)

121.0.2277.112

AB#48981284

@fvanheeswijk fvanheeswijk added the bug Something isn't working label Feb 13, 2024
@github-actions github-actions bot added the regression Something used to work but doesn't anymore label Feb 13, 2024
@JosephJin0815 JosephJin0815 added the tracked We are tracking this work internally. label Feb 13, 2024
@JosephJin0815
Copy link

I am able to repro this on webview2. We are tracking it in our internal backlog.

@monica-ch
Copy link
Contributor

@fvanheeswijk The issue is fixed in Edge canary 123.0.2407.0+. Please validate and let us know if you have any questions!

@fvanheeswijk
Copy link
Author

@monica-ch Thank you! This fixed the issue in Edge canary 123.0.2407.0.

@fvanheeswijk
Copy link
Author

When can we expect the fix in Beta?

@monica-ch
Copy link
Contributor

The fix is backported and should be available in Edge beta 122.0.2365.38+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working regression Something used to work but doesn't anymore tracked We are tracking this work internally.
Projects
None yet
Development

No branches or pull requests

6 participants