RESOLVED INVALID 94360
[Qt] QWebPage::DelegateExternalLinks doesn't work correctly
https://bugs.webkit.org/show_bug.cgi?id=94360
Summary [Qt] QWebPage::DelegateExternalLinks doesn't work correctly
Dmitry Shachnev
Reported 2012-08-17 10:48:12 PDT
QWebPage::DelegateExternalLinks option seems equal to QWebPage::DelegateAllLinks: - <a href="#someid"> is definitely an internal link; it's delegated and the resulted url is "about:blank#someid" - <a href="page.html"> is also an internal link; it's delegated In my ReText editor, I have a hack that works around this problem: if urlstr.startswith('file://') or not (':/' in urlstr): self.previewBoxes[self.ind].load(url) elif urlstr.startswith('about:blank#'): self.previewBoxes[self.ind].page().mainFrame().scrollToAnchor(urlstr[12:]) else: QDesktopServices.openUrl(url)
Attachments
Jocelyn Turcotte
Comment 1 2014-02-03 03:22:06 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.
Note You need to log in before you can comment on or make changes to this bug.