List icon Contents

Posted on May 22, 2024

DotNetBrowser 2.27.0

Chromium upgraded to 124.0.6367.221

We upgraded Chromium to a newer version, which introduces security fixes for vulnerabilities that have known exploits:

For the complete list of Chromium fixes and improvements in 124.0.6367.221 please visit the product blog posts for the following versions:

Breaking changes

In this version, we have removed the Scaling.FitToPage and Scaling.FitToPaper fields. These options are only useful when printing a PDF file with a system printer. When printing an HTML page or using the built-in PDF printer, the methods were no-op, confusing developers.

Instead, we introduce a new IFit.Fit property, which is available only for printing PDF files with system printers.

Here is how the PrintPdfContentHandler might look like before:

browser.PrintPdfContentHandler = 
    new Handler<PrintPdfContentParameters, PrintPdfContentResponse>(p =>
{
    var printer = p.Printers.Default;
    var settings = printer.PrintJob.Settings;
    settings.Scaling = Scaling.FitToPage;
    // ...
    return PrintPdfContentResponse.Print(printer);
});

Here is how PrintPdfContentHandler works in DotNetBrowser 2.27.0:

browser.PrintPdfContentHandler = 
    new Handler<PrintPdfContentParameters, PrintPdfContentResponse>(p =>
{
    var printer = p.Printers.Default;
    var settings = printer.PrintJob.Settings;
    settings.Fit = Fit.ToPage;
    // ...
    return PrintPdfContentResponse.Print(printer);
});

Quality enhancements

  • The redundant option causing Chromium crash was removed from autofill suggestions drop-down for credit cards;
  • The focus handling was improved for WPF and Windows Forms BrowserViews embedded into a native window.

Download DotNetBrowser 2.27.0 (.NET Framework)
Download DotNetBrowser 2.27.0 (.NET Core)
Download DotNetBrowser 2.27.0 (Cross-platform)

Get free 30-day trial

Go Top