• Robert Knight's avatar
    Fail anchoring in PDFs if there is no quote selector · 47706128
    Robert Knight authored
    Changes in text rendering across PDF.js versions can render position
    selectors invalid. Therefore any anchoring done with position selectors must
    be checked against the quote, as we do with HTML annotations.
    
    This commit disallows anchoring using only position selectors in PDFs
    and restructures `anchor` control flow using async/await to make it
    easier to follow.
    
    We have been capturing quote selectors with PDF annotations forever, so
    there should be no impact on old annotations.
    47706128
Name
Last commit
Last update
..
html-baselines Loading commit data...
fake-pdf-viewer-application.js Loading commit data...
html-anchoring-fixture.html Loading commit data...
html-test.js Loading commit data...
match-quote-test.js Loading commit data...
pdf-test.js Loading commit data...
placeholder-test.js Loading commit data...
text-range-test.js Loading commit data...
types-test.js Loading commit data...
xpath-test.js Loading commit data...