[epiphany/pgriffis/web-extension/tabs: 10/12] WebExtensions: Implement tabs.getCurrent()




commit e978210ffa4e2537316e8752af26143b741e3085
Author: Patrick Griffis <pgriffis igalia com>
Date:   Thu Jun 2 17:38:02 2022 -0500

    WebExtensions: Implement tabs.getCurrent()
    
    Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1125>

 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 952993ad6..ca9016851 100644
--- a/embed/web-process-extension/resources/js/webextensions.js
+++ b/embed/web-process-extension/resources/js/webextensions.js
@@ -22,6 +22,7 @@ window.browser.tabs = {
     executeScript: function (...args) { return ephy_message ('tabs.executeScript', args); },
     query: function (...args) { return ephy_message ('tabs.query', args); },
     get: function (...args) { return ephy_message ('tabs.get', args); },
+    getCurrent: function (...args) { return undefined; /* Until we support Option Pages this is correct. */ 
},
     insertCSS: function (...args) { return ephy_message ('tabs.insertCSS', args); },
     remove: function (...args) { return ephy_message ('tabs.remove', args); },
     removeCSS: function (...args) { return ephy_message ('tabs.removeCSS', args); },


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