Closed
Description
Wanting to try out djdt-flamegraph, I fall onto a bug.
The issue is that <script>
tags loaded for panels are not executed (but included in the DOM). The function responsible for this is $$.executeScripts
. I modified it getting inspiration from StackOverflow, the following implementation works in my case:
executeScripts: function(root) {
root.querySelectorAll('script').forEach(function(e) {
var clone = document.createElement('script');
try {
clone.appendChild(document.createTextNode(e.innerHTML));
} catch (e) {
clone.text = e.innerHTML;
}
root.appendChild(clone);
});
},
I wanted other opinions before sending a pull request. I did not see another linked issue, is this recent? Does it concern other browsers? Will this solution be cross-browser?
Metadata
Metadata
Assignees
Labels
No labels