• Robert Knight's avatar
    Always use current `document.baseURI` in `HTMLMetadata` · 4349ffff
    Robert Knight authored
    `HTMLMetadata` read `document.baseURI` only once in the constructor,
    risking issues to the cached value becoming stale. `document.baseURI` is
    available in all supported browsers and is easily mocked where needed in
    tests, so just always read the current value when needed.
    
    Also remove a `normalizeURI` test seam that was unused. If we did want
    to mock this in future we'd use the `$imports` object as we do in other
    tests.
    4349ffff
Name
Last commit
Last update
..
test Loading commit data...
html-metadata.js Loading commit data...
html.js Loading commit data...
pdf-metadata.js Loading commit data...
pdf.js Loading commit data...