Bug 65919

Summary: [Qt] [WK2] Provide API for intercept (and possible ignore) navigation actions
Product: WebKit Reporter: Caio Marcelo de Oliveira Filho <cmarcelo>
Component: WebKit QtAssignee: Caio Marcelo de Oliveira Filho <cmarcelo>
Status: RESOLVED FIXED    
Severity: Normal CC: igor.oliveira
Priority: P2 Keywords: Qt, QtTriaged
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 65920    
Bug Blocks:    

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.