Bug 76416 - [Qt] QML WebView should be able to intercept link click
Summary: [Qt] QML WebView should be able to intercept link click
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 420+
Hardware: All All
: P3 Enhancement
Assignee: Nobody
URL: https://bugreports.qt.nokia.com/brows...
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-16 18:59 PST by Damian Jansen
Modified: 2014-02-03 03:19 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Damian Jansen 2012-01-16 18:59:48 PST
While using a QML webview in an application, the programmer should be able to control the navigation by intercepting clicks on the links.

Potential uses cases :

   * force the user to navigate a certain site/domain
      Example : The user is allowed to navigate in the job.mycompany.com domain, if he clicks on a link that's external to the job domain, we could show a popup with appropriate message
   * allow to launch the platform browser when the user click on a link

A signal similar to Text Element "onLinkActivated" should be available.

[From https://bugreports.qt.nokia.com/browse/QTBUG-21180]
Comment 1 Caio Marcelo de Oliveira Filho 2012-03-27 13:48:11 PDT
I think this is covered by the signal navigationRequested. See https://bugs.webkit.org/show_bug.cgi?id=72976 and further commits improving QWebNavigationRequest class (which contains information about the request).
Comment 2 Jocelyn Turcotte 2014-02-03 03:19:39 PST
=== Bulk closing of Qt bugs ===

If you believe that this bug report is still relevant for a non-Qt port of webkit.org, please re-open it and remove [Qt] from the summary.

If you believe that this is still an important QtWebKit bug, please fill a new report at https://bugreports.qt-project.org and add a link to this issue. See http://qt-project.org/wiki/ReportingBugsInQt for additional guidelines.