[Webkit-unassigned] [Bug 13543] javascript: links don't honor the target attribute

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 20 04:50:59 PST 2009


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





------- Comment #6 from sharvani.bugzilla at gmail.com  2009-02-20 04:50 PDT -------
My observations are as follows, 

1)In the API FrameLoader::urlSelected() I found that the case when there is a
target attribute along with javascript, target is ignored.
 Here if the link is javascript then the script is executed and the control
returns without considering the target attribute.The target attribute is
considered only if its not a javascript.
 I tried the following,
 1) Execute the javascript directly if the target is empty.
 2) If the target is not empty then load the form and then execute the script
in the new form.

Now the safari is failing to load the URL on the target while doing navigation
policy check.

WebFrame::dispatchDecidePolicyForNavigationAction()
{
if
(SUCCEEDED(policyDelegate->decidePolicyForNavigationAction(d->webView,
actionInformation.get(), urlRequest.get(), this,
setUpPolicyListener(function).get()))) 
return;
}
This check is failing.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list