wombat icon indicating copy to clipboard operation
wombat copied to clipboard

possible issue with path to wombatWorkers.js (on Wayback Machine)

Open mhnestler opened this issue 5 months ago • 0 comments

First of all, I apologize because I don't really know if this is a bug in your project wombat or a problem at the Internet Archive Wayback Machine. If it's the latter, my hope is that you have some internal channels to contact them.

Symptoms:

In this example, the page is https://web.archive.org/web/20230219022944/https://docs.mapbox.com/help/getting-started/mapbox-data/.

Browser console contains this error (Firefox): Loading script from “https://web-static.archive.org/_static/wombatWorkers.js” with importScripts() was blocked because of a disallowed MIME type (“text/html”).

In fact, https://web-static.archive.org/_static/wombatWorkers.js is a 404 not found.

In the Debugger pane, the worker source begins with this inserted string: (function() { self.importScripts('https://web-static.archive.org/_static/wombatWorkers.js'); new WBWombat({'prefix': 'https://web.archive.org/web/', 'prefixMod': 'https://web.archive.org/web/wkrf_/', 'originalURL': 'https://docs.mapbox.com/help/getting-started/mapbox-data/'}); })();

This appears to prevent the rest of the worker code from being reached.

The importScripts... insertion seems to originate from the minified https://web-static.archive.org/_static/js/wombat.js.

Impact

Unconfirmed, but I expect it prevents any webworker-dependent functionality on the archived site from working.

Bug?

Perhaps the URL for wombatWorker.js is written incorrectly, leading to the 404?

Or perhaps the Internet Archive incorrectly deployed Wombat and the necessary wombatWorker.js file is just missing?

Or maybe I'm mistaken about something else.

Thanks very much for your time.

mhnestler avatar Sep 10 '24 15:09 mhnestler