| Summary: | MalformedURLException: unknown protocol: about | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Grant Gayed <grant_gayed> | ||||
| Component: | User Assistance | Assignee: | Chris Goldthorpe <cgold> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | cgold, yule | ||||
| Version: | 3.6.1 | ||||||
| Target Milestone: | 3.7 M3 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows Vista | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Grant Gayed
I am getting the same issue. It is clear that the problem arises out of Java.net.Url not recognising 'about' as a valid protocol. Yet about:blank is a commonly used non standardised uri. Perhaps changing the catch in ReusableHelpPart.browserChanged() to not log an error if about:blank is encountered. Although it may be helpful to log a warning. Not logging the error seems like the simplest solution. The exception is being thrown in java.net so I would expect that this bug would not be specific to Windows 7. It would help a lot if you could come up with the steps to reproduce this bug since I have not been able to recreate it so far. Created attachment 179333 [details]
Patch
I was able to reproduce the problem by creating a document with a hyperlink to about:blank and following that link. The best fix seems to be to let the exception fall through without logging an error, which also causes the url "about:blank" not to be added to the history, which I think is reasonable.
Patch applied to HEAD, Fixed |