Closed ato closed 7 months ago
This is actually wombat issue. This can be fixed similar to other APIs - need to override the IntersectionObserver constructor and 'de-proxy' the options.root parameter.
Fixed in 3.7.1. Tested in wabac.js and pywb live proxy modes.
Thanks for the fix. Much appreciated. Confirming that with pywb 2.7.4 + wombat 3.7.1 the page content now displays for the WARC we discovered this issue on.
Expected behavior
https://www.mirandaluby.com/ (hosted on https://www.journoportfolio.com/) should fully replay
What actually happened
Checking the JS console a TypeError is thrown in the following call:
Exception in Chrome:
Exception in Firefox:
I set a breakpoint and checked the value of
document
on both the live site and during replay. During replay it's a Proxy(HTMLDocument) and on live site it's a plain HTMLDocument. So seemingly the problem is we're using a proxy to hook document and IntersectionObserver won't accept Proxy(HTMLDocument) as a value for theroot
option.Browser
Desktop
Desktop