Open Bug 1751067 Opened 3 years ago

Cover loading sources using the same URL

Categories

(DevTools :: Debugger, task)

task

Tracking

(Not tracked)

People

(Reporter: ochameau, Unassigned)

References

(Blocks 1 open bug)

Details

The debugger frontend has explicit support for loading the same URL in many distinct script.
This will lead to a unique Source object and many SourceActor objects.
Then all the code try to acknowledge this fact.
But it is somtimes broken (ex bug 1751063).

We rarely have test covering this edgecase, so a first good step might be to cover all the possible ways to load the same URL in distinct ways:

  • load an URL via a <script src>
  • load an URL as a worker
  • eval a script using //# sourceURL=${url}
  • do all this from an iframe
  • do all this more than once
  • ???

Bonus point: have the server to distribute a distinct content for each load!

Then, try to cover key feature that may be problematic because of this.

You need to log in before you can comment on or make changes to this bug.