-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
[Regression] Text-selection boxes visually overlap after PR 17533 #17561
Comments
This has not made its way to Firefox yet, right? |
Correct. |
I think this regression is acceptable with regard to the improvement we've in HCM and it helps to see the caret to make highlighting possible with the keyboard. |
Given the above, should we still mark this as a release blocker? I'm planning to make a new release tomorrow, and if this does block a new release I'll postpone that action. Edit: Given the other release blocker ticket, I'll postpone the release with a week anyway and then see where we are. |
I don't really agree with that assessment, since we have potential regressions for the majority of users this way.
Unfortunately it can be a lot worse than just a minor annoyance in some cases, please see an example further below.
Would it be feasible to only apply the new styles in HCM, to avoid affecting "normal" browsing?
The problem is that it still won't fix these types of issues generally, since glyphs are often positioned absolutely and that means that we'll never get rid of all overlapping text-selection boxes. The example that I used in this issue contained vertical overlap, but it could just as well be horizontal overlap which can look a lot worse. The following is an especially problematical example, since it uses Type3 fonts, but it does illustrate (much better) why we "need" to do something about it: https://github.com/mozilla/pdf.js/files/1274923/SMPembedded.2006.10.09b.pdf |
And for your information, I have a potential fix for the selection issue in Chrome. |
I agree we should avoid shipping this regression to users. I have filed https://bugzilla.mozilla.org/show_bug.cgi?id=1878258 to track this regression so that we make sure it is fixed before we release Firefox 124 (which currently includes the regression). That said, we are considering the regression less severe than the improvement because while it's true that the regression affects a larger number of users, the improvement has a huge impact for users that currently are completely unable to select text and/or highlight text in the reader. |
Thank you for the feedback. Given this information I'll hold off on releasing a new PDF.js version until this is fixed so there is enough time and we avoid any bug reports about this. |
Given that this has been a release blocker for a long time now and the last PDF.js release was in December 2023, the question was raised in #17880 (comment) if we should go ahead and create a release now and just put a note in the release notes about this bug? I agree with this because we have had many features and bugfixes land since that users would like to have, and if we wait longer the release will only get bigger while we would like to keep releases small (as was the purpose of the monthly release cycle). @calixteman @marco-c What do you think about this? |
@calixteman if it's a quick and easy fix, I'd say let's wait on that. If it's a more cumbersome fix, I'd agree with shipping a version with the regression included. |
@calixteman What do you think of the above? If it's desired I can make a new release today or tomorrow, for the reasons mentioned above and so we can land some other PRs that would be safer to merge once a new release is made. |
Yes please make a release. |
I have just completed the release of PDF.js version 4.1.392, with this bug referenced as a known issue in the release notes at https://github.com/mozilla/pdf.js/releases/tag/v4.1.392. Landing of new patches should be unblocked now. @calixteman The bot sadly doesn't seem to have pushed the release to NPM. Could you check the logs and push it manually so NPM is also in sync again (see https://github.com/mozilla/botio-files-pdfjs/blob/master/on_release.js#L21 for how the bots do it)? (This prompted me to look into porting the NPM part to GitHub Actions as part of #11851 again, and I think I now finally have an idea on how we can prepare and test this without actually having to push something to NPM.) |
It was a matter of cached ssh key. |
I have removed the |
Attach (recommended) or Link to PDF file here: https://github.com/mozilla/pdf.js/blob/master/test/pdfs/pdf.pdf.link
(This can be reproduce even with
tracemonkey.pdf
, but it's less pronounced since the lines don't overlap as much.)Configuration:
Steps to reproduce the problem:
What is the expected behavior? (add screenshot)
The intersection should not be visible, as previously:
What went wrong? (add screenshot)
The intersection is visible:
Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension): N/A
/cc @calixteman
The text was updated successfully, but these errors were encountered: