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

Skip to first unread message


Jan 29, 2023, 5:21:39 PMJan 29
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?


Jan 29, 2023, 7:43:32 PMJan 29
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


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

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


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

I don't think so. 

Mike Taylor

Jan 31, 2023, 12:23:59 PMJan 31
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:
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.


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


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
0 new messages