August 27th, 2015
Over the past several months, we have made numerous improvements to the Microsoft Edge rendering engine (Microsoft EdgeHTML), focusing on interoperability with modern browsers and compliance with new and emerging standards. In addition to powering Microsoft Edge, EdgeHTML is also available for all Universal Windows Platform (UWP) apps via the WebView control. Today we would like to demonstrate how the WebView control can be used to create your own browser in Windows 10.
Our sample app includes many UI components you would see in today’s modern browsers. For instance, we include forward and back buttons, refresh and stop buttons, favorites and settings menus, a favicon and address bar, etc. We also include supplemental features, such as keyboard shortcuts, full screen mode, favorites management, and responsive design.
The crux of the functionality stems around the powerful WebView control. Offering a comprehensive set of APIs, it overcomes several of the limitations which encumber iframes, such as framebusting sites and document loading events. Additionally, the x-ms-webview, how one declares a WebView in HTML, provides new functionality that is not possible with an iframe, such as better access to local content and the ability to take screenshots. When you use the WebView control, you get the same web platform that powers Microsoft Edge.
Demo the app
– Josh Rennert, Program Manager, Microsoft Edge