Open Bug 1326567 Opened 8 years ago Updated 2 years ago

Support peek and pop link preview (WKWebView) on iOS 10

Categories

(Firefox for iOS :: General, defect, P3)

Other
iOS
defect

Tracking

()

Tracking Status
fxios 10.0 ---

People

(Reporter: aaronmt, Unassigned)

References

Details

(Whiteboard: [MobileCore][parity=safari])

When the allowsLinkPreview property is set to true, users can gently press on links to peek them, which loads the link in another view over the app and blurs the app in the background. We should support this.
tracking-fxios: --- → ?
Priority: -- → P3
Whiteboard: [MobileCore]
This is cool but the only problem I see with this is that if a use wants to actually see the full site, they're going to be punted over to Safari (with the back button in the top left corner to go back to Firefox). Is this something we want? This sounds more like a UX/product issue. Flagging people to see what they think.
Flags: needinfo?(randersen)
Flags: needinfo?(bbermes)
:bkmunar why would they be punted to Safari? we already support this on the tabs tray.
Flags: needinfo?(randersen) → needinfo?(bmunar)
What Aaron is asking for is the Apple built in version of what we do in the Tabs Tray so it will punt it to Safari, not Firefox. I'm assuming we could still build the same functionality however, it would have to be custom made (which I think we have?).
Flags: needinfo?(bmunar) → needinfo?(randersen)
> ... if a user wants to actually see the full site In Safari, on peek, there is no way to view the full site whilst holding down your finger. If you drag upwards you get 'Open in New Tab', 'Add to Reading List', 'Copy', 'Share'. We should support the same.
Whiteboard: [MobileCore] → [MobileCore][parity=safari]
Depends on: 1331972
Depends on: 1347854
Testing this out locally (iPhone 7 iOS 10), if I manually set allowsLinkPreview to true on the WebView (Tab.Swift) this works beautifully ... however I need to also manually comment out our contextMenuHelper on the tab in the BVC to not compete for the long-press gesture. I'm not sure how sometimes Safari shows the context menu on some links and on others it shows a link preview. I'm sure there's a way to have both. I tested via the big articles on http://osxdaily.com
Rank: 1
Flags: needinfo?(randersen)
Flags: needinfo?(bbermes)
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.