/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at . */ "use strict"; // Assert debugger's behavior when a given source has many related actors: // * Two iframe `); }); let views = 1; httpServer.registerPathHandler("/script.js", (request, response) => { response.setHeader("Content-Type", "application/javascript"); // Avoid the request from being cached and should force a new request on each usage of it response.setHeader("Cache-Control", "no-store"); // Each request made for this URL will provide a new content const content = "\n".repeat(views) + `console.log("#${views} script");`; response.write(content); views++; }); const BASE_URL = `http://localhost:${httpServer.identity.primaryPort}/`; add_task(async function () { info("Start test for relocation of breakpoint set in a function"); const dbg = await initDebuggerWithAbsoluteURL( `${BASE_URL}doc-sources-with-many-actors.html` ); info("Create the first script.js instance as a