[epiphany/pgriffis-master-patch-48709] WebExtensions: Fix double definition of browser.windows




commit ce4f13ea5453233c7891e6fda2b97c5cf96a561a
Author: Patrick Griffis <pgriffis igalia com>
Date:   Sun Jun 12 01:52:52 2022 +0000

    WebExtensions: Fix double  definition of browser.windows

 embed/web-process-extension/resources/js/webextensions.js | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/embed/web-process-extension/resources/js/webextensions.js 
b/embed/web-process-extension/resources/js/webextensions.js
index 0d3f738ce..2a971b196 100644
--- a/embed/web-process-extension/resources/js/webextensions.js
+++ b/embed/web-process-extension/resources/js/webextensions.js
@@ -101,10 +101,6 @@ window.browser.browserAction = {
     onClicked: new EphyEventListener (),
 };
 
-window.browser.windows = {
-  WINDOW_ID_CURRENT: -2, /* Matches Firefox, used in tabs.c. */
-};
-
 window.browser.permissions = {
     contains: function (...args) { return ephy_message ('permissions.contains', args); },
     getAll: function (...args) { return ephy_message ('permissions.getAll', args); },
@@ -125,6 +121,7 @@ window.browser.windows = {
     onCreated: new EphyEventListener (),
     onRemoved: new EphyEventListener (),
     onFocusChanged: new EphyEventListener (),
+    WINDOW_ID_CURRENT: -2, /* Matches Firefox, used in tabs.c. */
 };
 
 window.browser.cookies = {


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