Black rectangle at the top of tab previews where the chrome would be

Bug #1455129 reported by Olivier Tilloy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
webbrowser-app (Ubuntu)
Fix Released
High
Unassigned

Bug Description

When requesting a capture of a webview using QQuickItem::grabToImage (when this works, see bug #1452998), the resulting image includes a black rectangle at the top of the webview where the chrome would be. See attached capture for an example.

We need a way to discard this part of the capture.

Revision history for this message
Olivier Tilloy (osomon) wrote :
Revision history for this message
Olivier Tilloy (osomon) wrote :

With a custom QObject inserted in the scene, written in C++ and that calls QQuickItem::grabToImage() on the WebView, I am able to get back a QImage which I can then manipulate to crop the black rectangle. As a bonus, I can also increase the compression factor when saving as a JPEG, thus saving disk space and loading time.

Olivier Tilloy (osomon)
Changed in webbrowser-app (Ubuntu):
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Olivier Tilloy (osomon)
no longer affects: webbrowser-app
Revision history for this message
Olivier Tilloy (osomon) wrote :

This appears to have fixed itself, somehow. Note that there is still bug #1467276 though.

Changed in webbrowser-app (Ubuntu):
status: Confirmed → Fix Released
assignee: Olivier Tilloy (osomon) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.