Bug 1461693 - add missing params to changeInfo for tabs.onUpdated, r?rpl draft
authorShane Caraveo <scaraveo@mozilla.com>
Mon, 21 May 2018 12:53:08 -0400
changeset 797792 e1d10e7ef44a27e31e1e0ceb5bc3670971674632
parent 797745 77c06979d9e88979ec96263eccdbd750cb9221a4
push id110570
push usermixedpuppy@gmail.com
push dateMon, 21 May 2018 16:53:34 +0000
reviewersrpl
bugs1461693
milestone62.0a1
Bug 1461693 - add missing params to changeInfo for tabs.onUpdated, r?rpl MozReview-Commit-ID: 1brjyYc7PwW
browser/components/extensions/schemas/tabs.json
--- a/browser/components/extensions/schemas/tabs.json
+++ b/browser/components/extensions/schemas/tabs.json
@@ -1393,50 +1393,73 @@
         "description": "Fired when a tab is updated.",
         "parameters": [
           {"type": "integer", "name": "tabId", "minimum": 0},
           {
             "type": "object",
             "name": "changeInfo",
             "description": "Lists the changes to the state of the tab that was updated.",
             "properties": {
-              "status": {
-                "type": "string",
+              "audible": {
+                "type": "boolean",
                 "optional": true,
-                "description": "The status of the tab. Can be either <em>loading</em> or <em>complete</em>."
+                "description": "The tab's new audible state."
               },
               "discarded": {
                 "type": "boolean",
                 "optional": true,
                 "description": "True while the tab is not loaded with content."
               },
-              "url": {
+              "favIconUrl": {
                 "type": "string",
                 "optional": true,
-                "description": "The tab's URL if it has changed."
+                "permissions": ["tabs"],
+                "description": "The tab's new favicon URL. This property is only present if the extension's manifest includes the <code>\"tabs\"</code> permission."
+              },
+              "hidden": {
+                "type": "boolean",
+                "optional": true,
+                "description": "The tab's new hidden state."
+              },
+              "isArticle": {
+                "type": "boolean",
+                "optional": true,
+                "description": "Whether the document in the tab can be rendered in reader mode."
+              },
+              "mutedInfo": {
+                "$ref": "MutedInfo",
+                "optional": true,
+                "description": "The tab's new muted state and the reason for the change."
               },
               "pinned": {
                 "type": "boolean",
                 "optional": true,
                 "description": "The tab's new pinned state."
               },
-              "audible": {
-                "type": "boolean",
+              "sharingState": {
+                "$ref": "SharingState",
                 "optional": true,
-                "description": "The tab's new audible state."
+                "description": "The tab's new sharing state for screen, microphone and camera."
               },
-              "mutedInfo": {
-                "$ref": "MutedInfo",
-                "optional": true,
-                "description": "The tab's new muted state and the reason for the change."
-              },
-              "favIconUrl": {
+              "status": {
                 "type": "string",
                 "optional": true,
-                "description": "The tab's new favicon URL."
+                "description": "The status of the tab. Can be either <em>loading</em> or <em>complete</em>."
+              },
+              "title": {
+                "type": "string",
+                "optional": true,
+                "permissions": ["tabs"],
+                "description": "The title of the tab if it has changed. This property is only present if the extension's manifest includes the <code>\"tabs\"</code> permission."
+              },
+              "url": {
+                "type": "string",
+                "optional": true,
+                "permissions": ["tabs"],
+                "description": "The tab's URL if it has changed. This property is only present if the extension's manifest includes the <code>\"tabs\"</code> permission."
               }
             }
           },
           {
             "$ref": "Tab",
             "name": "tab",
             "description": "Gives the state of the tab that was updated."
           }