When we are loading multiple source from the same URL, we end up with one Redux source object, but multiple source-actor objects (and related source actors, and related Debugger.Source objects). But the frontend only fetch the first source actor text content. Because of that, when we are hitting a breakpoint on all but the very first loaded script, the source text content will be wrong. STR: * open a page with `<script src=script.js>` and script.js=`console.log("foo"); debugger` * change script.js to `console.log("bar"); debugger` * reload the page Actual result: `console.log("foo"); debugger` is shown in the editor Expected result: `console.log("bar"); debugger` should be shown instead.
Bug 1751063 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
When we are loading multiple source from the same URL, we end up with one Redux source object, but multiple source-actor objects (and related source actors, and related Debugger.Source objects). But the frontend only fetch the first source actor text content. Because of that, when we are hitting a breakpoint on all but the very first loaded script, the source text content will be wrong. STR: * open a page with `<script src=script.js>` and script.js=`console.log("foo"); debugger` * change script.js to `console.log("bar"); debugger` * re-add the same `<script src=script.js>` Actual result: `console.log("foo"); debugger` is shown in the editor Expected result: `console.log("bar"); debugger` should be shown instead.