[Webkit-unassigned] [Bug 94360] New: [Qt] QWebPage::DelegateExternalLinks doesn't work correctly
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Aug 17 10:47:38 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=94360
Summary: [Qt] QWebPage::DelegateExternalLinks doesn't work
correctly
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: Linux
Status: UNCONFIRMED
Severity: Normal
Priority: P3
Component: WebKit Qt
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: mitya57 at gmail.com
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)
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list