Skip to content

<script> tags are not executed in Firefox 75 #1264

Closed
@tleb

Description

@tleb

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions