microsoft-edge-extension

When should I start a native message host when targeting both Google Chrome and Edge Chromium?

一曲冷凌霜 提交于 2021-01-29 08:34:37
问题 I have a Google Chrome Extension which uses a native host. This is used only on a windows box and the extension's registry settings are added along with the installation of the native host exe. Currently the the port (chrome.runtime.connectNative) or native host is started when the extensions background script is loaded. This currently means that the native host runs whenever Google Chrome is running. The extension is used for only 1 website "www.example.com" and so content scripts only run

Unable to get property 'sendMessage' of undefined or null reference

喜你入骨 提交于 2021-01-07 02:50:04
问题 While trying to use browser.runtime.sendmessage(object) function above error occurs. Runtime API is not available and I see that web runtime API is available on a web page. This error occurs in Microsoft Edge and not in other browsers in content scripts. 来源: https://stackoverflow.com/questions/64608103/unable-to-get-property-sendmessage-of-undefined-or-null-reference

Unable to get property 'sendMessage' of undefined or null reference

假装没事ソ 提交于 2021-01-07 02:49:06
问题 While trying to use browser.runtime.sendmessage(object) function above error occurs. Runtime API is not available and I see that web runtime API is available on a web page. This error occurs in Microsoft Edge and not in other browsers in content scripts. 来源: https://stackoverflow.com/questions/64608103/unable-to-get-property-sendmessage-of-undefined-or-null-reference

What notice does a user get from distributed Edge Chromium Extension with an MSI through the registry?

拈花ヽ惹草 提交于 2020-06-17 06:29:11
问题 When the registry keys for an extension are added for Chrome the user is notified of this the next time they start Chrome. This does not happen for Edge Chromium. TEST - App in Microsoft Store - Registry Install Take this one for example with ID amnbcmdbanbkjhnfoeceemmmdiepnbpp Use the following to register it in the Registry. [HKEY_CURRENT_USER\Software\Microsoft\Edge\Extensions\amnbcmdbanbkjhnfoeceemmmdiepnbpp] "update_url"="https://edge.microsoft.com/extensionwebstorebase/v1/crx" Start

Microsoft Edge Extension with native messaging and non-persistent connection does not work

本小妞迷上赌 提交于 2020-01-25 06:49:25
问题 I have created a Microsoft Edge Extension with native messaging but I cannot make it work with non-persistent connections. The example given here is not useful in my particular case: The example (Random Number Generator) shows how two UWP applications can communicate where the client communicates with the server when the server is already running. In Edge Extensions with Native Messaging (and mine is based on the Digital Signing and Secure Input examples), I have a W32 applications where the

Does Microsoft Edge support userscripts? [closed]

試著忘記壹切 提交于 2020-01-14 07:48:07
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 3 years ago . Did Microsoft announce whether Edge supports userscripts? Doesn't matter if via plugins (similar to Greasemonkey in Firefox or Tampermonkey in Chrome) or as an out-of-the-box feature. 回答1: April 2016: Windows 10 Build 14291 now supports Extensions in Microsoft Edge As

Edge Extension Native Messaging: Dealing with UWP message size limit

蓝咒 提交于 2020-01-05 07:53:18
问题 I am developing an extension for Edge where I need to send more than 1MB of data to the extension from UWP. I have chunked the data to be less than 1MB and tried to send reply multiple times something like below private async void OnAppServiceRequestReceived(AppServiceConnection sender, AppServiceRequestReceivedEventArgs args) { AppServiceDeferral messageDeferral = args.GetDeferral(); // This is to be replaced with enumerator for (int i = 0; i < number_of_chunks; i++) { // construct reply

Microsoft Edge notification in an extension

馋奶兔 提交于 2019-12-25 08:17:05
问题 Can I use notifications in an Edge extension? I'm converting a chrome extension to Edge and this extension uses notifications but it's crashing in Edge. After some research I found Edge notifications are different from chrome. So I created a test html page and ran it on IIS localhost. <!DOCTYPE html> <html lang="en-US"> <head> <meta charset="UTF-8" /> <title>Test Notifications</title> </head> <body> <script> if ( "Notification" in window ) { let ask = Notification.requestPermission(); ask

Microsoft Edge Extension tab content

我们两清 提交于 2019-12-25 04:27:08
问题 I am exploring a bit on Microsoft Edge extension development. Basically I am trying to read HTML content of a tab. Below is code snippet from my solution. My manifest.json looks likes below { "name" : "HTML Reader", "version" : "1.0.0.0", "author" : "Stack Memory", "browser_action" : { "default_icon" : { "20" : "icon_20.png", "40" : "icon_40.png" }, "default_title" : "Sample extension", "default_popup" : "index.html" }, "content_scripts" : [{ "js" : ["js/index.js"], "matches" : ["*://*/*"] }

Microsoft Edge Extension tab content

不问归期 提交于 2019-12-25 04:27:02
问题 I am exploring a bit on Microsoft Edge extension development. Basically I am trying to read HTML content of a tab. Below is code snippet from my solution. My manifest.json looks likes below { "name" : "HTML Reader", "version" : "1.0.0.0", "author" : "Stack Memory", "browser_action" : { "default_icon" : { "20" : "icon_20.png", "40" : "icon_40.png" }, "default_title" : "Sample extension", "default_popup" : "index.html" }, "content_scripts" : [{ "js" : ["js/index.js"], "matches" : ["*://*/*"] }