Contents

Posted on

DotNetBrowser 3.5.0

Added new initialization exceptions 

New exception classes have been introduced to cover various engine initialization failure scenarios:

  • SandboxNotSupportedException - Thrown when Chromium can’t launch in the sandboxed mode, because, the environment doesn’t support creating processes within a new user namespace.
  • UserDataInUseException - Thrown when another Chromium instance is already using the same user data directory.
  • UserDataCreationException - Thrown when the user data directory cannot be created due to insufficient permissions or an invalid directory path.

All new exceptions inherit from EngineInitializationException, ensuring existing code continues to work while enabling type-safe exception handling.

Changes in loading PDF documents 

You can now track PDF document loading with two new events:

  • PdfDocumentLoaded
  • PdfDocumentLoadFailed

Usage example:

browser.PdfDocumentLoaded += (sender, args) =>
{
    var url = args.Url;
    var frame = args.Frame;

    // This event is a good place to start PDF printing.
    frame.Print();
};

Starting with DotNetBrowser 3.5.0, FrameLoadFinished event and the Navigation.LoadUrl() task result are no longer reliable ways to wait for the PDF document to load. Use the new events instead.

Read more details in the navigation guide.

Breaking changes 

We have removed the following members of NetError enumeration because they were removed in Chromium:

  • NetError.DnsServerFailed
  • NetError.TrustTokenOperationCacheHit

Additionally, the following member has been renamed:

  • NetError.NpnNegotiationFailed to NetError.AlpnNegotiationFailed

Chromium 145.0.7632.76 

We upgraded Chromium to a newer version, which introduces a critical security fix for a vulnerability that has a known exploit in the wild:

You can read more about it in the Chromium blog post.

Quality enhancements 

  • Fixed an issue where Chromium switched to software rendering when the sandbox was enabled on Linux.

Download DotNetBrowser 3.5.0

Please share your email with us, and we'll send you download instructions.

We couldn’t deliver a message. Please make sure the email address is correct.
Sending…
EmailBox Please check your inbox.

We were unable to send the email. Please try again.

If you are a registered customer you don’t need to do anything to use this update.

If you would like to evaluate the product, you need an evaluation license.

Get free 30-day trial