| Summary: | [Webapp] Error: "Can't move focus to the control" while performing search | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Snehasish Paul <snehpaul> | ||||
| Component: | User Assistance | Assignee: | platform-ua-inbox <platform-ua-inbox> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | cgold, snehpaul | ||||
| Version: | 4.2 | ||||||
| Target Milestone: | 3.8 M3 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Snehasish Paul
Created attachment 202163 [details]
Added try-catch block
Added a try-catch block. So when the toc view page is hidden, focusOnItem(...) method does not through exception on the page, when executes the anchor.focus() call at hidden anchor element.
I'm not seeing this problem. What build were you using? (In reply to comment #2) > I'm not seeing this problem. What build were you using? Steps to Reproduce: 1. Using Eclipse SDK version: 3.7.0 Build id: I20110727-2000 2. Open Help Contents in External browser (IE) 3. Select a HTML topic and wait till help content renders in the right content view, or else open: http://127.0.0.1:<xxxx>/help/topic/org.eclipse.jdt.doc.user/tips/jdt_tips.html 4. Type 'aaaa' as search keyword and press 'Enter' key (do not select 'Go' button). 5. Observe the IE browser status bar, shows an 'Error on Page' icon just for a second at some intermediate state, which again clears off. A JavaScript error is thrown "Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus.", occurs at line no. 214 of helptree.js If user has Visual Studio installed and use Eclipse Help browser to view the help, then user gets an error prompt. I have committed the suggested fix to the master branch |