pastojs: source map: prepend absolute source files with file:// if sourceroot

git-svn-id: trunk@42869 -
This commit is contained in:
Mattias Gaertner 2019-08-29 07:12:48 +00:00
parent aa5b2bb027
commit 0ed305fe31

View File

@ -2273,8 +2273,12 @@ begin
MapFilename:=LocalFilename;
end;
end;
if FilenameIsAbsolute(MapFilename) then
if FilenameIsAbsolute(MapFilename)
and SameText(SrcMapSourceRoot,'file://') then
begin
// Firefox needs the "file://" schema with every file
MapFilename:='file://'+MapFilename;
end;
{$IFNDEF Unix}
// use / as PathDelim
if PathDelim<>'/' then