init WEB-6413 sourcemap backed breakpoints do not work until page is loaded

This commit is contained in:
Vladimir Krivosheev
2013-10-29 18:45:09 +01:00
parent 4cfc28593b
commit ed14625bca
2 changed files with 10 additions and 1 deletions
@@ -23,6 +23,10 @@ public final class UrlImpl implements Url {
private String externalFormWithoutParameters;
public UrlImpl(@NotNull String scheme, @Nullable String authority, @Nullable String path) {
this(null, scheme, authority, path, null);
}
public UrlImpl(@Nullable String raw, @NotNull String scheme, @Nullable String authority, @Nullable String path, @Nullable String parameters) {
this.raw = raw;
this.scheme = scheme;
@@ -32,6 +32,11 @@ public final class Urls {
return result;
}
@NotNull
public static Url newHttpUrl(@Nullable String authority, @Nullable String path) {
return new UrlImpl("http", authority, path);
}
@Nullable
public static Url parse(@NotNull String url, boolean asLocalIfNoScheme) {
if (asLocalIfNoScheme && !URLUtil.containsScheme(url)) {
@@ -101,7 +106,7 @@ public final class Urls {
public static Url newFromVirtualFile(@NotNull VirtualFile file) {
String path = file.getPath();
if (file.isInLocalFileSystem()) {
return new UrlImpl(null, file.getFileSystem().getProtocol(), null, path, null);
return new UrlImpl(file.getFileSystem().getProtocol(), null, path);
}
else {
return parseUrl(file.getUrl(), false);