Summary: | KWebkitPart should emit openURLRequest[Delayed]() for non-page internal navigation | ||
---|---|---|---|
Product: | [Frameworks and Libraries] kwebkitpart | Reporter: | Thomas Friedrichsmeier <thomas.friedrichsmeier> |
Component: | general | Assignee: | webkit-devel |
Status: | RESOLVED INTENTIONAL | ||
Severity: | wishlist | CC: | adawit |
Priority: | NOR | ||
Version First Reported In: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Thomas Friedrichsmeier
2013-04-24 10:04:27 UTC
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. |