[
https://issues.apache.org/jira/browse/NETBEANS-3249?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated NETBEANS-3249:
-------------------------------------
Labels: pull-request-available (was: )
> Chrome connector connection with NetBeans
> -----------------------------------------
>
> Key: NETBEANS-3249
> URL: https://issues.apache.org/jira/browse/NETBEANS-3249
> Project: NetBeans
> Issue Type: Bug
> Reporter: Geertjan Wielenga
> Priority: Major
> Labels: pull-request-available
>
> Here's a fix for the Chrome connector issue:
> https://netbeans.org/bugzilla/show_bug.cgi?id=245227#c15
> Also, in an e-mail by Rob Cooper, the reporter in the above, to me:
> {quote}The file I updated is -
>
> webcommon/extbrowser.chrome/src/org/netbeans/modules/extbrowser/plugins/ExternalBrowserPlugin.java
> I updated method urlToString(...) as follows -
> private String urlToString(URL url) {
> String urlStr;
> String badStart = "file:/private/var/";
> String goodStart = "file:/var/";
> try {
> // try to 'normalize' the URL
> urlStr = url.toURI().toASCIIString().toLowerCase();
> } catch (URISyntaxException ex) {
> urlStr = url.toExternalForm();
> }
> if (urlStr != null && urlStr.startsWith(badStart)) {
> return goodStart + urlStr.substring(badStart.length());
> }
> return urlStr;
> }
> {quote}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists