browser(firefox): make Juggler types compliant with protocol viewer (#6626)

Protocol viewer can't handle anonymous objects since it's not clear how
to refer to them.
This commit is contained in:
Andrey Lushnikov 2021-05-17 21:40:29 -07:00 committed by GitHub
parent 50d24387b4
commit debffa7476
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 12 deletions

View File

@ -1,2 +1,2 @@
1252 1253
Changed: joel.einbinder@gmail.com Fri 14 May 2021 08:01:19 AM PDT Changed: aslushnikov@gmail.com Fri 14 May 2021 21:37:19 PM PDT

View File

@ -130,6 +130,11 @@ runtimeTypes.CallFunctionArgument = {
value: t.Any, value: t.Any,
}; };
runtimeTypes.AuxData = {
frameId: t.Optional(t.String),
name: t.Optional(t.String),
};
const axTypes = {}; const axTypes = {};
axTypes.AXTree = { axTypes.AXTree = {
role: t.String, role: t.String,
@ -530,10 +535,7 @@ const Runtime = {
events: { events: {
'executionContextCreated': { 'executionContextCreated': {
executionContextId: t.String, executionContextId: t.String,
auxData: { auxData: runtimeTypes.AuxData,
frameId: t.Optional(t.String),
name: t.Optional(t.String),
},
}, },
'executionContextDestroyed': { 'executionContextDestroyed': {
executionContextId: t.String, executionContextId: t.String,

View File

@ -1,2 +1,2 @@
1262 1263
Changed: joel.einbinder@gmail.com Fri 14 May 2021 08:00:09 AM PDT Changed: aslushnikov@gmail.com Mon 14 May 2021 21:37:09 PM PDT

View File

@ -130,6 +130,11 @@ runtimeTypes.CallFunctionArgument = {
value: t.Any, value: t.Any,
}; };
runtimeTypes.AuxData = {
frameId: t.Optional(t.String),
name: t.Optional(t.String),
};
const axTypes = {}; const axTypes = {};
axTypes.AXTree = { axTypes.AXTree = {
role: t.String, role: t.String,
@ -530,10 +535,7 @@ const Runtime = {
events: { events: {
'executionContextCreated': { 'executionContextCreated': {
executionContextId: t.String, executionContextId: t.String,
auxData: { auxData: runtimeTypes.AuxData,
frameId: t.Optional(t.String),
name: t.Optional(t.String),
},
}, },
'executionContextDestroyed': { 'executionContextDestroyed': {
executionContextId: t.String, executionContextId: t.String,