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
Changed: joel.einbinder@gmail.com Fri 14 May 2021 08:01:19 AM PDT
1253
Changed: aslushnikov@gmail.com Fri 14 May 2021 21:37:19 PM PDT

View File

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

View File

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

View File

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