You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Geertjan Wielenga (Jira)" <ji...@apache.org> on 2019/10/18 10:00:04 UTC
[jira] [Created] (NETBEANS-3249) Chrome connector connection with
NetBeans
Geertjan Wielenga created NETBEANS-3249:
-------------------------------------------
Summary: 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
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: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists