[epiphany/pgriffis/web-extension-fixes-2: 2/2] WebExtensions: Implement browser.runtime.getURL()




commit d604522f20e12de75bcbefdbfbd5b475090eb915
Author: Patrick Griffis <pgriffis igalia com>
Date:   Mon May 16 13:14:11 2022 -0500

    WebExtensions: Implement browser.runtime.getURL()

 embed/web-process-extension/resources/js/webextensions.js | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/embed/web-process-extension/resources/js/webextensions.js 
b/embed/web-process-extension/resources/js/webextensions.js
index a9cdf481d..56a37d8df 100644
--- a/embed/web-process-extension/resources/js/webextensions.js
+++ b/embed/web-process-extension/resources/js/webextensions.js
@@ -75,6 +75,7 @@ window.browser.notifications = {
 };
 
 window.browser.runtime = {
+    getURL: function (args, cb) { return window.browser.extension.getURL(args, cb); },
     getManifest: function (args, cb) { return '[]'; },
     getBrowserInfo: function (args, cb) { return ephy_message ('runtime.getBrowserInfo', args, cb); },
     onInstalled: {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]