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
0
votes
0 answers

WebExtension: Howto send a message to background scripts from webpage?

I have read tonns of articles and I'm near by to say, that what I want to do is not possible. But maybe I have overlooked an article with the solution. We have a webclient for intranet solutions which is not bound to a domain I know. Our customers…
0
votes
1 answer

Edge: In-Process native extension and Windows.System.Launcher.LaunchFileAsync

I have developed an edge browser extension (native messaging) using the in-process mechanism as described here (through an activation of OnBackgroundActivated). Within OnBackgroundActivated, or to be more specific in OnAppServiceRequestReceived of…
Sebastian B.
  • 287
  • 4
  • 19
0
votes
1 answer

MS Edge: In-process native messaging

Alongside reading this documentation I am trying to implement an Edge-Browser extension for native messaging to invoke a standard desktop application using Windows.System.Launcher.LaunchFileAsync. I am explicitly not trying to implement the…
0
votes
1 answer

Chrome extension accessing UWP app?

We have chrome and FF extensions which works with a native messaging app. Recently we developed edge extension and a UWP app which works in the same way. Now the user has to install two separate native messaging apps if they want use any…
0
votes
1 answer

Does browser.tabs.update() Trigger the browser.webRequest.onBeforeSendHeaders Event?

I'm developing a web extension for Microsoft Edge; my browser is using EdgeHTML 14.14393. I'm trying to change the User-Agent string in the following code: function useDifferentUserAgent() { var obsh = browser.webRequest.onBeforeSendHeaders; …
0
votes
1 answer

Edge extension: BackgroundTaskInstance cancels with SystemPolicy reason when DesktopBridge app tries to open WebSocket

I created an Edge browser extension which uses Native Messaging to a native app running via a Desktop Bridge technology. I used the SecureInput as a sample, which contains the Edge extension, UWP host and a Win32 Desktop Bridge app. I need the Win32…
Bronx
  • 747
  • 8
  • 12
0
votes
0 answers

Is there any way to ship edge extension with my UWP app?

Is it possible to ship edge extension with my UWP app? I've been working on an app that has edge extension as a core component! I've been wondering if there is any way to directly ship the extension with the UWP app rather than shipping it…
0
votes
2 answers

Is it possible to package and sign an extension for Microsoft Edge?

I have Microsoft Developer subscription, since it isn't yet possible to publish extensions in the store, I would like to distribute them myself. Is it possible? Could I sign appx with valid certificate?
Kesantielu Dasefern
  • 266
  • 1
  • 3
  • 12
0
votes
1 answer

How to load packed (but not signed) Edge extension?

I know how to load unpacked Microsoft Edge extension. Now I have my extension packed (but not signed yet) to a .appx file. Can I load the extension via the .appx file? I tried to open the .appx file by double-click on it, it shows: Installation…
zhm
  • 3,513
  • 3
  • 34
  • 55
0
votes
0 answers

Why isn't my content script block in my Edge extension working?

I have a working extension for Chrome and Firefox and I tried to make it work in Microsoft Edge as well. for some reason the content script stuck on "runtime.sendMessage" function. I have using Edge 40.15063. the Edge console says: "API Call:…
0
votes
0 answers

Alternative of cookies.onChanged in Microsoft Edge

I have an chrome extension and I am porting to Microsoft Edge now. I am using cookies.onChanged.addListener method in chrome. As Microsoft Edge does not support cookies.onChanged API what can be used as an alternative so that I can listen on any…
0
votes
2 answers

browser.extension.getViews({type: "popup"}) is not working for edge extension

Can someone give me some alternative as to how to send a message to a view in edge . I just saw the page for extension.getViews() here. It is incompatible with edge. So what should I use instead of this?
Tarun
  • 1
0
votes
0 answers

Why browser.tabs.query is not working in Edge Extension ?

I am using below function to Get the current tab. /** * Get the current tab. * * @param {function(tabObject)} callback - called when the URL of the current tab * is found. */ function getCurrentTab(callback) { // Query filter to be passed to…
Tarun
  • 1
0
votes
0 answers

How can I clear my browser cache in Microsoft Edge programatically using Javascript?

I was using the below function to clear browser cache from the chrome extension : function clearBrowsingData(callback, sinceTime) { var dataSetToRemove = { "appcache": true, "cache": true }; var removeOptions = { "since": 0 } if…
0
votes
0 answers

Edge extension - how to create downloadable content?

My Edge extension creates PDF files. What's is the best approach to provide a download capability for these files in my extension? I tried: window.navigator.msSaveOrOpenBlob() create link dynamically and assign data URI to the HREF field this…
Evgeny
  • 26
  • 2