https://github.com/w3c/window-management/blob/main/EXPLAINER_spec_and_permission_rename.md
https://w3c.github.io/window-management/#api-permission-api-integration
Removes the legacy "window-placement" alias for permission and permission policy "window-management". This is a follow-up to https://chromestatus.com/feature/5146352391028736 and corresponding blink-dev PSA. The "window-placement" alias has been showing console deprecation warnings since M113. We will disable WindowPlacementPermissionAlias by default, and remove the flag and legacy code shortly thereafter.
No feedback was specifically requested for the permission rename, however related TAG reviews have been requested with both the old (1, 2) and new terminology (3).
Not applicable
There are low compatibility risks. Usage for the legacy permission and permission policy are ~0.006 and ~0.015 (% page loads) while the new variants are ~1.166 and ~3.066 (% page loads) respectively, indicating most usage has already migrated.
Gecko: No signal
Firefox has not implemented the API and corresponding permission yet.
WebKit: No signal
Safari has not implemented the API and corresponding permission yet.
Web developers: We have communicated internally with partners using the API who have expressed commitment to updating the permission strings in their code.
Other signals: Positive comment from W3C WG Chair
This is considered low risk. It removes an alias without any change in behavior of the underlying API.
Disabling WindowPlacementPermissionAlias will stop DevTools deprecation warnings for usage of the legacy strings and instead will act as if they did not exist at all (e.g. Permission API will produce an error when using "window-placement").
No. This feature is not supported on Android.
Yes. Web Platform tests have already been migrated to the new alias:
https://github.com/web-platform-tests/wpt/tree/master/window-management
None
WindowPlacementPermissionAlias
False
https://bugs.chromium.org/p/chromium/issues/detail?id=1328581
M123 (flag disable) M125 (flag/code removal)
None
https://chromestatus.com/feature/5137018030391296
This intent message was generated by Chrome Platform Status.
Hi Brad,
Contact emails
Explainer
https://github.com/w3c/window-management/blob/main/EXPLAINER_spec_and_permission_rename.md
Specification
https://w3c.github.io/window-management/#api-permission-api-integration
Summary
Removes the legacy "window-placement" alias for permission and permission policy "window-management". This is a follow-up to https://chromestatus.com/feature/5146352391028736 and corresponding blink-dev PSA. The "window-placement" alias has been showing console deprecation warnings since M113. We will disable WindowPlacementPermissionAlias by default, and remove the flag and legacy code shortly thereafter.
Blink component
TAG review
No feedback was specifically requested for the permission rename, however related TAG reviews have been requested with both the old (1, 2) and new terminology (3).
TAG review status
Not applicable
Risks
Interoperability and Compatibility
There are low compatibility risks. Usage for the legacy permission and permission policy are ~0.006 and ~0.015 (% page loads) while the new variants are ~1.166 and ~3.066 (% page loads) respectively, indicating most usage has already migrated.
Gecko: No signal
Firefox has not implemented the API and corresponding permission yet.
WebKit: No signal
Safari has not implemented the API and corresponding permission yet.
Web developers: We have communicated internally with partners using the API who have expressed commitment to updating the permission strings in their code.
Other signals: Positive comment from W3C WG Chair
WebView application risks
This is considered low risk. It removes an alias without any change in behavior of the underlying API.
Debuggability
Disabling WindowPlacementPermissionAlias will stop DevTools deprecation warnings for usage of the legacy strings and instead will act as if they did not exist at all (e.g. Permission API will produce an error when using "window-placement").
Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, ChromeOS, Android, and Android WebView)?
No. This feature is not supported on Android.
Is this feature fully tested by web-platform-tests?
Yes. Web Platform tests have already been migrated to the new alias:
https://github.com/web-platform-tests/wpt/tree/master/window-management
Flag name on chrome://flags
None
Finch feature name
WindowPlacementPermissionAlias
Requires code in //chrome?
False
Tracking bug
https://bugs.chromium.org/p/chromium/issues/detail?id=1328581
Estimated milestones
M123 (flag disable) M125 (flag/code removal)
Anticipated spec changes
None
Link to entry on the Chrome Platform Status
https://chromestatus.com/feature/5137018030391296
This intent message was generated by Chrome Platform Status.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CALEeEUCdqsmmEhBROkinxbzTULFPXnC8goANs6-_O8n3%2B%3D47hQ%40mail.gmail.com.
On Tue, Feb 6, 2024 at 9:36 PM Mike Taylor <mike...@chromium.org> wrote:Hi Brad,
On 2/6/24 3:49 PM, Brad Triebwasser wrote:
I'm a little bit confused here - it seems like the PSA of the alias is being treated as the beginning of a deprecation, is that correct? My interpretation of "will lead to a deprecation and removal" from the original message was that it would be followed with an Intent to Deprecate and Remove (per https://www.chromium.org/blink/launching-features/#deprecate), but it seems like that step of the process was skipped.Contact emails
Explainer
https://github.com/w3c/window-management/blob/main/EXPLAINER_spec_and_permission_rename.md
Specification
https://w3c.github.io/window-management/#api-permission-api-integration
Summary
Removes the legacy "window-placement" alias for permission and permission policy "window-management". This is a follow-up to https://chromestatus.com/feature/5146352391028736 and corresponding blink-dev PSA. The "window-placement" alias has been showing console deprecation warnings since M113. We will disable WindowPlacementPermissionAlias by default, and remove the flag and legacy code shortly thereafter.
Yes, I never sent out a separate "Intent to Deprecate" in this case. The original PSA was intended to be a hybrid of the introduction of the new names and deprecation of the old ones so we also landed deprecation code (DevTools deprecation warnings etc.) during that time. Since these have already been "deprecated" since M113, I wasn't sure if a separate "intent to deprecate" was appropriate in this case since we already deprecated them and monitored usage to be sufficiently low, but I can back-up and send an I2D if recommended here.
These percentages are still relatively high, especially for the permissions policy variant. Besides the obvious fingerprint.js usage (which shouldn't break pages... I would hope), can you describe what the failure mode is after the proposed removal is? Have you dug into the remaining usage to verify?
Blink component
TAG review
No feedback was specifically requested for the permission rename, however related TAG reviews have been requested with both the old (1, 2) and new terminology (3).
TAG review status
Not applicable
Risks
Interoperability and Compatibility
There are low compatibility risks. Usage for the legacy permission and permission policy are ~0.006 and ~0.015 (% page loads) while the new variants are ~1.166 and ~3.066 (% page loads) respectively, indicating most usage has already migrated.
Yes, I dug into the remaining usage quite extensively via Web Archive queries and UKM and couldn't find any usages other than what looked like fingerprinting. After removal, the permission API will produce an error due to an unknown permission, and the permission policy will silently fail (e.g. iframes with allow='window-placement' will not have access to the features). I beleive that the numbers shifting several orders of magnitude in favor of the new strings seems to indicate legitamite usage has migrated, and the remainig usage likely fingerprinting.
Mind linking to the original API position requests here in this thread?
Does this permission do anything on WebView? I would have guessed no.
Web developers: We have communicated internally with partners using the API who have expressed commitment to updating the permission strings in their code.
Other signals: Positive comment from W3C WG Chair
WebView application risks
This is considered low risk. It removes an alias without any change in behavior of the underlying API.
Your correct, this window management API doesn't apply to WebView so there is no impact there.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CALEeEUBYrF50-%3Dp8umAxQLaEttR-jW4WRfWyF5AATV2p29w17w%40mail.gmail.com.
Agree that the risk feels low... one thing to perhaps check for
(if you have UKM or use counters) is to see if there is any legit
usage on sites of `navigator.permissions.query()` that isn't
catching errors, since that will throw a TypeError and can break a
page.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CALEeEUDd9YoriLSXG3h7usjpyJThZ4W3%2BixTCdVK2PhS0p9_Rw%40mail.gmail.com.
On Fri, Feb 16, 2024 at 8:19 PM Brad Triebwasser <btr...@chromium.org> wrote:Can you detail what these two different counters represent?Our typical threshold is about half of the lower one (~0.0003%), but that varies based on the potential breakage.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAOmohSL%3DB4B7EEdp%2B5xV8QfT5MFre%2BDbrfv%2B65HEp2z8xdH-bg%40mail.gmail.com.
On Mon, Feb 19, 2024 at 12:10 PM Yoav Weiss (@Shopify) <yoav...@chromium.org> wrote:On Fri, Feb 16, 2024 at 8:19 PM Brad Triebwasser <btr...@chromium.org> wrote:Can you detail what these two different counters represent?Our typical threshold is about half of the lower one (~0.0003%), but that varies based on the potential breakage.To confirm: I believe your sentence is correct but the number in brackets is off by a factor of 10, right? The threshold is typically ~0.003%
[Premature Send. Full message below]We are tracking UMA for when the permission name "window-placement" is parsed (e.g all calls to navigator.permissions.query({name: 'window-placement'}) increment the counter. That function will throw an exception "The provided value 'window-placement' is not a valid enum value of type PermissionName." once we remove the permission. So based on the metrics, 0.006% of page loads that aren't handling the exception could break. I strongly suspect most sites would have exception handling since no other browser has implemented this permission string.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CALEeEUCdqsmmEhBROkinxbzTULFPXnC8goANs6-_O8n3%2B%3D47hQ%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CALEeEUBYrF50-%3Dp8umAxQLaEttR-jW4WRfWyF5AATV2p29w17w%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAOmohS%2BkYoJShdaKKonG1pZasT4vg7enXWdh%2BU8FNeVTmyPKWw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAM0wra8E3Fct43ED1Se82h3CE3x2oNahe9xOkztC%3DFEAV7XTpg%40mail.gmail.com.