зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1363886 - Part 2: Fix a number of async callback parameters schemas r=kmag
MozReview-Commit-ID: JY8r8IePEcw --HG-- extra : rebase_source : e5a031affda3f28fb9eb3ebd0723e64648f20848
This commit is contained in:
Родитель
8a5320360e
Коммит
6c93e76d0c
|
@ -65,9 +65,9 @@ const convertNodeToHistoryItem = node => {
|
||||||
const convertNodeToVisitItem = node => {
|
const convertNodeToVisitItem = node => {
|
||||||
return {
|
return {
|
||||||
id: node.pageGuid,
|
id: node.pageGuid,
|
||||||
visitId: node.visitId,
|
visitId: String(node.visitId),
|
||||||
visitTime: PlacesUtils.toDate(node.time).getTime(),
|
visitTime: PlacesUtils.toDate(node.time).getTime(),
|
||||||
referringVisitId: node.fromVisitId,
|
referringVisitId: String(node.fromVisitId),
|
||||||
transition: getTransition(node.visitType),
|
transition: getTransition(node.visitType),
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -136,13 +136,13 @@
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"name": "result",
|
"name": "result",
|
||||||
"type": "object",
|
"type": "any",
|
||||||
"additionalProperties": {"type": "any"},
|
|
||||||
"description": "The result of evaluation."
|
"description": "The result of evaluation."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "exceptionInfo",
|
"name": "exceptionInfo",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
"optional": true,
|
||||||
"description": "An object providing details if an exception occurred while evaluating the expression.",
|
"description": "An object providing details if an exception occurred while evaluating the expression.",
|
||||||
"properties": {
|
"properties": {
|
||||||
"isError": {
|
"isError": {
|
||||||
|
|
|
@ -58,7 +58,7 @@
|
||||||
"properties": {
|
"properties": {
|
||||||
"id": {"type": "integer", "minimum": -1, "optional": true, "description": "The ID of the tab. Tab IDs are unique within a browser session. Under some circumstances a Tab may not be assigned an ID, for example when querying foreign tabs using the $(ref:sessions) API, in which case a session ID may be present. Tab ID can also be set to $(ref:tabs.TAB_ID_NONE) for apps and devtools windows."},
|
"id": {"type": "integer", "minimum": -1, "optional": true, "description": "The ID of the tab. Tab IDs are unique within a browser session. Under some circumstances a Tab may not be assigned an ID, for example when querying foreign tabs using the $(ref:sessions) API, in which case a session ID may be present. Tab ID can also be set to $(ref:tabs.TAB_ID_NONE) for apps and devtools windows."},
|
||||||
"index": {"type": "integer", "minimum": -1, "description": "The zero-based index of the tab within its window."},
|
"index": {"type": "integer", "minimum": -1, "description": "The zero-based index of the tab within its window."},
|
||||||
"windowId": {"type": "integer", "minimum": 0, "description": "The ID of the window the tab is contained within."},
|
"windowId": {"type": "integer", "optional": true, "minimum": 0, "description": "The ID of the window the tab is contained within."},
|
||||||
"openerTabId": {"unsupported": true, "type": "integer", "minimum": 0, "optional": true, "description": "The ID of the tab that opened this tab, if any. This property is only present if the opener tab still exists."},
|
"openerTabId": {"unsupported": true, "type": "integer", "minimum": 0, "optional": true, "description": "The ID of the tab that opened this tab, if any. This property is only present if the opener tab still exists."},
|
||||||
"selected": {"type": "boolean", "description": "Whether the tab is selected.", "deprecated": "Please use $(ref:tabs.Tab.highlighted).", "unsupported": true},
|
"selected": {"type": "boolean", "description": "Whether the tab is selected.", "deprecated": "Please use $(ref:tabs.Tab.highlighted).", "unsupported": true},
|
||||||
"highlighted": {"type": "boolean", "description": "Whether the tab is highlighted. Works as an alias of active"},
|
"highlighted": {"type": "boolean", "description": "Whether the tab is highlighted. Works as an alias of active"},
|
||||||
|
@ -74,8 +74,8 @@
|
||||||
"incognito": {"type": "boolean", "description": "Whether the tab is in an incognito window."},
|
"incognito": {"type": "boolean", "description": "Whether the tab is in an incognito window."},
|
||||||
"width": {"type": "integer", "optional": true, "description": "The width of the tab in pixels."},
|
"width": {"type": "integer", "optional": true, "description": "The width of the tab in pixels."},
|
||||||
"height": {"type": "integer", "optional": true, "description": "The height of the tab in pixels."},
|
"height": {"type": "integer", "optional": true, "description": "The height of the tab in pixels."},
|
||||||
"sessionId": {"unsupported": true, "type": "string", "optional": true, "description": "The session ID used to uniquely identify a Tab obtained from the $(ref:sessions) API."},
|
"sessionId": {"type": "string", "optional": true, "description": "The session ID used to uniquely identify a Tab obtained from the $(ref:sessions) API."},
|
||||||
"cookieStoreId": {"type": "string", "description": "The CookieStoreId used for the tab."}
|
"cookieStoreId": {"type": "string", "optional": true, "description": "The CookieStoreId used for the tab."}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -506,6 +506,7 @@
|
||||||
{
|
{
|
||||||
"name": "tab",
|
"name": "tab",
|
||||||
"$ref": "Tab",
|
"$ref": "Tab",
|
||||||
|
"optional": true,
|
||||||
"description": "Details about the created tab. Will contain the ID of the new tab."
|
"description": "Details about the created tab. Will contain the ID of the new tab."
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -58,7 +58,7 @@
|
||||||
"properties": {
|
"properties": {
|
||||||
"id": {"type": "integer", "minimum": -1, "optional": true, "description": "The ID of the tab. Tab IDs are unique within a browser session. Under some circumstances a Tab may not be assigned an ID, for example when querying foreign tabs using the $(ref:sessions) API, in which case a session ID may be present. Tab ID can also be set to $(ref:tabs.TAB_ID_NONE) for apps and devtools windows."},
|
"id": {"type": "integer", "minimum": -1, "optional": true, "description": "The ID of the tab. Tab IDs are unique within a browser session. Under some circumstances a Tab may not be assigned an ID, for example when querying foreign tabs using the $(ref:sessions) API, in which case a session ID may be present. Tab ID can also be set to $(ref:tabs.TAB_ID_NONE) for apps and devtools windows."},
|
||||||
"index": {"type": "integer", "minimum": -1, "description": "The zero-based index of the tab within its window."},
|
"index": {"type": "integer", "minimum": -1, "description": "The zero-based index of the tab within its window."},
|
||||||
"windowId": {"type": "integer", "minimum": 0, "description": "The ID of the window the tab is contained within."},
|
"windowId": {"type": "integer", "optional": true, "minimum": 0, "description": "The ID of the window the tab is contained within."},
|
||||||
"openerTabId": {"unsupported": true, "type": "integer", "minimum": 0, "optional": true, "description": "The ID of the tab that opened this tab, if any. This property is only present if the opener tab still exists."},
|
"openerTabId": {"unsupported": true, "type": "integer", "minimum": 0, "optional": true, "description": "The ID of the tab that opened this tab, if any. This property is only present if the opener tab still exists."},
|
||||||
"selected": {"type": "boolean", "description": "Whether the tab is selected.", "deprecated": "Please use $(ref:tabs.Tab.highlighted).", "unsupported": true},
|
"selected": {"type": "boolean", "description": "Whether the tab is selected.", "deprecated": "Please use $(ref:tabs.Tab.highlighted).", "unsupported": true},
|
||||||
"highlighted": {"type": "boolean", "description": "Whether the tab is highlighted. Works as an alias of active."},
|
"highlighted": {"type": "boolean", "description": "Whether the tab is highlighted. Works as an alias of active."},
|
||||||
|
@ -74,8 +74,8 @@
|
||||||
"incognito": {"type": "boolean", "description": "Whether the tab is in an incognito window."},
|
"incognito": {"type": "boolean", "description": "Whether the tab is in an incognito window."},
|
||||||
"width": {"type": "integer", "optional": true, "description": "The width of the tab in pixels."},
|
"width": {"type": "integer", "optional": true, "description": "The width of the tab in pixels."},
|
||||||
"height": {"type": "integer", "optional": true, "description": "The height of the tab in pixels."},
|
"height": {"type": "integer", "optional": true, "description": "The height of the tab in pixels."},
|
||||||
"sessionId": {"unsupported": true, "type": "string", "optional": true, "description": "The session ID used to uniquely identify a Tab obtained from the $(ref:sessions) API."},
|
"sessionId": {"type": "string", "optional": true, "description": "The session ID used to uniquely identify a Tab obtained from the $(ref:sessions) API."},
|
||||||
"cookieStoreId": {"type": "string", "description": "The CookieStoreId used for the tab."}
|
"cookieStoreId": {"type": "string", "optional": true, "description": "The CookieStoreId used for the tab."}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -409,6 +409,7 @@
|
||||||
{
|
{
|
||||||
"name": "tab",
|
"name": "tab",
|
||||||
"$ref": "Tab",
|
"$ref": "Tab",
|
||||||
|
"optional": true,
|
||||||
"description": "Details about the created tab. Will contain the ID of the new tab."
|
"description": "Details about the created tab. Will contain the ID of the new tab."
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -70,7 +70,11 @@
|
||||||
"type": "function",
|
"type": "function",
|
||||||
"name": "callback",
|
"name": "callback",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{ "name": "alarm", "$ref": "Alarm" }
|
{
|
||||||
|
"name": "alarm",
|
||||||
|
"$ref": "Alarm",
|
||||||
|
"optional": true
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -45,7 +45,8 @@
|
||||||
"description": "Represents a cookie store in the browser. An incognito mode window, for instance, uses a separate cookie store from a non-incognito window.",
|
"description": "Represents a cookie store in the browser. An incognito mode window, for instance, uses a separate cookie store from a non-incognito window.",
|
||||||
"properties": {
|
"properties": {
|
||||||
"id": {"type": "string", "description": "The unique identifier for the cookie store."},
|
"id": {"type": "string", "description": "The unique identifier for the cookie store."},
|
||||||
"tabIds": {"type": "array", "items": {"type": "integer"}, "description": "Identifiers of all the browser tabs that share this cookie store."}
|
"tabIds": {"type": "array", "items": {"type": "integer"}, "description": "Identifiers of all the browser tabs that share this cookie store."},
|
||||||
|
"incognito": {"type": "boolean", "description": "Indicates if this is an incognito cookie store"}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -96,7 +96,8 @@
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"referrer": {
|
"referrer": {
|
||||||
"type": "string"
|
"type": "string",
|
||||||
|
"optional": true
|
||||||
},
|
},
|
||||||
"filename": {
|
"filename": {
|
||||||
"description": "Absolute local path.",
|
"description": "Absolute local path.",
|
||||||
|
|
|
@ -46,7 +46,7 @@
|
||||||
"id": "ExtensionType",
|
"id": "ExtensionType",
|
||||||
"description": "The type of this extension. Will always be 'extension'.",
|
"description": "The type of this extension. Will always be 'extension'.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": ["extension"]
|
"enum": ["extension", "theme"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "ExtensionInstallType",
|
"id": "ExtensionInstallType",
|
||||||
|
|
|
@ -332,6 +332,24 @@
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "MatchPatternInternal",
|
||||||
|
"description": "Same as MatchPattern above, but includes moz-extension protocol",
|
||||||
|
"choices": [
|
||||||
|
{
|
||||||
|
"type": "string",
|
||||||
|
"enum": ["<all_urls>"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "string",
|
||||||
|
"pattern": "^(https?|wss?|file|ftp|moz-extension|\\*)://(\\*|\\*\\.[^*/]+|[^*/]+)/.*$"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "string",
|
||||||
|
"pattern": "^file:///.*$"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "ContentScript",
|
"id": "ContentScript",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
|
|
@ -316,6 +316,7 @@
|
||||||
{
|
{
|
||||||
"name": "notifications",
|
"name": "notifications",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
"additionalProperties": {"$ref": "CreateNotificationOptions"},
|
||||||
"description": "The set of notifications currently in the system."
|
"description": "The set of notifications currently in the system."
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
},
|
},
|
||||||
"origins": {
|
"origins": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": { "$ref": "manifest.MatchPattern" },
|
"items": { "$ref": "manifest.MatchPatternInternal" },
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"default": []
|
"default": []
|
||||||
}
|
}
|
||||||
|
|
|
@ -73,7 +73,7 @@
|
||||||
"description": "Information about the requested frame, null if the specified frame ID and/or tab ID are invalid.",
|
"description": "Information about the requested frame, null if the specified frame ID and/or tab ID are invalid.",
|
||||||
"properties": {
|
"properties": {
|
||||||
"errorOccurred": {
|
"errorOccurred": {
|
||||||
"unsupported": true,
|
"optional": true,
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"description": "True if the last navigation in this frame was interrupted by an error, i.e. the onErrorOccurred event fired."
|
"description": "True if the last navigation in this frame was interrupted by an error, i.e. the onErrorOccurred event fired."
|
||||||
},
|
},
|
||||||
|
@ -81,6 +81,14 @@
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "The URL currently associated with this frame, if the frame identified by the frameId existed at one point in the given tab. The fact that an URL is associated with a given frameId does not imply that the corresponding frame still exists."
|
"description": "The URL currently associated with this frame, if the frame identified by the frameId existed at one point in the given tab. The fact that an URL is associated with a given frameId does not imply that the corresponding frame still exists."
|
||||||
},
|
},
|
||||||
|
"tabId": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "The ID of the tab in which the frame is."
|
||||||
|
},
|
||||||
|
"frameId": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "The ID of the frame. 0 indicates that this is the main frame; a positive value indicates the ID of a subframe."
|
||||||
|
},
|
||||||
"parentFrameId": {
|
"parentFrameId": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"description": "ID of frame that wraps the frame. Set to -1 of no parent frame exists."
|
"description": "ID of frame that wraps the frame. Set to -1 of no parent frame exists."
|
||||||
|
@ -118,7 +126,7 @@
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"errorOccurred": {
|
"errorOccurred": {
|
||||||
"unsupported": true,
|
"optional": true,
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"description": "True if the last navigation in this frame was interrupted by an error, i.e. the onErrorOccurred event fired."
|
"description": "True if the last navigation in this frame was interrupted by an error, i.e. the onErrorOccurred event fired."
|
||||||
},
|
},
|
||||||
|
@ -127,6 +135,10 @@
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"description": "The ID of the process runs the renderer for this tab."
|
"description": "The ID of the process runs the renderer for this tab."
|
||||||
},
|
},
|
||||||
|
"tabId": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "The ID of the tab in which the frame is."
|
||||||
|
},
|
||||||
"frameId": {
|
"frameId": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"description": "The ID of the frame. 0 indicates that this is the main frame; a positive value indicates the ID of a subframe."
|
"description": "The ID of the frame. 0 indicates that this is the main frame; a positive value indicates the ID of a subframe."
|
||||||
|
|
Загрузка…
Ссылка в новой задаче