Did Chromium 112 change how WindowClients are set/not set?

160 views
Skip to first unread message

guest271314

unread,
Jan 29, 2023, 5:21:39 PM1/29/23
to Chromium-dev
On Chromium 112 when I append an iframe to a document with src set to a chrome-extension: URL the document is no longer registered as a WindowClient in the ServiceWorker and navigator.serviceWorker.getRegistrations() also returns an empty array.

Is this working as intended? When, where, and why was the behaviour changed?

guest271314

unread,
Jan 29, 2023, 7:43:32 PM1/29/23
to Chromium-dev, guest271314

The cause of this on Chromium 112 is evidently rooted in at chrome://flags

Experimental third-party storage partitioning.
Enables partitioning of third-party storage by top-level site. Note: this is under active development and may result in unexpected behavior. Please file bugs at https://bugs.chromium.org/p/chromium/issues/entry?labels=StoragePartitioning-trial-bugs&components=Blink%3EStorage. – Mac, Windows, Linux, ChromeOS, Android, Fuchsia, Lacros

#third-party-storage-partitioning

See privacycg/storage-partitioning#25 https://groups.google.com/a/chromium.org/g/net-reviews/c/itOHk-vM8r8.

Either disable at chrome://flags or launch with --disable-features=ThirdPartyStoragePartitioning flag for a chrome-extension: protocol iframe appended to a document on the Web to be set as WindowClient and ability to get the active MV3 extension ServiceWorker with navigator.serviceWorker.getRegistrations().

Olamide bobby

unread,
Jan 30, 2023, 4:30:01 PM1/30/23
to Chromium-dev, guest...@gmail.com
It is working perfectly as of recent research and report. 

guest271314

unread,
Jan 30, 2023, 8:51:39 PM1/30/23
to Chromium-dev, olamid...@gmail.com, guest271314
> It is working perfectly as of recent research and report. 

I don't think so. 

Mike Taylor

unread,
Jan 31, 2023, 12:23:59 PM1/31/23
to guest...@gmail.com, Chromium-dev
Do you have chrome://flags/#enable-experimental-web-platform-features enabled? That would enable third-party storage partitioning (unless you did turn on #third-party-storage-partitioning
at some pint) but otherwise this should be considered a bug.
--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/b4164ccc-1596-473c-b5a5-0355a3049c5bn%40chromium.org.


guest271314

unread,
Feb 1, 2023, 2:09:21 AM2/1/23
to Mike Taylor, Chromium-dev
> Do you have chrome://flags/#enable-experimental-web-platform-features enabled? 

Yes.

I did not enable Experimental third-party storage partitioning. This breaks  ServiceWorker/WindowClient. I havn't tested localhost embedded in an iframe cross-origin, with appropriate headers served.

Is the expected result to for the iframe to not be a WindowClient of ServiceWorker?


Reply all
Reply to author
Forward
0 new messages