Category Archives: Developer

Auto Added by WPeMatico

Introducing the Storage Access API – Microsoft Edge Blog

Today, we’re excited to announce the “first-look” rollout of the Storage Access API in our Canary and Dev channels. For developers, this API allows them to determine whether their access to browser-based storage is restricted by a user’s privacy settings and to request storage access from users if so. This capability can be used to create graceful fallback experiences in cases when storage access may be restricted by features such as tracking prevention in Microsoft Edge. For users, this API provides greater transparency into and control over the sites that are requesting access to browser-based storage that could be used to track their behaviors across the web. This post outlines what the addition of the Storage Access API means for both developers and users.

Using the Storage Access API is as easy as updating your code to leverage the following new functions:
hasStorageAccess()
Useful to check if access to cookies and other storage exists in the current context.
Returns a promise with a boolean result indicating if storage access exists or not.

requestStorageAccess()
Requires a user gesture to invoke.
Useful to request access to storage for a single third-party context.
Returns a promise that will resolve if access is either available or granted and reject if unsuccessful.

Note: Since we are still gradually rolling out the Storage Access API, it’s possible that you may not have it enabled by default on your device. If you want to test it early, please enable the “Storage Access API” flag in edge://flags.
The usage of these new functions is best demonstrated with an example.
Example:
A social media site, contoso.social, offers sites the ability for developers to embed social media widgets as third-party content on their sites. One site where these widgets appear is www.contoso.example. To offer the ability for contoso.social users to comment on, save, or share contoso.example content with friends, contoso.social’s embedded content needs access to its own storage such as cookies or localStorage in the context of contoso.example in order to associate these actions with a visitor’s account.
Checking for Access:
contoso.social can use document.hasStorageAccess() to see if access to storage already exists and to provide an alternative user experience such as displaying a request to login or request access if not:

Requesting Access:
If no storage access is currently present, contoso.social can request access during a user gesture. As an example, the onclick handler of a login button could be tied to a request for storage access (see the “User Experience” section below) using the document.requestStorageAccess() method.

Sandboxing
The allow-storage-access-by-user-activation token can be used to enable the usage of the API when embedded content is loaded in a sandboxed iframe. In practice, both the allow-scripts and allow-same-origin tokens will also be required as well to ensure the API can be effectively used.

As a developer, we hope you will leverage the Storage Access API to create web-based experiences that will continue to be compatible even as browsers place more restrictions on third-party storage.

With the introduction of the Storage Access API, you may notice an “Allow cookies and site data?” prompt like the one below when you interact with third-party content such as social media widgets or embedded videos while browsing:

This indicates that the site whose embedded content you’re interacting with (contoso.social in the example above) currently has its storage restricted by Microsoft Edge’s privacy settings and is requesting your permission to access its storage within the context of the site you’re visiting (https://www.contoso.example in the example above). While several types of sites require storage access for legitimate scenarios such as making sure you’re signed in when you expect to be, allowing this access can allow the site requesting it track your activity on the site you’re currently visiting.
Clicking “Allow” will temporarily allow the requesting site access to its storage on the site you were visiting when the prompt appeared. This allowance will last for a 30-day period after which it will automatically expire. Clicking “Block” will prevent the requesting site from accessing its storage on the site you were visiting when the prompt appeared. If you change your mind, interacting with the third-party content a second time will cause the prompt to be displayed again, giving you the option to revisit your choice.
To give you control over any storage access requests you’ve allowed before they automatically expire, you’ll notice a new “Cookies and site data you’ve temporarily allowed” section at the bottom of the edge://settings/content/cookies page. Here, you can review and revoke the storage access requests you’ve granted in a single list:

We implemented the Storage Access API upstream so that all Chromium-based browsers could benefit from it. We are also actively participating in standardization discussions that are ongoing in the W3C Privacy Community Group to ensure that the API works uniformly across browsers. If you have any feedback on the functionality or capabilities of the API itself, please feel free to join the standardization discussions by filing an issue on GitHub. If you have any feedback on the Storage Access API as it exists in Microsoft Edge, please send us feedback using in-app feedback tool (Alt + Shift + I).
To close, we’d like to thank our friends at Apple and Mozilla for their early work on the Storage Access API and our friends at Google for helping pave the way for getting the API implemented in Chromium. We’re excited for you to try it out and to hear what you think!
–  Brandon Maslen, Senior Software Engineer–  Scott Low, Senior Program Manager

Upgrading to the new Microsoft Edge – Microsoft Edge Blog

The new Microsoft Edge is now out of preview and available for download, with today’s release of our first Stable channel build (Microsoft Edge 79 stable). You can download the new Microsoft Edge today at microsoft.com/edge. In this post, we’ll walk through what you can expect now that the new Edge channel is open – including how the update will roll out, how you can get started testing and what to expect from the preview channels going forward. 
The work of upgrading devices to the new Microsoft Edge across hundreds of millions of Windows PCs around the world won’t happen overnight. Our goal is to make this process as simple and non-intrusive as possible to deliver a great experience, while minimizing risk to users and organizations.  

You can get the new Microsoft Edge for Windows and macOS today by downloading it directly from microsoft.com/edge. When you install Microsoft Edge on an up-to-date Windows 10 device, it will replace the previous (legacy) version on your device. In some cases, you may be prompted to install additional updates. Your favorites, passwords, and basic settings will carry over to the new Microsoft Edge automatically. Web apps (including those built on EdgeHTML), and Microsoft Edge preview channels (such as Dev or Canary) will continue to work without interruption.  
If you’re using Microsoft Edge on iOS or Android, you don’t need to take any action – your device will update automatically. 

If you’d prefer not to install Microsoft Edge manually, you can wait for it to be installed in a future update to Windows 10, following our measured roll-out approach over the next several months. We will start to migrate Windows 10 customers to the new Microsoft Edge in the coming weeks, starting with a subset of Windows Insiders in the Release Preview ring.  
Enterprise and education users will not be automatically upgraded at this time. Contact your administrator for more information on updating to the new Microsoft Edge in your organization. Administrators should refer to the “Enterprise updates and options” section below.  
The new Microsoft Edge will gradually be made available on Windows Update and offered to additional devices as data and feedback indicate that users are having a good experience. If you don’t want to wait, you can get the new Microsoft Edge at microsoft.com/edge. 
Whether you download today or wait for us to upgrade it on your device, your favorites, passwords, and basic settings will carry over to the new Microsoft Edge automatically. The automatic rollout will maintain your default browser setting – if your default is currently set to a browser other than Microsoft Edge, your setting will carry over once the new Microsoft Edge is installed.  
Once you’ve installed Microsoft Edge, it will update independently on a roughly six-week cadence. You can always preview the next major update via the Beta channel—for example, Microsoft Edge 80 will enter the Beta channel soon, and is expected to release to Stable in February. You can learn more about Microsoft Edge preview channels in our previous blog post, What to expect in the new Microsoft Edge Insider channels. 

Organizations are in full control of when the new Microsoft Edge will be deployed to their managed devices. Managed devices will not be automatically updated to the new Microsoft Edge. In addition to managed devices, Enterprise, Education, and Workstation Pro Edition devices will not be automatically updated at this time.  Organizations that would like to block the automatic delivery of the new Microsoft Edge to devices on Home and Pro Editions with Windows Update enabled can do so either via policies or by downloading and deploying the Blocker Toolkit.  Note that Internet Explorer is not impacted by our automatic rollout. 
When you are ready to deploy the new Microsoft Edge, you can learn more about rolling out and managing Microsoft Edge across your organization from our enterprise documentation, and you can download our offline deployment packages and administrative policy templates for configuring Microsoft Edge on Windows and macOS at our enterprise page. Eligible Microsoft 365 customers can also take advantage of Fast Track and App Assure support, launching in Q1 of 2020.    
Once you have deployed the new Microsoft Edge to your organization, you can configure or restrict updates using the Microsoft Edge Update policies. In the future, we plan to include Microsoft Edge built-in to Windows, to be delivered through a future Windows 10 Feature Update for all customers. 
For more guidance on deployment, check out this Microsoft Mechanics interview from Ignite, where host Jeremy Chapman interviews Chuck Friedman, CVP of Microsoft Edge engineering, and walks through deployment demos including Configuration Manager and a new security baseline for Microsoft Edge.  

Whether you’re just trying out the new Microsoft Edge for the first time, or have been with us on this journey over the last year, thank you for getting involved and helping make Microsoft Edge great. We’ve seen exciting momentum in the Chromium project over the last year, landing more than 1900 contributions across areas like accessibility, modern input including touch, speech, digital inking, and many more, and we couldn’t be more excited for what’s next. 
Enterprise administrators and IT professionals can learn more about deploying, managing, and configuring the new Microsoft Edge in your organization at our new enterprise page.  
Web developers can find guidance on incorporating Microsoft Edge into your test matrix in our recent blog post, “Getting your sites ready for the new Microsoft Edge,” as well as more information on new platform capabilities, developer tools, web apps, and more in our web developer documentation. 
Happy browsing! 
– Kyle Pflug, Senior PM Lead, Microsoft Edge 

Get started building extensions for the new Microsoft Edge – Microsoft Edge Blog

Starting today, the Microsoft Edge Addons store is now open for submissions for all developers. This is where users will find your extensions for the new Microsoft Edge. You can submit your extensions today by visiting the Partner Center Developer Dashboard.In most cases, existing extensions built for Chromium will work without any modifications in the new Microsoft Edge. Check out our developer documentation to learn more about Microsoft Edge-specific APIs, tips on submitting your extension, and other helpful information. The extension submission program is in its preview phase and we are excited to hear and incorporate your feedback.
Transitioning your existing extensions to Chromium
As we move towards the general availability of the new Microsoft Edge on January 15th, 2020, we will no longer accept new submissions for Microsoft Edge Legacy (EdgeHTML-based) extensions after December 17th, 2019. We will continue to accept updates for your existing extensions.
We recommend you prioritize building new extensions for the new Chromium-based Microsoft Edge, and continue to support your existing EdgeHTML-based extensions to ensure a quality experience for active users.
Developers who have given consent for Microsoft to migrate their EdgeHTML extension listings to the new Microsoft Edge should begin to see their extensions available in the new Addons store experience in Microsoft Edge. If you publish an EdgeHTML extension and have not received any communication regarding its migration or are unsure of its status, please contact us at [email protected]
If you have already received a confirmation from us regarding migration, we encourage you to log on to the Partner Center Developer Dashboard to validate your access to the extension, and verify whether you can update it. Once the migration is complete, ownership and management will be completely transferred to you, and Microsoft will not be responsible for updating or maintaining your extension.
Migrating extension users to the new Microsoft Edge
We will migrate users’ extensions from the current version of Microsoft Edge when they update to the new Microsoft Edge (starting January 15th). Extensions will only be migrated for users if they are already available on the Microsoft Edge Addons store at the time of switching to the new browser.
We recommend that developers update your existing EdgeHTML extensions for Chromium and publish them via the new portal as soon as possible, so your existing customers will not face any interruptions when they update to the new Microsoft Edge.
Getting started
You can check out our initial developer documentation today, and expect to see more coming soon. If you have any additional questions about the extension submission process, please contact Microsoft Edge Addons Developer Support.
It’s a great time to build for the web, and we look forward to collaborating with you on our new browser!
– Killian McCoy, Program Manager 2– Pratyusha Avadhanula, Senior Program Manager

Join the Microsoft Edge team next week at Ignite 2019 – Microsoft Edge Blog

Next week, we will be travelling to Microsoft Ignite 2019 to share what’s new in Microsoft Edge for enterprises, IT professionals, and web developers. We’re very excited to share more about our journey with Chromium over the past year, what it means to your customers, and to hear your feedback.In this post, we’ve outlined all the breakout sessions and other activities our team will be presenting at Ignite next week, so you can easily track which sessions you want to attend or review later. This year, Ignite is also introducing Roundtable Topics, which are a great opportunity to share your experiences with the product team directly, provide feedback, and help us understand how we can empower you and your organization with Microsoft Edge.
The full list of sessions is provided below. We look forward to seeing you there! Don’t miss out—sign in using your attendee or tech community account to build your Ignite schedule today!

Monday, November 4th
2:00 – 2:45 PM ET: BRK012 – The Web: Where the rubber hits the road on security and manageability, and productivity
Join VP of Product for Microsoft Edge, Chuck Friedman, Group Product leader for Microsoft Edge Enterprise, Sean Lyndersay, and VP of Bing, Jordi Ribas to discuss how Microsoft Edge and Microsoft Search in Bing is the best browser and search for business. We can help you with a systematic approach to identity and security, high-performing intranet and internet searches, and how to think about web and app compatibility on the internet.
3:15 – 4:00 PM ET: BRK1019 – State of the browser: Microsoft Edge
Come learn about the history of Microsoft Edge and the decision to move to Chromium as well as the roadmap for enterprises and show you the 4 pillars of what the team focuses on: Rock solid fundamentals, Safety and Security, Flexible and efficient manageability and deployment, and end-user productivity.
Tuesday, November 5th
11:05 – 11:20 AM ET: MLS1020 – Microsoft Edge and Chromium: What’s new for web developers
In this Microsoft Ignite Live session, Burke Holland will interview Kyle Pflug, PM for Microsoft Edge Developer Experiences, about what the new Chromium foundation means for your web sites and web apps, and how the Microsoft Edge team is working with web standards and the Chromium community to build a better web for everyone.
1:50 – 2:10 PM ET: THR2279 – Mechanics Live: Microsoft Edge and Microsoft Search: Complete tour for IT admins and users
Join Chuck Friedman and Jeremy Chapman to get a comprehensive understanding of the enterprise-focused capabilities in the new Microsoft Edge browser. This is a 20-minute Theater session filmed in the Mechanics Live studio in the hub and you are a part of the experience.
3:05 – 3:25 PM ET: THR108 – Top 10 reasons why you’ll choose the next version of Microsoft Edge
We’re on a mission to create the best browser for the enterprise. We believe the next version of Microsoft Edge is that browser and in this session, we will share the top 10 reasons why.
Roundtable Topics
Wednesday, November 6th
 10:15 – 11:00 AM: BRK2230 – One browser for modern and legacy web apps: deploying Microsoft Edge and IE mode
We have worked with numerous companies – ranging from 1,000’s to 100,000’s of seats – to move from multiple browser environments to a single browser environment. We’ll share lessons learned and best practices for piloting and deploying the next version of Microsoft Edge by leveraging our investments in Internet Explorer mode, Configuration Manager, and Intune.
1:50 – 2:10 PM ET: THR1075 – Enterprise ready PDF solution in Microsoft Edge
Customers have communicated they want a PDF solution in the browser, so they don’t have to manage additional 3rd party software. The Microsoft Edge’s PDF solution will help you understand the investments we’re making so we can accomplish that specific feedback.
Roundtable Topics
Thursday, November 7th
12:45 – 1:30 PM ET: BRK3099 – Moving the web forward: Microsoft Edge for web developers
The next version of Microsoft Edge is built on a new foundation, powered by Chromium. This foundation will empower you with a consistent set of developer tools and enable you to deliver powerful standards-based and hybrid application experiences using web technologies. In this session, we’ll share how our upcoming release simplifies cross-browser testing and enables the latest capabilities for your sites and line of business (LOB) apps, plus our ongoing contributions to Chromium that improve the browser experience for everyone. Finally, we’ll reveal what’s next for web developers in the new Microsoft Edge.
3:40 – 4:00 PM ET: THR106 – Microsoft Edge on macOS
Microsoft Edge will be our first browser for macOS in 13 years. In this session, we share how Microsoft Edge feels at home on macOS, how you can be more productive and secure using it, and what you need to know about managing Microsoft Edge on macOS.
Roundtable Topics
Friday, November 8th
10:15 – 11:00 AM ET: BRK3253 – Protected, productive mobile browsing with Microsoft Edge and Intune
Microsoft Edge isn’t just a desktop browser. The mobile platform has been going strong for close to 2 years. This session will show you the investments we’re making to allow for a full range of experiences starting with management capabilities with Intune, customizing the end user experience, and how to migrate from the Microsoft Intune managed browser to Microsoft Edge.
11:30 AM – 12:15 PM ET: BRK2231 – Keep users productive and data secure in a cloud-first world: secure browsing with Microsoft Edge
Wrap up your Friday with a deep dive on all things security regarding Microsoft Edge. Features such as Application Guard, Conditional Access, and Microsoft Information Protection will be discussed along with other security measures to show you how Microsoft Edge is the most secure browser in the enterprise.
See you there! Don’t forget to sign in using your attendee or tech community account to build your Ignite schedule today!
– Colleen Williams, Senior Program Manager, Microsoft Edge