You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Provide some source information for scripts without source information #11
This includes <script>...</script> and <button onclick="...">. Those inline scripts currently show an empty sourceURL and character position, would be good to figure out how to represent them better.
Actually testing this I see that we do get source information for those, what we don't get is source information for e.g. setTimeout("string"), not sure what the source information for that should be...
changed the title [-]Provide some source information for inline scripts[/-][+]Provide some source information for scripts without source information[/+]on May 17, 2024
Would be great to log id / data-attribute / something else for inline scripts. We have a lot of inline script inside our page, and loaf entries for them are useless.
Activity
noamr commentedon Apr 4, 2024
Actually testing this I see that we do get source information for those, what we don't get is source information for e.g.
setTimeout("string"), not sure what the source information for that should be...[-]Provide some source information for inline scripts[/-][+]Provide some source information for scripts without source information[/+]proofyman commentedon Jul 23, 2024
Would be great to log id / data-attribute / something else for inline scripts. We have a lot of inline script inside our page, and loaf entries for them are useless.
andydavies commentedon Dec 10, 2024
This is achievable today using
//# sourceURL=fooSee this page for an example https://andydavies.github.io/agent-tests/loaf/sourceurl.html
Not sure how workable the solution is but it's what
sourceURLwas designed for.Other challenge will be getting
sourceURLadded to injected snippets and there might be some other draw backs I'm not aware of too