Bug 1932023 Comment 3 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

(In reply to Alexandre Poirot [:ochameau] from comment #2)
> Another occurence on https://rosasthai.com/locations against `locations` HTML file, which seems to reproduce more consistantly.

Looks like the index contains several scripts, and for the second one we get the wrong indices and try to prettify the following string:
```
>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-P4ML2
```
(In reply to Alexandre Poirot [:ochameau] from comment #2)
> Another occurence on https://rosasthai.com/locations against `locations` HTML file, which seems to reproduce more consistantly.

Looks like the index contains several scripts, and for the second one we get the wrong indices and try to prettify the following string:
```
>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-P4ML2
```

Edit: Interestingly this doesn't reproduce by simply reusing the exact same HTML

Back to Bug 1932023 Comment 3