Safari Web Extension browser.tabs.captureVisibleTab() is not capturing the image correctly

On Safari Mobile and iOS version 16 or 17, while scrolling the webpage, the function browser.tabs.captureVisibleTab() is not returning the expected screen image. The image is cropped from the top. The probable reason for the same is the collapsible Address Bar.

The below attached image is the iPad mini (6th generation ) Simulator OS Version:17.0 simulator

The below attached image is created by browser.tabs.captureVisibleTab()

I tested it on iPad mini (6th generation ) Simulator OS Version:17.0 and iPad (8th generation) - iPadOS Version 16.2.

Answered by Engineer in 777066022

Good catch! Can you please file a bug on https://feedbackassistant.apple.com?

Thank you!

Accepted Answer

Good catch! Can you please file a bug on https://feedbackassistant.apple.com?

Thank you!

Safari Web Extension browser.tabs.captureVisibleTab() is not capturing the image correctly
 
 
Q