Questions tagged [microsoft-edge-extension]

Extension development for Microsoft Edge browser.

This tag is dedicated to questions about extension development for the Microsoft Edge web browser.

Starting with build 14291 for the Windows 10 Insider Preview, a selection of extension is now available for Microsoft Edge. When fully released to mainstream builds of Windows 10, extensions will be available via the Windows Store.

The Microsoft Edge extension API is documented here.

Accessibility: https://learn.microsoft.com/en-us/microsoft-edge/accessibility

Adding and removing extensions for preview builds of Microsoft Edge: https://learn.microsoft.com/en-us/microsoft-edge/extensions/guides/adding-and-removing-extensions

Debugging extensions: https://learn.microsoft.com/en-us/microsoft-edge/extensions/guides/debugging-extensions

Microsoft Edge extension API roadmap: https://learn.microsoft.com/en-us/microsoft-edge/extensions/api-support/extension-api-roadmap

Internationalization: https://learn.microsoft.com/en-us/microsoft-edge/extensions/guides/internationalization

Microsoft browser extension policy: https://learn.microsoft.com/en-us/microsoft-edge/extensions/microsoft-browser-extension-policy

Supported APIs: https://learn.microsoft.com/en-us/microsoft-edge/extensions/api-support/supported-apis

Supported manifest keys: https://learn.microsoft.com/en-us/microsoft-edge/extensions/api-support/supported-manifest-keys

Troubleshooting: https://learn.microsoft.com/en-us/microsoft-edge/extensions/troubleshooting

Package: https://learn.microsoft.com/en-us/microsoft-edge/extensions/guides/packaging

252 questions
2
votes
2 answers

Can't get Edge to Return a Promise in my WebExtension

I am trying to create a new tab using browser.tabs.create() from my background.js WebExtension as shown here: createTab: function () { var newTab = browser.tabs.create({ url: someUrl }); newTab.then(onCreated, onError); } The new tab…
Scott Baker
  • 10,013
  • 17
  • 56
  • 102
2
votes
1 answer

Edge: browserAction.setIcon not working when using a default icon with multiple sizes

I can't get browser.browserAction.setIcon to work in Microsoft Edge when manifest.json is specifying a default icon in multiple sizes: manifest.json { "manifest_version": 2, "name": "test", "version": "0.0.1", "author": "John Doe", …
2
votes
4 answers

How can a Microsoft Edge content script be debugged?

Microsoft has some decent documentation on debugging Content Scripts for an Edge Extension and the top of the page even includes a Channel 9 video on the subject. Unfortunately, the techniques no longer seem to work, as even when following the debug…
Ken
  • 1,691
  • 5
  • 22
  • 38
2
votes
1 answer

Configure UWP Native Messagging App

I'd like to configure an UWP App in order to receive messages from an Edge Extension, and to answer to these messages using some external configurations: I tried to use the Windows Credentials Vault, but it seems impossible to access it (the UWP…
2
votes
1 answer

Edge extension sign failed

I'm porting an existing Chrome extension to Microsoft Edge. The extension works when I load it as temporary extension in Edge. Now I want to pack and sign it. The package has been generated successfully. But when I try to sign it using Windows App…
zhm
  • 3,513
  • 3
  • 34
  • 55
2
votes
1 answer

MS Edge Extension with Native Messaging on Desktop PC - Run UWP App in Background / no UI

We have a classic desktop application on Windows which needs to communicate with the web browsers. Therefore we created web browser extensions and use the native messaging technology to pass messages between the JavaScript on a web page and the…
2
votes
1 answer

Communication between content script and background script in Microsoft Edge

I have a problem with communication based on browser.runtime.connect between a content script and a background script of my test echo extension. I have published my code and extension package on github. Short description of this extension. You can…
2
votes
1 answer

How to prevent default behavior when middle click on a link (browsers' extensions)

In my Firefox's & Google Chrome's extensions I can prevent default behavior when middle click on a link like this: function onClick(e) { var url = getLink(e); if (e.button == 1) { // Middle Click // prevent opening a link …
2
votes
2 answers

browser.tabs undefined in Microsoft Edge extension

I am writing a Microsoft Edge extension. I have the following manifest file: { "author": "", "description": "Test", "name": "Test", "version": "1.0", "permissions": [ "tabs", "" ], …
Jimmyt1988
  • 20,466
  • 41
  • 133
  • 233
2
votes
2 answers

browser.d.ts dependency for Edge web extension APIs browser.runtime.* in typescript

For chrome extension developed using typescript, we need a definition file called chrome.d.ts in typings folder for accessing web extension APIs like chrome.runtime.* or chrome.tabs.*. For edge extension, developing in typescript, we need a…
2
votes
3 answers

How to run Native Messaging example on Microsoft Edge?

I want to run SecureInput example but after I built and deployed NativeMessagingInProcess project, Extension loaded on Edge but secureinput.html file don't load content.js file. And, I checked on regedit, nothing isn't added. Did I do anything…
2
votes
0 answers

Microsoft Edge extension with a UI

Is there a way to show modal dialogs using edge extension with native messaging module? Background I'm working on a enterprise Edge extension that should monitor user for some activity and show a custom modal UI on some conditions. I created a…
2
votes
1 answer

Edge Extension: Need to share credentials with a WPF

I have a WPF app that stores credentials in a local file. I need to be able to access this file from an Edge extension or to somehow communicate the credentials from the WPF to the Edge extension. Can an Edge extension use the File API or is there…
moe
  • 51
  • 3
2
votes
1 answer

Microsoft Edge background.js won't print to console

I'm building an extension for Edge but I am having trouble debugging my background.js. I have not been able to get it to print to the console at all. I am able to print to console just fine through content.js. Here are some console.log statements…
2
votes
0 answers

How should a browser extension "capture" all GET and POSTs to a specific URL?

I want my extension to capture, and inject custom behavior for any GET or POST to a specific URL. Access to these URLs can be done via A mouse click Javascript not written by me Perhaps another extension/plugin I will know, however, the FORM…
1 2
3
16 17