[epiphany/pgriffis/web-extension-beastify: 3/5] WebExtensions: Set tabs.TAB_ID_NONE




commit 8ad131ec505b1991414a2b3ea788ad65812b9ba0
Author: Patrick Griffis <pgriffis igalia com>
Date:   Sun May 22 13:41:54 2022 -0500

    WebExtensions: Set tabs.TAB_ID_NONE
    
    Its unused but an expected API.

 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 3420889f8..4c1e221e0 100644
--- a/embed/web-process-extension/resources/js/webextensions.js
+++ b/embed/web-process-extension/resources/js/webextensions.js
@@ -47,6 +47,7 @@ window.browser.tabs = {
       addListener: function (cb) { tabs_listeners.push({callback: cb}); }
     },
     sendMessage: function (...args) { return ephy_message ('tabs.sendMessage', args, null); },
+    TAB_ID_NONE: -1,
 };
 
 window.browser.notifications = {


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