[Webkit-unassigned] [Bug 29425] New: [Qt] SIGSEGV after WebCore::Frame::loader()

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Sep 18 07:43:10 PDT 2009


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

           Summary: [Qt] SIGSEGV after WebCore::Frame::loader()
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Other
        OS/Version: Mac OS X 10.5
            Status: NEW
          Keywords: Qt
          Severity: Normal
          Priority: P2
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: vestbo at webkit.org


This bug report originated from issue QTBUG-3876
<http://bugreports.qt.nokia.com/browse/QTBUG-3876>

--- Description ---

QWebView crashes (on Linux at least) when calling stop().

Test case:
//--------------------------------------------

class WebView : public QWebView
{
    Q_OBJECT

public:
    WebView(QWidget *parent = 0);

private slots:
    void loadingStarted();
    void reloadingStarted();
    void loading(int progress);

private:
    int counter;
    QTimer *timer;
};

WebView::WebView(QWidget *parent)
    : QWebView(parent), counter(0)
{
    timer = new QTimer(this);
    timer->setSingleShot(true);
    timer->setInterval(5000);

    connect(timer, SIGNAL(timeout()), this, SLOT(reloadingStarted()));
    connect(this, SIGNAL(loadProgress(int)), this, SLOT(loading(int)));
    connect(this, SIGNAL(loadStarted()), this, SLOT(loadingStarted()));
}

void WebView::loadingStarted()
{
    qDebug() << "Started...";
    counter++;
}

void WebView::reloadingStarted()
{
    qDebug() << "Reloading...";
    reload();
}

void WebView::loading(int progress)
{
    qDebug() << "loading: " << progress;
    if (progress >= 50 && counter == 2) {
        stop();
        timer->start();
    }
}

int main(int argc, char *argv[])
{
    QApplication app(argc,argv);
    WebView *view = new WebView();
    QUrl url = QUrl("http://www.qtsoftware.com");
    view->setUrl(url);
    view->load(url);
    view->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