Post

Replies

Boosts

Views

Activity

browser.tabs.captureVisibleTab() not behaving correctly
When calling browser.tabs.captureVisibleTab() from a Safari Web Extension to capture a screenshot, the image we receive has two problems: There seems to always be a padding area of about 200 pixels at the top of the image The image resolution is smaller than the screen resolution (about half as many pixels of width and height each) The second problem is especially problematic for us, since we want to perform optical character recognition on the screenshots, and the lower resolution renders some of the text illegible. Here's an example image taken on an iPhone 7 (usernames have been redacted): I tested it on an iPhone 7, iPhone 13 mini and iPad Pro 2018 11 inch. The behaviour is always the same. This might be related to an old Chromium bug: https://bugs.chromium.org/p/chromium/issues/detail?id=415297 I'd be very grateful if someone could look into this. Thanks in advance!
1
0
698
Feb ’22
Haptic Feedback in Safari Web Extension
Hi! We're currently building a web extension with iOS as a primary target. Since haptics on iOS are really nice, we wanted to make use of it to give the experience a special feel on iPhone. However, haptics don't seem to work when called from SafariWebExtensionHandler... maybe because the messaging layer between the web extension and the native code is in the background (is it?), and haptics don't work in apps that are in the background. Anyway, is there any way we can make haptics work regardless?
2
0
2k
Sep ’21