Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a PDFHistory regression with document hashes of the nameddest=... form #9013

Merged
merged 1 commit into from
Oct 10, 2017
Merged

Fix a PDFHistory regression with document hashes of the nameddest=... form #9013

merged 1 commit into from
Oct 10, 2017

Conversation

Snuffleupagus
Copy link
Collaborator

Unfortunately I've just found out that this isn't working entirely correct; my apologies for accidentally breaking this in PR #8775.

Compare e.g. this link: http://mirrors.ctan.org/info/lshort/english/lshort.pdf#page.157, with this one: http://mirrors.ctan.org/info/lshort/english/lshort.pdf#nameddest=page.157.

Notice how in the second case, the history stops working correctly.

The various edge-case regressions in the new PDFHistory code is reminding my why I put off the rewrite for so long :-(

…...` form

Unfortunately I've just found out that this isn't working entirely correct; my apologies for accidentally breaking this in PR 8775.

Compare e.g. this link: http://mirrors.ctan.org/info/lshort/english/lshort.pdf#page.157, with this one: http://mirrors.ctan.org/info/lshort/english/lshort.pdf#nameddest=page.157.

Notice how in the *second* case, the history stops working correctly.

*The various edge-case regressions in the new `PDFHistory` code is reminding my why I put off the rewrite for so long :-(*
@Snuffleupagus Snuffleupagus changed the title Fix a PDFHistory regression with document hashes of nameddest=... form Fix a PDFHistory regression with document hashes of the nameddest=... form Oct 9, 2017
@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

Command cmd_preview from @timvandermeij received. Current queue size: 0

Live output at: http://54.67.70.0:8877/dc2d67dc59bad4f/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/dc2d67dc59bad4f/output.txt

Total script time: 2.35 mins

Published

@timvandermeij
Copy link
Contributor

/botio unittest

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

Command cmd_unittest from @timvandermeij received. Current queue size: 0

Live output at: http://54.67.70.0:8877/f4c047a0a2a01ee/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_unittest from @timvandermeij received. Current queue size: 0

Live output at: http://54.215.176.217:8877/bf2cef2015a0347/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/f4c047a0a2a01ee/output.txt

Total script time: 2.70 mins

  • Unit Tests: Passed

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

Full output at http://54.215.176.217:8877/bf2cef2015a0347/output.txt

Total script time: 6.15 mins

  • Unit Tests: Passed

@timvandermeij timvandermeij merged commit 853db85 into mozilla:master Oct 10, 2017
@timvandermeij
Copy link
Contributor

Thank you for fixing this!

The various edge-case regressions in the new PDFHistory code is reminding my why I put off the rewrite for so long :-(

The rewrite did bring us modern and more understandable/maintainable code that is also partly unit tested. I see this as a major improvement over the old situation that had hard-to-fix issues. Big rewrites always have a higher risk for regressions, but in this case I think there are relatively few of them and they are easily fixable, so don't worry about it too much! :-)

@Snuffleupagus Snuffleupagus deleted the PDFHistory-nameddest branch October 11, 2017 08:54
@Snuffleupagus
Copy link
Collaborator Author

@timvandermeij As always, thanks a lot for reviewing :-)

movsb pushed a commit to movsb/pdf.js that referenced this pull request Jul 14, 2018
Fix a `PDFHistory` regression with document hashes of the `nameddest=...` form
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants