WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
UNCONFIRMED
20842
decidePolicyForNavigationAction not called for subsequent clicks on fragment anchors
https://bugs.webkit.org/show_bug.cgi?id=20842
Summary
decidePolicyForNavigationAction not called for subsequent clicks on fragment ...
Jeff Johnson
Reported
2008-09-14 11:24:30 PDT
Overview Description: Some anchors consist entirely of fragments, e.g., <a href="#m">M</a>. The first time you click on such an anchor, the <WebPolicyDelegate> method -(void)webView:(WebView *)sender decidePolicyForNavigationAction:(NSDictionary *)actionInformation request:(NSURLRequest *)request frame:(WebFrame *)frame decisionListener:(id<WebPolicyDecisionListener>)listener is called. However, the method is not called on subsequent clicks on the anchor. Steps to Reproduce: 1) Unzip, open, build, and run attached sample Xcode project DecidePolicyFragments. 2) Enter the URL
http://www.w3.org/TR/html401/index/list.html
in the text field and press return. 3) After the webview is loaded, click in the webview to give it focus. 4) Click on the "M" link at the top of the page. 5) Scroll back up to the top of the document. 6) Click the "M" link again. Actual Results: decidePolicyForNavigationAction is not called Expected Results: decidePolicyForNavigationAction should be called Build Date & Platform: Build 2008-09-14 04:33:37 -0500 (Sun, 14 Sep 2008), WebKit svn revision 36403 Additional Builds and Platforms: Mac OS X 10.5.4 Build 9E17, Mac OS X 10.4.11 Build 8S2167 Additional Information: If you click "M", click a different link such as "N", and then click "M" again, decidePolicyForNavigationAction does get called. The bug only occurs if you click the same link multiple times in a row. This problem is reproducible with any fragment anchor.
Attachments
Sample Xcode project
(17.27 KB, application/octet-stream)
2008-09-14 11:25 PDT
,
Jeff Johnson
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Jeff Johnson
Comment 1
2008-09-14 11:25:28 PDT
Created
attachment 23414
[details]
Sample Xcode project
Jeff Johnson
Comment 2
2008-09-14 11:27:27 PDT
To clarify the Actual Results, decidePolicyForNavigationAction does not get called after Step 6. It does get called after step 4. It should get called after both 4 and 6.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug