Bug 60085 - [Qt] Overlapping content on WebView element
Summary: [Qt] Overlapping content on WebView element
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 420+
Hardware: All All
: P3 Major
Assignee: Nobody
URL:
Keywords: Qt
Depends on:
Blocks:
 
Reported: 2011-05-03 16:54 PDT by Damian Jansen
Modified: 2014-02-03 03:17 PST (History)
4 users (show)

See Also:


Attachments
Patch to fix above defect (690 bytes, patch)
2011-05-03 16:54 PDT, Damian Jansen
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Damian Jansen 2011-05-03 16:54:34 PDT
Created attachment 92168 [details]
Patch to fix above defect

1. Execute the webbrowser.qml demo
2. Click refresh button while "http://www.nokia.com" is in browser
3. Enter "http://www.google.com.hk" in address bar 

Expected Result:
google.com displays correcty 

Actual Result:
The page of "google.com" is overlaping the page of "Nokia.com"



Moved from QT-3622. Patch attached.
Comment 1 Benjamin Poulain 2011-05-04 03:37:49 PDT
You need to make the patch with WebKit trunk, not the branch that is included in Qt (and which is ~1 year old :))

And you need a changelog for the patch.

More info here: http://trac.webkit.org/wiki/QtWebKitContrib
Comment 2 Alexis Menard (darktears) 2011-05-04 04:52:50 PDT
Comment on attachment 92168 [details]
Patch to fix above defect

Could you elaborate on why this patch fixes the problem?
Comment 3 Jason Barron 2011-05-05 00:12:54 PDT
I'm not sure if this happens on all platforms or just Symbian, but some Qt styles (eg: QS60Style) do some pretty nasty stuff to the palette to make it look as native as possible. One of the nasty things is to use Qt::transparent in one of the palette roles (QPalette::Base maybe?) in order for the themed background to shine through. This has been addressed for QWebView by using a custom palette which does not have a transparent base. The same fix should be applied to the QML WebView element so that it does not clear the page with transparent.
Comment 4 Noam Rosenthal 2011-06-29 18:14:15 PDT
Comment on attachment 92168 [details]
Patch to fix above defect

This should probably be done in QGraphicsWebView and not in QDeclarativeWebView; Also it should be #ifdefed to Symbian, if I understand the problem you're describing.
Comment 5 Jocelyn Turcotte 2014-02-03 03:17:41 PST
=== Bulk closing of Qt bugs ===

If you believe that this bug report is still relevant for a non-Qt port of webkit.org, please re-open it and remove [Qt] from the summary.

If you believe that this is still an important QtWebKit bug, please fill a new report at https://bugreports.qt-project.org and add a link to this issue. See http://qt-project.org/wiki/ReportingBugsInQt for additional guidelines.