[Webkit-unassigned] [Bug 34889] New: [Qt] QWebPage::linkClicked signal not triggered for JavaScript links

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 12 06:39:32 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=34889

           Summary: [Qt] QWebPage::linkClicked signal not triggered for
                    JavaScript links
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P3
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: bero at arklinux.org


The following (usually identical) links trigger different behavior with
QWebPage:

<a href="test.html">Test</a>
<a href="javascript:window.location='test.html';">Test</a>

The former triggers the linkClicked() signal and is therefore passed on to the
application if requested - the latter goes through immediately.

While I can see the current behavior making some sense, there are also cases
(probably the more common ones) where emitting linkClicked() for a javascript
window.location=whatever; call would make sense.

Maybe a new QWebPage::LinkDelegationPolicy member (DelegateJSLinks or
something) would be the best way to solve it (with DelegateAllLinks probably
including JS ones)

-- 
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