function getAttributableURLForTask(task, jsURLs) {
  const jsURL = task.attributableURLs.find(url => jsURLs.has(url));
  const fallbackURL = task.attributableURLs[0];
  let attributableURL = jsURL || fallbackURL;
  // If we can't find what URL was responsible for this execution, attribute it to the root page
  // or Chrome depending on the type of work.
  if (!attributableURL || attributableURL === 'about:blank') {
    if (BROWSER_TASK_NAMES_SET.has(task.event.name)) attributableURL = 'Browser';
    else if (BROWSER_GC_TASK_NAMES_SET.has(task.event.name)) attributableURL = 'Browser GC';
    else attributableURL = 'Unattributable';
  }

  return attributableURL;
}
@param {LH.Artifacts.TaskNode} task
@param {Set<string>} jsURLs
@return {string}