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:
PdfDocumentLoadedPdfDocumentLoadFailed
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.DnsServerFailedNetError.TrustTokenOperationCacheHit
Additionally, the following member has been renamed:
NetError.NpnNegotiationFailedtoNetError.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 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.
Follow @DotNetBrowser to get notified of the library updates.
Subscribe to our RSS feed to get instant updates on new releases.
Subscribe to get notifications about the latest releases.