1. 25 Jul, 2017 2 commits
    • Sean Roberts's avatar
      Merge pull request #507 from hypothesis/ie-11-baseuri-fix · 819c791a
      Sean Roberts authored
      Fix IE 11 regression in documents without a `<base>` element.
      819c791a
    • Robert Knight's avatar
      Fix IE 11 regression in documents without a `<base>` element. · dad6ef61
      Robert Knight authored
      `Document#uri` and `Document#getMetadata` returned the base URI rather
      than the document's real URL as the document location if the protocol of
      the base URI and true document location were different. The reason for
      this was to support the use case where the document is an iframe loaded
      from a `blob:` URL, which Readium does for example.
      
      This broke in IE 11 if the document did not have a `<base>` element
      because the fallback `Node.baseURI` and `Document.documentURI`
      properties used by `document-base-uri` do not exist in that browser.
      
      This commit re-works the behavior of `_getDocumentHref` to be more
      conservative and return the base URI only if a) the
      document location does not have a whitelisted scheme and b) the base URI
      is defined and does have a whitelisted scheme.
      
      Additionally, the tests have been re-worked to test the public `uri`
      method instead of the private `_getDocumentHref` method and use test
      seams instead of proxyquire.
      dad6ef61
  2. 20 Jul, 2017 2 commits
  3. 19 Jul, 2017 2 commits
  4. 18 Jul, 2017 1 commit
    • Juan Corona's avatar
      Use a URN derived from DublinCore meta tags for creating equivalent links... · 7b9cbbb7
      Juan Corona authored
      Use a URN derived from DublinCore meta tags for creating equivalent links across documents that provide ‘dc:source’ and ‘dc:identifier’ tags
      
      This link is now the documentIdentifier for non-PDF cases for the document metadata. This metadata is shared with the sidebar, making this link appear in the list of links for the Search API calls
      7b9cbbb7
  5. 17 Jul, 2017 4 commits
  6. 14 Jul, 2017 9 commits
  7. 13 Jul, 2017 6 commits
  8. 12 Jul, 2017 2 commits
  9. 11 Jul, 2017 12 commits