Bug 211408

Summary: konqueror view mode is inconsistent
Product: [Frameworks and Libraries] kwebkitpart Reporter: Ruchir Brahmbhatt <ruchir.brahmbhatt>
Component: generalAssignee: webkit-devel
Status: RESOLVED FIXED    
Severity: normal CC: adawit, faure
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Unspecified   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Ruchir Brahmbhatt 2009-10-22 07:53:39 UTC
Version:           4.3.2 (using KDE 4.3.2)
Installed from:    SuSE RPMs

Konqueror offers khtml and webkit view modes. However the switching is not user friendly and inconsistent. 
1. When we start konqueror, it is not possible to change view mode to webkit without opening any page first. After opening page and switching view mode to webkit, reloads the page in webkit which I think may require downloading page again which is not good.
2. After doing above step, open new tab. This offers changing view mode to webkit prior to opening page. However doing so opens ~/Documents folder which shouldn't happen. It should stay on blank page instead.

Reproducible: Always

Steps to Reproduce:
1. Open konqueror.
2. Open new tab.
3. Click view mode->webkit.

Actual Results:  
~/Documents folder opened. 

Expected Results:  
view mode should be changed to webkit with blank page.
Comment 1 David Faure 2009-10-22 18:34:18 UTC
Replying to the first part:

> 1. When we start konqueror, it is not possible to change view mode to webkit
without opening any page first.

That's because you're only looking at the "on-the-fly" view mode selection.

You can select your preferred browser engine by opening systemsettings, going to File Associations, and typing html. Select the text/html mimetype and in the 2nd tab change the order of the associated components, so that kdewebkit is above khtml.
Comment 2 Dawit Alemayehu 2009-10-22 22:24:43 UTC
On Thursday 22 October 2009 12:34:19 David Faure wrote:
> https://bugs.kde.org/show_bug.cgi?id=211408
> 
> 
> David Faure <faure@kde.org> changed:
> 
>            What    |Removed                     |Added
> ---------------------------------------------------------------------------
> - CC|                            |faure@kde.org
> 
> 
> 
> 
> --- Comment #1 from David Faure <faure kde org>  2009-10-22 18:34:18 ---
> 
> Replying to the first part:
> > 1. When we start konqueror, it is not possible to change view mode to
> > webkit
> 
> without opening any page first.
> 
> That's because you're only looking at the "on-the-fly" view mode selection.
> 
> You can select your preferred browser engine by opening systemsettings,
>  going to File Associations, and typing html. Select the text/html mimetype
>  and in the 2nd tab change the order of the associated components, so that
>  kdewebkit is above khtml.

You can also set the start page in Konqueror to "Show Blank Page" or "Show 
Home Page", in order to switch views on the fly from the view menu. It does not 
work if the start up page is set to "Show Introduction Page" because that is a 
special view. Having said that you should do as David suggested above...

As far as the url being reloaded, both khtml and webkitpart use KIO so they 
share the same cache and hence the page would likely be retreived from there 
instead of being downloaded again. However, changing views (actually parts) is 
essentially no different than starting a new application with a url...

Changing view to webkitpart when viewing blank pages should work correctly in 
more recent versions of the KDE webkit part.
Comment 3 Dawit Alemayehu 2009-10-23 01:07:01 UTC
The only thing applicable to webkitpart is item #2 and it has already been fixed in the current version. Thanks for the report.