Open Bug 1473257 Opened 8 years ago Updated 1 year ago

Service Worker list should also include iframe origins

Categories

(DevTools :: Application Panel, enhancement, P4)

enhancement

Tracking

(Fission Milestone:Future)

Fission Milestone Future

People

(Reporter: Harald, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: dt-fission-future)

User Story

As a developer of a complex web application that includes some microservices via iframes I need to inspect service workers across all frames.

Requirement: The default origin list that filters down the SW list in the application panel should include the top-level origin and all iframes.
No description provided.
Priority: -- → P2
Priority: P2 → P4

From Bug 1667755

STRs:

ER: We should see the service worker registered by the frame pointing to https://firefox-devtools-waiting-sw.glitch.me/ . Note that if you open https://firefox-devtools-waiting-sw.glitch.me/ in a new tab and open the application panel for this tab, you will successfully see the service worker registered.

Currently the application panel is filtering the list of service workers based on the domain of the top target:

    // Filter out workers from other domains
    const domainWorkers = registrations.filter(
      x => x.workers.length > 0 && new URL(x.workers[0].url).hostname === domain
    );

https://searchfox.org/mozilla-central/rev/670e13b51d272125c76a1bf84b9f3707583cde12/devtools/client/application/src/components/service-workers/WorkersPage.js#40

The domain here comes from the component props, which originally comes from:

  updateDomain() {
    this.actions.updateDomain(this.toolbox.target.url);
  },

https://searchfox.org/mozilla-central/rev/670e13b51d272125c76a1bf84b9f3707583cde12/devtools/client/application/initializer.js#112

STR:

  1. Load http://janodvarko.cz/tests/fission/case7/index.html
  2. Wait till the remote iframe is fully loaded (it goes from Glitch and might take some time)
  3. Open DevTools Toolbox and select the Appliction panel.
  4. The panel should show one Service workers (sw.js) from firefox-devtools-waiting-sw.glitch.me

You can also click the link in Open the remote iframe in another tab to see that the SW is visible in the App panel if loaded in top level document.

Honza

Has STR: --- → yes
Whiteboard: dt-fission-m3-mvp
Whiteboard: dt-fission-m3-mvp → dt-fission-m3-reserve

Tracking dt-fission-m3-reserve bugs for Fission M8 (blocking Release channel experiment, but not Beta experiment).

Fission Milestone: --- → M8

Moving "dt-fission-m3-reserve" bugs to "dt-fission-future" because they don't block Fission MVP.

Fission Milestone: M8 → Future
Whiteboard: dt-fission-m3-reserve → dt-fission-future
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.