webrecorder / archiveweb.page

A High-Fidelity Web Archiving Extension for Chrome and Chromium based browsers!
https://chrome.google.com/webstore/detail/webrecorder/fpeoodllldobpkbkabpblcfaogecpndd
GNU Affero General Public License v3.0
864 stars 61 forks source link

sync xhr not supported in Chrome #184

Open edsu opened 1 year ago

edsu commented 1 year ago

I noticed that this WACZ https://edsu-webarchives.s3.amazonaws.com/tmp/maui-test.wacz (created with ArchiveWebPage v0.11.2) plays back fine in ReplayWebPage (Firefox)

https://replayweb.page/?source=https%3A%2F%2Fedsu-webarchives.s3.amazonaws.com%2Ftmp%2Fmaui-test.wacz#view=info&url=https%3A%2F%2Fwww.mauicounty.gov%2FCivicAlerts.aspx%3FAID%3D12742

Screenshot 2023-08-29 at 3 22 19 PM

But when I import it into ArchiveWebPage (Chrome) the page displays a Page Loading message and fails to fully render.

Screenshot 2023-08-29 at 3 03 09 PM

It appears that issue is that ReplayWebPage doesn't support sync xhr in Chrome (see below).

ikreymer commented 1 year ago

It seems like a Chrome vs Firefox issue -- the replay doesn't work in Chrome in RWP either, but does work in Firefox.

ikreymer commented 1 year ago

A likely cause is the use of sync xhr, as evidenced by the console output: https://github.com/webrecorder/wombat/blob/main/src/wombat.js#L4462

edsu commented 1 year ago

Ah, that makes sense Firefox vs Chrome! I will update the issue title & description to reflect the actual problem. If it's already a known issue please feel free to close.

ikreymer commented 4 months ago

No real workaround, must be fixed in chromium: https://issues.chromium.org/issues/40464398