Browse Source

fcl-js: srcmap: disable safety header by default, because not supported by Firefox

git-svn-id: trunk@38029 -
Mattias Gaertner 7 years ago
parent
commit
c98c70548a
2 changed files with 4 additions and 4 deletions
  1. 1 1
      packages/fcl-js/src/jssrcmap.pas
  2. 3 3
      utils/pas2js/docs/translation.html

+ 1 - 1
packages/fcl-js/src/jssrcmap.pas

@@ -58,7 +58,7 @@ type
     );
     );
   TSourceMapOptions = set of TSourceMapOption;
   TSourceMapOptions = set of TSourceMapOption;
 const
 const
-  DefaultSourceMapOptions = [smoAddMonotonous,smoSafetyHeader];
+  DefaultSourceMapOptions = [smoAddMonotonous];
 type
 type
 
 
   { TSourceMap }
   { TSourceMap }

+ 3 - 3
utils/pas2js/docs/translation.html

@@ -2680,9 +2680,9 @@ End.
     <i>-Jminclude</i>.<br>
     <i>-Jminclude</i>.<br>
     <br>
     <br>
     To show the generated mapping for each line you can use the tool fpc/packages/fcl-js/examples/srcmapdump.<br>
     To show the generated mapping for each line you can use the tool fpc/packages/fcl-js/examples/srcmapdump.<br>
-    <li>The sourcemap starts with the line <i>)]}</i> to avoid potential XSSI
-    (cross site script inclusion) issues. This is recommended in the specifications
-    and the browser should ignore it. See here
+    <li>According to the specifications sourcemap should start with the XSSI
+    (cross site script inclusion) protection header <i>)]}</i>, but some browsers
+    don't support that. Enable it with -Jmxssiheader. See here the specs:
     https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit#heading=h.h7yy76c5il9v
     https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit#heading=h.h7yy76c5il9v
     </li>
     </li>
     </div>
     </div>