XAML Browser Applications explained

XBAP
Mime:application/x-ms-xbap
Genre:Package management system, file archive
Container For:Software package
Extended From:ZIP

XAML Browser Applications (XBAP, pronounced "ex-bap") are Windows Presentation Foundation (.xbap) applications that were intended to run inside a web browser such as Firefox or Internet Explorer through the NPAPI interface. Due to NPAPI being phased out in recent years, and from lack of support, there are currently no browsers that support XBAP applications.[1]

Hosted applications run in a partial trust sandbox environment and are not given full access to the computer's resources like opening a new network connection or saving a file to the computer disk and not all WPF functionality is available. The hosted environment is intended to protect the computer from malicious applications; however it can also run in full trust mode by the client changing the permission. Starting an XBAP from an HTML page was seamless (with no security or installation prompt). Although one perceived the application running in the browser, it actually ran in an out-of-process executable (PresentationHost.exe) managed by a virtual machine.

XBAP limitations

XBAP applications have certain restrictions on what .NET features they can use. Since they run in partial trust, they are restricted to the same set of permission granted to any InternetZone application. Nearly all standard WPF functionality, however, around 99%, is available to an XBAP application. Therefore, most of the WPF UI features are available.[2]

Starting in February 2009, XBAP applications no longer function when run from the Internet.[3] Attempting to run the XBAP will cause the browser to present a generic error message.[4] An option exists in Internet Explorer 9 that can be used to allow the applications to run,[5] but this must be done with care as it increases the potential attack surface - and there have been security vulnerabilities in XBAP.[6]

Permitted

Not permitted

See also

External links

Notes and References

  1. Web site: adegeo . FAQ about XBAP supportability . 2024-05-15 . learn.microsoft.com . en-us.
  2. Web site: WPF Partial Trust Security. MSDN. 2011-02-16. For XBAP applications, code that exceeds the default permission set will have different behavior depending on the security zone. In some cases, the user will receive a warning when they attempt to install it. The user can choose to continue or cancel the installation. The following table describes the behavior of the application for each security zone and what you have to do for the application to receive full trust..
  3. Web site: IE9 RC Minor Changes List. 11 February 2011 .
  4. Web site: IE9 – XBAPs Disabled in the Internet Zone. 9 March 2011 .
  5. Web site: XBAP - This application type has been disabled. Stack Overflow.
  6. Web site: Microsoft Security Bulletin MS13-004 - Important. BetaFred. technet.microsoft.com. March 2023 .