[WebKit-devel] [kwebkitpart] [Bug 318797] KWebkitPart should emit openURLRequest[Delayed]() for non-page internal navigation

Dawit Alemayehu adawit at kde.org
Sat Apr 27 12:32:54 UTC 2013


https://bugs.kde.org/show_bug.cgi?id=318797

Dawit Alemayehu <adawit at kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |adawit at kde.org

--- Comment #1 from Dawit Alemayehu <adawit at kde.org> ---
No it is not easy to do this. QWebPage::LinkDelegationPolicy only works for a
user clicking on a link and the link being a <a> tag with href. If the link
uses javascript or the request is generated behind the scenes by scripts using
ajax calls, then QWebPage will not emit linkClicked at all. Hence, you cannot
delegate all the requests from QWebPage to another object. As a result, I had
to resort to lots of hacks to make the QtWebKit/KPart integration work.

If you want to embed QtWebKit, I suggest you use kdewebkit from kdelibs
directly instead of kwebkitpart. That is what I recommend. Due to the
difficulty of making QtWebKit integrate into KPart, kwebkitpart makes several
assumptions and most of those tend to be skewed towards Konqueror integration.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the WebKit-devel mailing list