@@ -647,7 +647,7 @@ function parseCodeFile(fileUri) {
647
647
) ;
648
648
649
649
if ( ! urls ) {
650
- urls = line . match ( / [ " ' ] m o z - s r c : \/ \/ \/ [ ^ " ' ] + [ " ' ] / g) ;
650
+ urls = line . match ( / [ " ' ] m o z - s r c : \/ \/ [ ^ " ' ] + [ " ' ] / g) ;
651
651
}
652
652
653
653
if ( ! urls ) {
@@ -879,19 +879,18 @@ add_task(async function checkAllTheFiles() {
879
879
const libxul = await IOUtils . read ( PathUtils . xulLibraryPath ) ;
880
880
findChromeUrlsFromArray ( libxul , "chrome://" ) ;
881
881
findChromeUrlsFromArray ( libxul , "resource://" ) ;
882
- findChromeUrlsFromArray ( libxul , "moz-src:/// " ) ;
882
+ findChromeUrlsFromArray ( libxul , "moz-src://" ) ;
883
883
// Handle NS_LITERAL_STRING.
884
884
let uint16 = new Uint16Array ( libxul . buffer ) ;
885
885
findChromeUrlsFromArray ( uint16 , "chrome://" ) ;
886
886
findChromeUrlsFromArray ( uint16 , "resource://" ) ;
887
- findChromeUrlsFromArray ( uint16 , "moz-src:/// " ) ;
887
+ findChromeUrlsFromArray ( uint16 , "moz-src://" ) ;
888
888
889
889
const kCodeExtensions = [
890
890
".xml" ,
891
891
".xsl" ,
892
892
".mjs" ,
893
893
".js" ,
894
- ".jsm" ,
895
894
".json" ,
896
895
".html" ,
897
896
".xhtml" ,
@@ -1017,7 +1016,8 @@ add_task(async function checkAllTheFiles() {
1017
1016
if ( isDevtools ) {
1018
1017
if (
1019
1018
ref . startsWith ( "resource://app/components/" ) ||
1020
- ( file . startsWith ( "chrome://" ) && ref . startsWith ( "resource://" ) )
1019
+ ( file . startsWith ( "chrome://" ) &&
1020
+ ( ref . startsWith ( "resource://" ) || ref . startsWith ( "moz-src://" ) ) )
1021
1021
) {
1022
1022
return false ;
1023
1023
}
0 commit comments