From c376989206ad04b77ed0da8810d322d912f2e56f Mon Sep 17 00:00:00 2001 From: Ilya Kreymer Date: Sun, 16 Jun 2024 20:01:10 -0700 Subject: [PATCH] rewrite: uses wombat.URL instead of window.URL to avoid infinite loop when window.URL is replaced with custom function (fixes webrecorder/replayweb.page#330) --- src/wombat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wombat.js b/src/wombat.js index 83c97c5..e267ffa 100755 --- a/src/wombat.js +++ b/src/wombat.js @@ -1061,7 +1061,7 @@ Wombat.prototype.makeParser = function(maybeRewrittenURL, doc) { Wombat.prototype._makeURLParser = function(url, docElem) { try { - return new this.$wbwindow.URL(url, docElem.baseURI); + return new this.URL(url, docElem.baseURI); } catch (e) {} var p = docElem.createElement('a');