Bug 41393 - [Qt] when QWebView load a page without html suffix, It will crash
Summary: [Qt] when QWebView load a page without html suffix, It will crash
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Qt (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P3 Critical
Assignee: Nobody
URL:
Keywords: Qt
Depends on:
Blocks:
 
Reported: 2010-06-30 00:12 PDT by tangke
Modified: 2010-07-21 07:51 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tangke 2010-06-30 00:12:09 PDT
When I use the QWebView to load a page named "Index" without html
suffix, It will crash.
so I rename the Index to Index.html, then load It,It's OK.

I think maybe It's a bug of QtWebkit.

code:

#include <QtGui/QApplication>
#include <QtWebKit/QWebView>

int main(int argc, char *argv[]) {
QApplication app(argc, argv);
QWebView webView;
QWebSettings::globalSettings()->setAttribute(QWebSettings::PluginsEnabled,
false);
QWebSettings::globalSettings()->setAttribute(QWebSettings::DeveloperExtrasEnabled,
false);
webView.setUrl(QUrl("/home/tangke/test")); //crash
// webView.setUrl(QUrl("/home/tangke/test.html")); //ok
webView.show();
return app.exec();
}
Comment 1 Andreas Kling 2010-07-10 08:22:56 PDT
I cannot reproduce this on current 4.7 + WebKit trunk. Can you get a gdb or valgrind backtrace for the crash?
Comment 2 Diego Gonzalez 2010-07-21 07:51:22 PDT
I cannot reproduce it. If the problem still persist for you please provide a better detailed testecase or a crash backtrace.