New features for extensions in the Windows 10 April 2018 Update

Status
Not open for further replies.

Bot

AI-powered Bot
Thread author
Verified
Apr 21, 2016
3,320
The Windows 10 April 2018 Update includes several incremental improvements to API support, functionality, and end-user discoverability for the extensions platform in Microsoft Edge. In this post, we’ll walk through the biggest improvements, and how you can get started enhancing your extensions with new features.

Extensions can now be enabled for InPrivate browsing


In previous releases, extensions could not be enabled during an inPrivate browsing session. Beginning with this release, users can now choose to allow extensions to run during inPrivate browsing on a case-by-case basis – either when the extension is initially installed (by selecting the “Allow for inPrivate browsing” checkbox), or at any later time by visiting the Settings page for a given extension.

When running inPrivate, extensions can run in either split or span mode as specified by the WebExtensions API. In span mode (the default), the extension spans both inPrivate and non-private windows; windows and tabs from an inPrivate instance are indicated to the extension with an incognito property. In split mode, a separate instance of the extension is created for inPrivate and normal browsing, and the two copies are isolated (the inPrivate copy cannot see non-private windows, and the non-private copy cannot see inPrivate windows).

e15cb26ce19cd85a9013eae2d0a9921c-1024x322.png

Extensions are now available when browsing inPrivate


Extensions in span mode can be debugged as with a normal extension. Extensions in split mode can be debugged separately for each instance, as the background script is separate for normal and InPrivate sessions.


The background script is separate for normal and inPrivate sessions.

Introducing the Notifications API for extensions


Extensions can now display interactive notifications , including basic messages, progress indicators, lists, and more. Developers can customize the appearance of these notifications by configuring the icon, text, buttons, and button icons.

21cd02f9252a50eb5eedc2352550cd5c-1024x652.png

Examples of progress, list, image and basic notifications


In the sample below, we’ll demonstrate the process to create a basic notification. The first step is to define the notification options:


Next, we’ll add event listeners for various user interactions:


The notification can now be invoked:


Notifications sent from an extension use the standard Windows notification service, appearing in Action Center until an action is taken. Users have full control over notifications, and can choose to suppress notifications originating from a specific extension using either the extension’s menu in Microsoft Edge or by acting on an individual notification in the Windows Action Center.

03f0afb2c64966f8b9379a55bccfaa13-1024x547.png

Users can suppress notifications for an extension from the Action Center or the extension settings


Extension developers can determine if notifications are enabled or disabled using the getPermissionLevel() method:


The event onPermissionLevelChanged will be raised if the user changes the notification permission:

Support for Tabs.reload()


Microsoft Edge extensions now support the tabs.reload() method in the tabs API class, allowing extensions to directly reload a specific tab using this method.

What’s next for extensions


We are continuing to make enhancements to extensions platform for future releases. You can see a snapshot of our current roadmap on Microsoft Docs at Microsoft Edge Extension API roadmap. To get started building your extension for Microsoft Edge, check out Getting started with extensions.

We look forward to your feedback on these improvements! You can vote on the most important features for your extension development on the Microsoft Edge Developer UserVoice, or share your feedback in the comments below.

– Balaje Krishnan, Senior Program Manager, Microsoft Edge

The post New features for extensions in the Windows 10 April 2018 Update appeared first on Microsoft Edge Dev Blog.

Source
 
Status
Not open for further replies.

About us

  • MalwareTips is a community-driven platform providing the latest information and resources on malware and cyber threats. Our team of experienced professionals and passionate volunteers work to keep the internet safe and secure. We provide accurate, up-to-date information and strive to build a strong and supportive community dedicated to cybersecurity.

User Menu

Follow us

Follow us on Facebook or Twitter to know first about the latest cybersecurity incidents and malware threats.

Top