[Webkit-unassigned] [Bug 49216] New: Segmentation Fault when calling QWebFrame::setHtml() with an image, then QWebFrame::setUrl()

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Nov 8 15:49:09 PST 2010


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

           Summary: Segmentation Fault when calling QWebFrame::setHtml()
                    with an image, then QWebFrame::setUrl()
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: Critical
          Priority: P2
         Component: WebKit Qt
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: vog at notjusthosting.com


Under certain circumstances, calling setHtml() and then setUrl() on a QWebFrame instance causes a segmentation fault!

More specifically, this always happens if the HTML provided to setHtml() contains an image (<img> tag). It doesn't matter whether the image acually exists. No GUI (QWebView) needs to be involved.

The following 3 lines of code are sufficient to reproduce this strange bug:

    QWebPage *page = new QWebPage();
    page->mainFrame()->setHtml("<img src=\"dummy:\">");
    page->mainFrame()->setUrl(QUrl("about:blank"));

-- 
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