Index: toolkit/components/extensions/schemas/runtime.json |
=================================================================== |
--- a/toolkit/components/extensions/schemas/runtime.json |
+++ b/toolkit/components/extensions/schemas/runtime.json |
@@ -154,16 +154,40 @@ |
"id": { |
"type": "string", |
"allowedContexts": ["content", "devtools"], |
"description": "The ID of the extension/app." |
} |
}, |
"functions": [ |
{ |
+ "name": "abbRegisterRequestListener", |
+ "type": "function", |
+ "allowedContexts": ["content", "devtools"], |
Thomas Greiner
2018/08/27 15:24:42
From what I understood we only need to communicate
diegocarloslima
2018/08/27 21:19:17
If I dont add at least the 'content' context, I ca
Thomas Greiner
2018/08/28 10:36:07
That's odd because "content" seems to refer to con
|
+ "description": "Function required to listen to Android requests. See https://issues.adblockplus.org/ticket/6865", |
Thomas Greiner
2018/08/27 15:24:42
Suggestion: The naming confused me at first becaus
diegocarloslima
2018/08/27 21:19:17
I will rename 'abbSendRequest' to 'sendAbbMessage'
Thomas Greiner
2018/08/28 10:36:07
Sounds good. :)
|
+ "parameters": [ |
+ { |
+ "name": "listener", |
+ "type": "function" |
+ } |
+ ] |
+ }, |
+ { |
+ "name": "abbSendRequest", |
+ "type": "function", |
+ "allowedContexts": ["content", "devtools"], |
+ "description": "Function required to send requests to Android. See https://issues.adblockplus.org/ticket/6865", |
+ "parameters": [ |
+ { |
+ "name": "type", |
+ "type": "string" |
+ } |
+ ] |
+ }, |
+ { |
"name": "getBackgroundPage", |
"type": "function", |
"description": "Retrieves the JavaScript 'window' object for the background page running inside the current extension/app. If the background page is an event page, the system will ensure it is loaded before calling the callback. If there is no background page, an error is set.", |
"async": "callback", |
"parameters": [ |
{ |
"type": "function", |
"name": "callback", |