Bug 1520367 followup - Change mailTabs schema to use defined type; r=Fallen
authorGeoff Lankow <geoff@darktrojan.net>
Tue, 22 Jan 2019 17:08:27 +1300
changeset 33409 21ddeb46254b
parent 33408 a0a854d99ee0
child 33410 9945bbe9adaf
push id2368
push userclokep@gmail.com
push dateMon, 28 Jan 2019 21:12:50 +0000
treeherdercomm-beta@56d23c07d815 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersFallen
bugs1520367
Bug 1520367 followup - Change mailTabs schema to use defined type; r=Fallen
mail/components/extensions/schemas/mailTabs.json
--- a/mail/components/extensions/schemas/mailTabs.json
+++ b/mail/components/extensions/schemas/mailTabs.json
@@ -105,31 +105,19 @@
             "optional": true,
             "minimum": 1
           },
           {
             "name": "updateProperties",
             "type": "object",
             "properties": {
               "displayedFolder": {
-                "type": "object",
+                "$ref": "accounts.MailFolder",
                 "description": "Sets the folder displayed in the tab. The extension must have an accounts permission to do this.",
-                "optional": true,
-                "properties": {
-                  "accountId": {
-                    "type": "string"
-                  },
-                  "name": {
-                    "type": "string",
-                    "optional": true
-                  },
-                  "path": {
-                    "type": "string"
-                  }
-                }
+                "optional": true
               },
               "sortType": {
                 "type": "string",
                 "description": "Sorts the list of messages. <var>sortOrder</var> must also be given.",
                 "optional": true,
                 "enum": [
                   "none",
                   "date",