Bug 327410

Summary: Plastik theme renders HTML tags in title
Product: [Plasma] kwin Reporter: frog23
Component: decorationsAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version First Reported In: 4.10.5   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
URL: http://www.frog23.net/development/kde-title-bug.html
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: The bug displayed in Firefox, Opera and Konqueror in the Plastik theme
The problem disappears when switching to the Oxygen theme
The simple HTML file for testing

Description frog23 2013-11-10 13:36:02 UTC
When the title of an application contains HTML elements, they are rendered as HTML in the plastik theme. This can greatly distort the application UI, as can be seen in the demo screen shots. I tested it using a simple website which has some HTML markup within the title tag: <title><h3><i>Hello</i> World<img src="http://[...]Feed-icon.svg.png" /><h3></title>. I used Firefox (25.0), Konqueror (4.10.5) and Opera (12.16). In each case the inputs were rendered a little different (changed size of the windows icons for Konqueror and Firefox, and the image was correctly displayed only in Firefox) but generally all of them rendered the HTML code. When changing the layout to Oxygen, the HTML code is displayed as is in the window title bar, which is the behavior I would be expecting.

Reproducible: Always

Steps to Reproduce:
1. Switch theme to Plastik
2. go to http://www.frog23.net/development/kde-title-bug.html or open the attached file
3. look at the window decoration
Actual Results:  
The HTML code is rendered

Expected Results:  
The HTML code should be displayed as plain text
Comment 1 frog23 2013-11-10 13:37:13 UTC
Created attachment 83471 [details]
The bug displayed in Firefox, Opera and Konqueror in the Plastik theme
Comment 2 frog23 2013-11-10 13:38:07 UTC
Created attachment 83472 [details]
The problem disappears when switching to the Oxygen theme
Comment 3 frog23 2013-11-10 13:39:53 UTC
Created attachment 83473 [details]
The simple HTML file for testing
Comment 4 Thomas Lübking 2013-11-10 14:32:47 UTC
The patch over there applies to a qml resource, ie. can applied downstream to your version w/o the need to recompile anything.

*** This bug has been marked as a duplicate of bug 323798 ***