Open Bug 1556648 Opened 1 year ago Updated 1 year ago

Investigate serviceworker registration issue in multie10s aboutdebugging mochitest

Categories

(DevTools :: about:debugging, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: jdescottes, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

Follow up to Bug 1533111.

We are adding a 1s wait in browser_aboutdebugging_serviceworker_multie10s.js to avoid an intermittent failure. When aboutdebugging starts too quickly, we will never get the service worker registration in the RUNNING state in the first part of the test:

  info("Wait until the service worker appears and is running");
  await waitUntil(() => {
    const target = findDebugTargetByText(SERVICE_WORKER, document);
    const status = target && target.querySelector(".qa-worker-status");
    return status && status.textContent === "Running";
  });

https://searchfox.org/mozilla-central/rev/f8b11433159cbc9cc80500b3e579d767473fa539/devtools/client/aboutdebugging-new/test/browser/browser_aboutdebugging_serviceworker_multie10s.js#55-60

We should investigate more to understand why this times out. Is it because the service worker itself is not visible? Is it because we are missing the RUNNING state? And based on this information, maybe we can find a more appropriate fix for this issue.

Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.