vimac icon indicating copy to clipboard operation
vimac copied to clipboard

Children of <iframe>s within a Safari web page are not fetched

Open dexterleng opened this issue 4 years ago • 1 comments

iframes are represented as AXWebAreas.

Using search predicates + search keys to fetch the element tree of a Safari web page will fetch the AXScrollArea that is the parent of the iframe:

AXWebArea (representing the web content)
  AXButton
  AXButton
  ...
  AXScrollArea (have to fetch its children to get to the iframe)
    AXWebArea (representing iframe)

From my testing, the iframe AXWebArea does not support search predicates. I had to recursively fetch its children which has performance implications when there are many layers of elements.

iframes and their children are fetched by Chrome though.

dexterleng avatar Apr 02 '21 07:04 dexterleng

As a stopgap, would it be possible to give AXWebAreas a single, centered hint?

blackketter avatar Apr 11 '21 18:04 blackketter