-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[HOLD for payment 2023-08-02] [$1000] IOS - Long Pressing on Attachment in chat history in Safari opens the native image menu #21344
Comments
Triggered auto assignment to @NicMendonca ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Long pressing on attachment in chat history in iOS safari shows the default image menu What is the root cause of that problem?This is the default behavior of What changes do you think we should make in order to solve the problem?We have CSS styles for Lines 132 to 136 in 2669f79
Add the following CSS
This works as expected Result21344_mac_chrome.mp4What alternative solutions did you explore? (Optional) |
Job added to Upwork: https://www.upwork.com/jobs/~012b0bba0a353f1098 |
Current assignee @NicMendonca is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.The long-press behavior on images on iOS safari shows a contextual menu. What is the root cause of that problem?In Safari, the long-press behavior on images specifically triggers a contextual menu rather than the standard context menu by default. What changes do you think we should make in order to solve the problem?There is a workaround you can try to prevent the contextual menu from appearing. It involves adding the CSS property
To solve this issue, insert this CSS property to Lines 132 to 136 in a777544
What alternative solutions did you explore? (Optional)None. |
Triggered auto assignment to @johncschuster ( |
This comment was marked as duplicate.
This comment was marked as duplicate.
@johncschuster I am going OOO until Wednesday. Can you watch this while I am away? I'll unassign you when I am back. Thank you! |
ProposalPlease re-state the problem that we are trying to solve in this issue.Long pressing on Image attachment opens the native menu What is the root cause of that problem?This is the default behavior of safari browser What changes do you think we should make in order to solve the problem?We should use App/src/components/ImageWithSizeCalculation.js Lines 76 to 86 in 820fa93
Additionally we need to add Result: Screen.Recording.2023-06-24.at.9.10.15.AM.movWhat alternative solutions did you explore? (Optional)Note: We should not use -webkit-touch-callout since it's not reliable for every user and on the docs, it's clearly stated that to not use it on production sites. |
@rushatgabhane what are your thoughts on the above proposals? |
Confirmed that this issue is mWeb Safari only. (doesn't happen on macos safari) So the browser compatibility of https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-touch-callout#browser_compatibility |
I think it's fine to use it. It's "non-standard" to use it simply means it has bad cross-browser compatibility. But we only care about iOS Safari. |
Hi @s-alves10, I like your proposal. Looking forward to more contributions from your 🚀 C+ reviewed 🎀 👀 🎀 |
@hayata-suenaga i respect the decision but i addressed the concern and was not able to reproduce it. |
PR is ready for review |
@rushatgabhane bump ^^ |
The first concern of mine was
but now there is additional thing adding browser/platform specific code, which only targets safari browser. which is both bad thing. can we get the proposals re-evaluated to go with pointerEvents addressing the issues clearly please? i addressed the concerns here thank you! ❤️ |
@getusha Thanks for your concern. We already have made a decision after evaluating the same above. |
@parasharrajat |
@NicMendonca, @rushatgabhane, @hayata-suenaga, @s-alves10 Whoops! This issue is 2 days overdue. Let's get this updated quick! |
PR is reviewed here |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.45-7 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-08-02. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Reporting payment requested. |
|
Created a manual request - https://staging.new.expensify.com/r/3188378132507359 |
@rushatgabhane thanks for getting that BZ checklist done so quick! 🎉 |
Reviewed details for @parasharrajat. These details are accurate based on summary from Business Reviewer and are now approved for payment in NewDot. |
@s-alves10 has been paid via upwork ✅ |
all set here! |
Reviewed details for @rushatgabhane. These details are accurate based on summary from Business Reviewer and are now approved for payment in NewDot. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
Native image menu should be blocked as we have a custom menu.
Actual Result:
Safari opens a native menu over the image which interfere with the custom context menu.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.28-3
Reproducible in staging?:
Reproducible in production?:
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Screen.Recording.2023-06-16.at.1.54.15.PM.mov
RPReplay_Final1687460312.MP4
Expensify/Expensify Issue URL:
Issue reported by: @parasharrajat
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1686903910528619
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: