Bug 306102

Summary: crash when right-clicked a scrollbar inside the web page
Product: [Frameworks and Libraries] kwebkitpart Reporter: Алексей Шилин <rootlexx>
Component: generalAssignee: webkit-devel
Status: RESOLVED FIXED    
Severity: critical CC: adawit
Priority: NOR    
Version: 1.3.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
URL: http://unixforum.org/index.php?showtopic=132768
Latest Commit: Version Fixed In: 1.3
Sentry Crash Report:

Description Алексей Шилин 2012-08-31 18:17:25 UTC
I was reading http://unixforum.org/index.php?showtopic=132768 using Konqueror 4.9 with WebKit KPart and right-clicked the scrollbar inside the second "code" block of the first post (where Xorg.0.log contents is pasted). The browser crashed immediately after that.
Same happens at http://translate.yandex.ru/ if you insert enough text for scrollbars to appear.

Reproducible: Always

Steps to Reproduce:
1. Launch Konqueror with WebKit KPart as a default one.
2. Go to http://unixforum.org/index.php?showtopic=132768 .
3. Right-click the scrollbar inside the second "code" block of the first post.
Actual Results:  
Konqueror crashed.

Expected Results:  
Konqueror should have shown a usual scrollbar context popup menu.

Konqueror with KHTML KPart works, so does Rekonq. Therefore it seems to be not a Konqueror or QtWebKit problem.
kpart-webkit version: 1.3~git20120518.9a111005-2 as currently in Debian testing/unstable and Kubuntu quantal.
Fedora 17 uses 1.2-0.3.20111030 and is affected too.
Comment 1 Dawit Alemayehu 2012-09-06 19:02:23 UTC
Git commit 894334963a729b92a968e65b91f79e5556f65037 by Dawit Alemayehu.
Committed on 06/09/2012 at 21:00.
Pushed by adawit into branch '1.3'.

Do not crash when QWebHitTestResult::frame() returns NULL.
FIXED-IN: 1.3

M  +1    -1    src/webview.cpp

http://commits.kde.org/kwebkitpart/894334963a729b92a968e65b91f79e5556f65037
Comment 2 Dawit Alemayehu 2012-09-06 19:07:28 UTC
Git commit 0821d5191045306cecc0834929853c86ca085e03 by Dawit Alemayehu.
Committed on 06/09/2012 at 21:00.
Pushed by adawit into branch 'master'.

Do not crash when QWebHitTestResult::frame() returns NULL.
FIXED-IN: 1.3

M  +1    -1    src/webview.cpp

http://commits.kde.org/kwebkitpart/0821d5191045306cecc0834929853c86ca085e03