Bug 76416
| Summary: | [Qt] QML WebView should be able to intercept link click | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Damian Jansen <damian.jansen> |
| Component: | New Bugs | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED INVALID | ||
| Severity: | Enhancement | CC: | cmarcelo, grego |
| Priority: | P3 | ||
| Version: | 420+ | ||
| Hardware: | All | ||
| OS: | All | ||
| URL: | https://bugreports.qt.nokia.com/browse/QTBUG-21180 | ||
Damian Jansen
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]
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Caio Marcelo de Oliveira Filho
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).
Jocelyn Turcotte
=== 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.