-
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
Fix rendering problem when zooming on Safari #18019
Conversation
/botio-linux preview |
From: Bot.io (Linux m4)ReceivedCommand cmd_preview from @timvandermeij received. Current queue size: 0 Live output at: http://54.241.84.105:8877/8e9ebf326bd7518/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/8e9ebf326bd7518/output.txt Total script time: 1.18 mins Published |
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @timvandermeij received. Current queue size: 0 Live output at: http://54.241.84.105:8877/0707513770b2969/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @timvandermeij received. Current queue size: 0 Live output at: http://54.193.163.58:8877/7bc3aed9d04a96d/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/0707513770b2969/output.txt Total script time: 27.09 mins
Image differences available at: http://54.241.84.105:8877/0707513770b2969/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/7bc3aed9d04a96d/output.txt Total script time: 42.95 mins
Image differences available at: http://54.193.163.58:8877/7bc3aed9d04a96d/reftest-analyzer.html#web=eq.log |
From my point of view, this change is fine but I'd prefer having @Snuffleupagus agreement here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change looks good to me, but I prefer we merge this after the April release (which I'll do either today or tomorrow) given the nature of the change so it has quite some time to settle before the next release.
Personally I'm really not excited about a browser-specific hack (also given the age of this code), especially considering that Safari has never been listed as fully supported; note https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions#faq-support (Given the comments just above I suppose that I'm overruled here though...) |
If it would have involved adding code I also wouldn't have been in favor of it, but if the issue can be solved with removing a line (which also shortens the CSS ever so slightly) then overall this seems acceptable to me. However, I should add that that is under the assumption that the tests have good coverage and no regressions are discovered; if those are discovered we won't attempt to find a fix that pleases Safari and instead just revert the change, so it's on a best-effort basis and no guarantees for Safari are given (which applies in general for Safari given the FAQ support entry and the fact that Safari consistently lags behind other browsers). |
I agree that in fine, it's a fix for Safari, but I don't think that removing a "useless" property could cause a problem here and it could be considered as a kind of clean up/simplification which is kinda useful for Firefox either. |
I don't know if this is actually covered by tests, given that the code only applies to the viewer. (Unless a change here would just happen to trigger an "unrelated" integration-test.)
I have nothing in mind, I just want us to avoid wasting time chasing a regression later on :-) If you both are satisfied that this is correct, and you've tested this thoroughly, then I retract my previous objection. |
I have performed extra manual checking of the viewer today, with e.g. the scroll/spread modes, LTR/RTL locales, rotation and the cursor tools, and I haven't found any change in behavior compared to the viewer on the |
Apparently this did cause a regression, see bug 1895909, hence we should just revert this! |
We wrongly assumed that |
Fixes: #16155
@calixteman suggestion in the comment #17571 (comment), works well for iPad/iOS devices.
Before the fix:
Before.mp4
After the fix:
After.mp4