mozilla-mobile / firefox-ios

Firefox for iOS
Mozilla Public License 2.0
12.29k stars 2.95k forks source link

Long press options list not displayed on pdf link #23473

Open dragosb01 opened 1 week ago

dragosb01 commented 1 week ago

Steps to reproduce

  1. Open PDF website that has a link
  2. Long press on a link

    Expected behavior

    A list of options should be displayed (see screenshot) - Open, Add to Reading List, Copy Link, Share…

    Actual behavior

    The list of options is displayed only after the pressing is released. To note that on iPad the options are displayed during the pressing action From the screenshot notice that we also display "Copy" and "Select All" options This might not be user friendly and redundant at least having 2 copy options

    Device & build information

    • Device: iPhone 16+ (18.1) simulator
    • Build version: 134, 135, 133
    • First seen version: Yes

      Notes

      Issue started to reproduce after the toolbar redesign experiment was enabled Automation test affected: testLongPressOnPDFLink, testLongPressOnPDFLinkToAddToReadingList https://mozilla.testrail.io/index.php?/cases/view/2307118 Attachments:

      Screenshot 2024-11-29 at 15 32 38

┆Issue is synchronized with this Jira Task

dicarobinho commented 1 week ago

After investigations, this seems to be an issue from the OS. I was able to reproduce this on a Webview demo project. Also on Chrome we can see the same behaviour.

https://github.com/user-attachments/assets/0fad3062-a9d5-4af1-88d1-5039ead305c6