Closed Bug 972633 Opened 11 years ago Closed 10 years ago

Show blob scripts in the debugger

Categories

(DevTools :: Debugger, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: PatrickWesterhoff, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Scripts that are loaded dynamically via blobs currently don’t appear in the debugger. In contrast, Chrome’s developer tools are able to show them just fine.

For example mega.co.nz does this to load all their assets. The code in question looks like this:

    var blob = new Blob(data, { type: 'text/javascript' });
    var script = document.createElement('script');
    script.type = 'text/javascript';
    script.src = window.URL.createObjectURL(blob);
    document.getElementsByTagName('head')[0].appendChild(script);

It would be nice if the debugger could pick up scripts loaded like this too.

(The same applies to CSS loaded this way btw.)
(In reply to Patrick Westerhoff from comment #0)
> (The same applies to CSS loaded this way btw.)

In the inspector rules view or in the source editor sources? File a new bug in the appropriate component with more details please.
Sure thing, opened bug #972650 for the style sheets.
Priority: -- → P3
I can confirm this behaviour in Firefox 33.0
Works for me, now. I assume it was bug 905700 that fixed it.
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: