mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
0d0f64c0ed
Since Firefox 109, appending an HTMLElement into an iframe changes the prototype of that element from the HTMLElement of the window where it was created to the HTMLElement of the window of the iframe into which it is appended. This causes the `instanceof HTMLElement` check in `useRef` to fail, as `HTMLElement` refers to the window in which owl is declared. This commit fixes that by adding an extra `instanceof` check that uses the element's ownerDocument window.