[Webkit-unassigned] [Bug 41393] New: [Qt] when QWebView load a page without html suffix, It will crash

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 30 00:12:09 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=41393

           Summary: [Qt] when QWebView load a page without html suffix, It
                    will crash
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: Critical
          Priority: P3
         Component: WebKit Qt
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: mumutouv at gmail.com
                CC: mumutouv at gmail.com


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();
}

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list