Bug 1644967 - Allow the use of WINDOW_ID_CURRENT in browser.windows.remove. r=mkmelin a=wsmwk
authorGeoff Lankow <geoff@darktrojan.net>
Fri, 19 Jun 2020 11:40:42 +1200
changeset 39425 ddae43140696965f972aef04eb4c2b1732b634bd
parent 39424 3c83aafae22feafa3dacae5ce17c84977c24a80e
child 39426 3b27eba1a57fc08acb0f9fdac997d81fb4c669ec
push id402
push userclokep@gmail.com
push dateMon, 29 Jun 2020 20:48:04 +0000
reviewersmkmelin, wsmwk
bugs1644967
Bug 1644967 - Allow the use of WINDOW_ID_CURRENT in browser.windows.remove. r=mkmelin a=wsmwk
mail/components/extensions/schemas/windows.json
--- a/mail/components/extensions/schemas/windows.json
+++ b/mail/components/extensions/schemas/windows.json
@@ -415,17 +415,17 @@
         "name": "remove",
         "type": "function",
         "description": "Removes (closes) a window, and all the tabs inside it.",
         "async": "callback",
         "parameters": [
           {
             "type": "integer",
             "name": "windowId",
-            "minimum": 0
+            "minimum": -2
           },
           {
             "type": "function",
             "name": "callback",
             "optional": true,
             "parameters": []
           }
         ]