Closed Bug 1583891 Opened 5 years ago Closed 2 months ago

about:debugging should show origin attributes for dFPI and FPI

Categories

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

enhancement

Tracking

(firefox132 fixed)

RESOLVED FIXED
132 Branch
Tracking Status
firefox132 --- fixed

People

(Reporter: tjr, Assigned: fkilic)

References

(Blocks 1 open bug)

Details

(Whiteboard: [dfpi-ok])

Attachments

(1 file)

reddit.com registers a Service Worker, so from a new profile, go to reddit, and see the service worker in about:serviceworkers and about:debugging. Then enable privacy.firstparty.isolate and go to reddit again. about:serviceworkers will show two; about:debugging only one.

I also noticed that if you get a Service Worker for the same domain in different Containers (User Context Ids) it's not possible to distinguish them on about:debugging.

I tried following the code to where we list SWs different in about:serviceworkers and about:debugging but was not able to find it...

The priority flag is not set for this bug.
:jdescottes, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(jdescottes)

Feel free to bump the priority if you feel like this is a blocking issue.
I don't think the user impact is huge, but I'm open to discuss this.

Flags: needinfo?(jdescottes)
Priority: -- → P3

Belen, should we track this for Application panel as well or is it not affected?

Flags: needinfo?(balbeza)

There's no Service Worker with First-Party Domain when dFPI is on, only 1 is shown in about:serviceworkers and about:debugging.

Whiteboard: [dfpi-ok]

That reads like dFPI isn't affected, removing the meta bug.

No longer blocks: DynamicFirstPartyIsolation

Clear a needinfo that is pending on an inactive user.

For more information, please visit auto_nag documentation.

Flags: needinfo?(balbeza)
Severity: normal → S3

Could this issue be already fixed somehow? I'm getting two service workers. https://www.reddit.com^firstPartyDomain=reddit.com and https://www.reddit.com. Both of them appear in about:debugging and about:serviceworkers, altough about:serviceworkers show firstPartyDomain too while about:debugging doesn't. I couldn't really find out why.

It seems we fetch the service workers here https://searchfox.org/mozilla-central/rev/0386e3e47504286ee176ab373a0562262e7c98b4/devtools/client/aboutdebugging/src/actions/debug-targets.js#291-321, but I don't know what exactly we get. I can try to fix it if we get the principal in that function.

Well, the fact that it doesn't show on about:debugging is fixed, but I think we would still want a way to distinguish between the two there...

This patch aims to match URL's shown in about:serviceworkers and about:debugging page.

By switching to origin instead of URL, we can differentiate service workers registered in third party contexts and FPI.

Assignee: nobody → fkilic
Status: NEW → ASSIGNED
Attachment #9423916 - Attachment description: Bug 1583891: Show service worker URL with origin attributes. r?tjr → Bug 1583891: Display workers' origin attributes. r?tjr
Type: defect → enhancement
Summary: When FPI is enabled, about:debugging does not list Service Workers that have a firstPartyDomain attribute → about:debugging should show origin attributes for dFPI and FPI
Pushed by fkilic@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0f19c57ab591 Display workers' origin attributes. r=devtools-reviewers,fluent-reviewers,bolsson,ochameau
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 132 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: