[Webkit-unassigned] [Bug 49215] New: QWebView::setPage() doesn't disconnect the previous QWebPage

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Nov 8 15:42:52 PST 2010


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

           Summary: QWebView::setPage() doesn't disconnect the previous
                    QWebPage
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: Major
          Priority: P2
         Component: WebKit Qt
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: vog at notjusthosting.com


Created an attachment (id=73298)
 --> (https://bugs.webkit.org/attachment.cgi?id=73298&action=review)
Minimal Qt application to demonstrate the issue

When the 'page' object of a QWebView is changed, the previous page isn't disconnected from the QWebView:

This leads to all kinds of strange behaviors. For instance, if the previous site showed a bigger image and this the magnifying mouse cursor, switching to a new page that contains HTML doesn't make the cursor change back. Also, the new HTML page doesn't react on clicks anymore. It is as if both pages fight about the user input.

I'm using the following workaround:

    if (webView->page() != 0) {
        webView->page()->setView(0);
    }

    webView->setPage(newWebPage);

That is, I disconnect the old page by hand before setting a new page. However, it would be much better if QWebView::setPage() did that automatically.

I attached a small Qt application to demonstrate the issue. Just click around, on the buttons and into the QWebView. You'll soon notice that neither the HTML page nor the image page won't respond anymore. If you then activate (i.e. uncomment) the workarounds in MainWindow.cpp, everything will run fine.

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