webrecorder / wombat

Wombat.js client-side rewriting library
GNU Affero General Public License v3.0
81 stars 31 forks source link

Fix resolveRelUrl using invalid URL for rewriting #139

Closed ikreymer closed 3 months ago

ikreymer commented 3 months ago

It is possible for resolveRelUrl() to end up with an invalid URL from passed in document, which can not be used to make a valid rewriting URL, eg. about:blank, etc.. This results in an invalid URL being used for base URL.