mozilla / fathom

A framework for extracting meaning from web pages
http://mozilla.github.io/fathom/
Mozilla Public License 2.0
1.97k stars 76 forks source link

Make Fathom see into iframes #259

Open erikrose opened 4 years ago

erikrose commented 4 years ago

Fathom's input comes from querySelector calls. Those cannot penetrate into iframes of different origins due to the same-origin policy. See if we can get around that somehow, perhaps with privileged code. It would be useful for credit-card autofill.

We should be able to see into iframes of the same origin. Confirm this is the case.

DimiDL commented 2 years ago

To make this issue more clear:

To support penetrate same-origin iframes, the solutions I can think of currently is either extending the querySelector call to include iframes, Ex, querySelector("iframe").contentDocument.querySelector(selector) or performing vectorization in every same-origin document.