browser(firefox): a11y haspopup is a string, not a boolean (#15056)
This commit is contained in:
parent
7bd72716f9
commit
141093a1cd
|
|
@ -1,2 +1,2 @@
|
||||||
1329
|
1330
|
||||||
Changed: dgozman@gmail.com Thu Jun 2 16:19:39 PDT 2022
|
Changed: dgozman@gmail.com Wed Jun 22 16:26:54 PDT 2022
|
||||||
|
|
|
||||||
|
|
@ -869,7 +869,6 @@ class PageAgent {
|
||||||
'focused',
|
'focused',
|
||||||
'pressed',
|
'pressed',
|
||||||
'focusable',
|
'focusable',
|
||||||
'haspopup',
|
|
||||||
'required',
|
'required',
|
||||||
'invalid',
|
'invalid',
|
||||||
'modal',
|
'modal',
|
||||||
|
|
@ -906,7 +905,7 @@ class PageAgent {
|
||||||
if (numericalProperty in attributes)
|
if (numericalProperty in attributes)
|
||||||
tree[numericalProperty] = parseFloat(attributes[numericalProperty]);
|
tree[numericalProperty] = parseFloat(attributes[numericalProperty]);
|
||||||
}
|
}
|
||||||
for (const stringProperty of ['tag', 'roledescription', 'valuetext', 'orientation', 'autocomplete', 'keyshortcuts']) {
|
for (const stringProperty of ['tag', 'roledescription', 'valuetext', 'orientation', 'autocomplete', 'keyshortcuts', 'haspopup']) {
|
||||||
if (stringProperty in attributes)
|
if (stringProperty in attributes)
|
||||||
tree[stringProperty] = attributes[stringProperty];
|
tree[stringProperty] = attributes[stringProperty];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -149,7 +149,7 @@ axTypes.AXTree = {
|
||||||
focused: t.Optional(t.Boolean),
|
focused: t.Optional(t.Boolean),
|
||||||
pressed: t.Optional(t.Boolean),
|
pressed: t.Optional(t.Boolean),
|
||||||
focusable: t.Optional(t.Boolean),
|
focusable: t.Optional(t.Boolean),
|
||||||
haspopup: t.Optional(t.Boolean),
|
haspopup: t.Optional(t.String),
|
||||||
required: t.Optional(t.Boolean),
|
required: t.Optional(t.Boolean),
|
||||||
invalid: t.Optional(t.Boolean),
|
invalid: t.Optional(t.Boolean),
|
||||||
modal: t.Optional(t.Boolean),
|
modal: t.Optional(t.Boolean),
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
1327
|
1328
|
||||||
Changed: dgozman@gmail.com Thu Jun 2 16:19:39 PDT 2022
|
Changed: dgozman@gmail.com Wed Jun 22 16:26:54 PDT 2022
|
||||||
|
|
|
||||||
|
|
@ -869,7 +869,6 @@ class PageAgent {
|
||||||
'focused',
|
'focused',
|
||||||
'pressed',
|
'pressed',
|
||||||
'focusable',
|
'focusable',
|
||||||
'haspopup',
|
|
||||||
'required',
|
'required',
|
||||||
'invalid',
|
'invalid',
|
||||||
'modal',
|
'modal',
|
||||||
|
|
@ -906,7 +905,7 @@ class PageAgent {
|
||||||
if (numericalProperty in attributes)
|
if (numericalProperty in attributes)
|
||||||
tree[numericalProperty] = parseFloat(attributes[numericalProperty]);
|
tree[numericalProperty] = parseFloat(attributes[numericalProperty]);
|
||||||
}
|
}
|
||||||
for (const stringProperty of ['tag', 'roledescription', 'valuetext', 'orientation', 'autocomplete', 'keyshortcuts']) {
|
for (const stringProperty of ['tag', 'roledescription', 'valuetext', 'orientation', 'autocomplete', 'keyshortcuts', 'haspopup']) {
|
||||||
if (stringProperty in attributes)
|
if (stringProperty in attributes)
|
||||||
tree[stringProperty] = attributes[stringProperty];
|
tree[stringProperty] = attributes[stringProperty];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -149,7 +149,7 @@ axTypes.AXTree = {
|
||||||
focused: t.Optional(t.Boolean),
|
focused: t.Optional(t.Boolean),
|
||||||
pressed: t.Optional(t.Boolean),
|
pressed: t.Optional(t.Boolean),
|
||||||
focusable: t.Optional(t.Boolean),
|
focusable: t.Optional(t.Boolean),
|
||||||
haspopup: t.Optional(t.Boolean),
|
haspopup: t.Optional(t.String),
|
||||||
required: t.Optional(t.Boolean),
|
required: t.Optional(t.Boolean),
|
||||||
invalid: t.Optional(t.Boolean),
|
invalid: t.Optional(t.Boolean),
|
||||||
modal: t.Optional(t.Boolean),
|
modal: t.Optional(t.Boolean),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue