JDK-7133084 : Should be able to ask cookie or proxy from browser with URI has javascript scheme
  • Type: Enhancement
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Won't Fix
  • OS: generic
  • CPU: generic
  • Submitted: 2012-01-25
  • Updated: 2015-11-17
  • Resolved: 2015-11-17
Related Reports
Relates :  
Description
URL with javascript: as protocol is valid for various browser operations, java plugin should be able to communicate with browser for that sort of URL. While the API pass to browser usually take string as parameter, there are a couple places in Java plugin code ask for URL type.

However, when try to construct a URL instance with "javascript" as protocol, MalformedURLException could be thrown. See CR 7038890.

Under most circumstances, we should probably use URI class instead of URL as what we need to deal with is a valid URI string, not necessary we want to open the URLConnection.