[Webkit-unassigned] [Bug 36436] QGraphicsWebView crash when calling setView on the QWebPage...

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Mar 22 10:49:26 PDT 2010


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


Kenneth Rohde Christiansen <kenneth at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kenneth at webkit.org




--- Comment #2 from Kenneth Rohde Christiansen <kenneth at webkit.org>  2010-03-22 10:49:26 PST ---
OK, this is not the right solution, but I understand the issue.

QtFallbackWebPopup sets the parent of the combo to pageClient()->ownerWidget()

pageClient for the QGraphicsWebView is the QGraphicsWebViewPrivate, and
ownerWidget returns q->Scene()->views().value(0);

Now that is fixed for the lifetime of the QGraphicsWebView, so when you change
the scene that would have to be changed as well.

I still do not understand how hostWindow()->platformPageClient() becomes null.

Ah, that might be due to line 1785 in qwebpage.cpp:

    setView(qobject_cast<QWidget *>(parent)); 

I guess this should be 

QWebView* view = qobject_cast<QWebView*>(parent);
if (view) {
   // setView installs a proper page client for the QWebView, which is needed
   // for the Qt parts of WebCore to function proper.
   setView(view);
}

Would be nice if you could test this.

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