4

Save visible does not always capture visible view port

 3 years ago
source link: https://bugzilla.mozilla.org/show_bug.cgi?id=1710635
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
Closed Bug 1710635 Opened 2 months ago Closed 21 days ago

Save visible does not always capture visible view port

Categories

(Firefox :: Screenshots, defect, P2)

Tracking

(regression bug RESOLVED as FIXED)

RESOLVED FIXED

91 Branch

Tracking Status firefox-esr78 --- unaffected firefox88 --- wontfix firefox89 --- wontfix firefox90 --- wontfix firefox91 --- fixed

People

(Reporter: igor, Assigned: kajalsah107)

Details

(Keywords: regression)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36

Steps to reproduce:

Use Firefox 88 (87 doesn't have this issue)
Open https://getbootstrap.com/docs/4.0/components/modal/#vertically-centered
Click "Launch demo modal" button on the page, modal widget will be shown.
Right click -> Take Screenshot -> Save Visible

Actual results:

The screenshot preview shows page rendering without modal widget

Expected results:

The screenshot preview should show page with modal widget, exactly as browser window.

The worst consequence of this bug is that selenium webdriver produces invalid screenshots now making visual tests fail.

The Bugbug bot thinks this bug should belong to the 'Firefox::Screenshots' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Screenshots

Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:88.0) Gecko/20100101 Firefox/88.0

Hi,
I am able to reproduce the issue in release 88, beta 89.0b10 and latest nightly 90.0a1 (2021-05-12) using Windows 10.
This is a recent regression since Fx 87 is not affected.

Regression range:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=c27aac8c84b70e3611b04fc56927719419aefc64&tochange=4111f26f06309412c5aacb5eb9bddb3daf2587c7

Thanks for your input!

Status: UNCONFIRMED → NEW
Has Regression Range: --- → yes
Has STR: --- → yes
Ever confirmed: true
Keywords: regression

It looks like if we remove https://searchfox.org/mozilla-central/rev/5fe255d4f6e7d7c6794d81fabe90d75ece7bb2a4/browser/extensions/screenshots/background/takeshot.js#40-46, the modal will be captured.

I think we only want to enter that else block for custom selections.
Something like else if (!isCaptureVisible). Instead of passing isFullPage, let's go ahead and change that parameter to screenshotType to account for both cases.

Severity: -- → S4
Priority: -- → P2
Summary: Bootstrap modal components are missing on Firefox screenshots (including selenium) → Save visible does not always capture visible view port

I see that this case is being marked as wontfix and optional and would like to stress that it has quite severe implication:
The same incorrect screenshots are observed in selenium tests with Firefox. It prevents people from doing automated visual testing of bootstrap dialog boxes (and probably other things) in Firefox.

Assignee: nobody → kajalsah107
Status: NEW → ASSIGNED
Attachment #9224340 - Attachment description: Bug 1710635 WIP Adds capture visible view port using Save visible.r?emalysz → Bug 1710635 Adds capture visible view port using Save visible.r?emalysz
Attachment #9224340 - Attachment description: Bug 1710635 Adds capture visible view port using Save visible.r?emalysz → Bug 1710635 - Adds capture visible view port using Save visible. r?emalysz
Status: ASSIGNED → RESOLVED
Closed: 21 days ago
Resolution: --- → FIXED
Target Milestone: --- → 91 Branch

Is this something we should consider nominating for Beta uplift for Fx90?

Flags: needinfo?(kajalsah107)
You need to log in before you can comment on or make changes to this bug.

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK