Bug 65919 - [Qt] [WK2] Provide API for intercept (and possible ignore) navigation actions
Summary: [Qt] [WK2] Provide API for intercept (and possible ignore) navigation actions
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Qt (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Caio Marcelo de Oliveira Filho
URL:
Keywords: Qt, QtTriaged
Depends on: 65920
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-09 07:05 PDT by Caio Marcelo de Oliveira Filho
Modified: 2012-01-17 05:32 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Caio Marcelo de Oliveira Filho 2011-08-09 07:05:44 PDT
In Qt WK1 API, the QWebPage class had a virtual method that could be reimplemented to intercept navigation requests

http://doc.qt.nokia.com/latest/qwebpage.html#acceptNavigationRequest

also as a convenience (since could be implemented with the previous method) we had

http://doc.qt.nokia.com/latest/qwebpage.html#linkDelegationPolicy-prop

These mechanisms were useful for:

- Blocking navigation from users;
- Implementing different schemes; both describe in See also https://bugs.webkit.org/show_bug.cgi?id=49370#c4
- Implementing "Open In New Tab" functionality. See Rekonq implementation of this feature https://gitorious.org/rekonq/mainline/commit/c2cf251dfe808e1a4e336dbf1cddc645d63c2e2f
Comment 1 Caio Marcelo de Oliveira Filho 2012-01-17 05:32:43 PST
Closing this bug since functionality is already implemented.

> - Blocking navigation from users;
> - Implementing "Open In New Tab" functionality. See Rekonq implementation of this feature https://gitorious.org/rekonq/mainline/commit/c2cf251dfe808e1a4e336dbf1cddc645d63c2e2f

Implemented in bug 65920, then merged in WebView after Desktop/Mobile views unification.


> - Implementing different schemes; both describe in See also https://bugs.webkit.org/show_bug.cgi?id=49370#c4

Implemented in bug 74931. Custom schemes API in WebView.