Intent to Ship: App Shortcuts Menu

184 views
Skip to first unread message

Rayan Kanso

unread,
May 11, 2020, 12:01:38 PM5/11/20
to blink-dev

Contact emails

rah...@microsoft.com, jungke...@microsoft.com, cmum...@google.com, raya...@chromium.org


Explainer

Shortcuts Explainer


Spec

W3C spec: https://w3c.github.io/manifest/#shortcuts-member

Tag Review: https://github.com/w3ctag/design-reviews/issues/510


Summary

This feature provides PWA developers the ability to show a shortcuts menu of common tasks in their app. The menu can be invoked by right clicking the app icon in the quick launch bar after the PWA has been installed on the user’s desktop, or long pressing on the app on Android. This capability already exists for native apps on various platforms (Android, Linux, macOS, and Windows).


Link to “Intent to Prototype” blink-dev discussion

https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/gK4XF2vbvf0


Is this feature supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?

The feature will not be supported on WebView since web apps don't exist in that context. The feature will initially be enabled on Android, with support for Desktop platforms to follow.


Demo link

Test Website.

For Android, it needs to be installed via an unstable Chrome channel (canary/dev/beta).

For Windows, the kDesktopPWAsAppIconShortcutsMenu flag needs to be enabled.


Risks

Interoperability and Compatibility

No Interoperability/Compatibility risk. When a web developer doesn’t provide a shortcuts member in the PWA’s WebAppManifest, current installation behavior is not affected by this feature.


Edge: In development/Public Support

Firefox: No signals

Safari: No signals

Web / Framework developers: Positive feedback from web developers


Ergonomics

Shortcuts will be used as part of the WebAppManifest. Use will not affect performance.


Activation

Use will be straightforward, it will only require developers to list their shortcuts in their manifest.


Is this feature fully tested by web-platform-tests? Link to test suite results from wpt.fyi.

No, app manifest features are not testable via wpt.


Entry on the feature dashboard

https://www.chromestatus.com/feature/5706099464339456

Yoav Weiss

unread,
May 26, 2020, 9:34:37 AM5/26/20
to Rayan Kanso, blink-dev
Apologies for the delay in replying. It seems like this intent fell between the script's cracks...

On Mon, May 11, 2020 at 6:01 PM Rayan Kanso <raya...@chromium.org> wrote:

Contact emails

rah...@microsoft.com, jungke...@microsoft.com, cmum...@google.com, raya...@chromium.org


Explainer

Shortcuts Explainer


Spec

W3C spec: https://w3c.github.io/manifest/#shortcuts-member

Tag Review: https://github.com/w3ctag/design-reviews/issues/510


Summary

This feature provides PWA developers the ability to show a shortcuts menu of common tasks in their app. The menu can be invoked by right clicking the app icon in the quick launch bar after the PWA has been installed on the user’s desktop, or long pressing on the app on Android. This capability already exists for native apps on various platforms (Android, Linux, macOS, and Windows).


Link to “Intent to Prototype” blink-dev discussion

https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/gK4XF2vbvf0


Is this feature supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?

The feature will not be supported on WebView since web apps don't exist in that context. The feature will initially be enabled on Android, with support for Desktop platforms to follow.


Demo link

Test Website.

For Android, it needs to be installed via an unstable Chrome channel (canary/dev/beta).

For Windows, the kDesktopPWAsAppIconShortcutsMenu flag needs to be enabled.


Risks

Interoperability and Compatibility

No Interoperability/Compatibility risk. When a web developer doesn’t provide a shortcuts member in the PWA’s WebAppManifest, current installation behavior is not affected by this feature.


Edge: In development/Public Support

Firefox: No signals


FWIW, https://github.com/mozilla/standards-positions/issues/338 seems promising, although we should let it play out.
Have we considered the "super cookie" issues raised there? Are there mitigations in place against that?

Safari: No signals


Have we reached out?
 

Web / Framework developers: Positive feedback from web developers


Links?
 

Ergonomics

Shortcuts will be used as part of the WebAppManifest. Use will not affect performance.


Activation

Use will be straightforward, it will only require developers to list their shortcuts in their manifest.


Is this feature fully tested by web-platform-tests? Link to test suite results from wpt.fyi.

No, app manifest features are not testable via wpt.


Have we filed a WPT issue that will enable such testing?
 
--
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/CAAe2mZ26mswsuxv8ZQ5d%2BEAzBR%3Di%2BJKT3PGbKwA%2BdMprfu24Mw%40mail.gmail.com.

Rayan Kanso

unread,
May 26, 2020, 1:10:02 PM5/26/20
to Yoav Weiss, blink-dev
Hi Yoav,

FWIW, https://github.com/mozilla/standards-positions/issues/338 seems promising, although we should let it play out.
Have we considered the "super cookie" issues raised there? Are there mitigations in place against that?

 Yeah, the behaviour matches that of "start_url". There are no additional mitigations.


Have we reached out?



Links? 

There have been quite a few positive interactions within discussions and updates. Here's an example of a recent chromium tweet regarding the issue.


Have we filed a WPT issue that will enable such testing?

Not one specifically for shortcuts. It should be covered by the ability to test app manifest features in general.

Thanks,
~Rayan

Chris Harrelson

unread,
May 28, 2020, 3:11:00 PM5/28/20
to Rayan Kanso, Yoav Weiss, blink-dev

Mike West

unread,
May 28, 2020, 3:12:51 PM5/28/20
to blink-dev, raya...@chromium.org, yo...@yoav.ws
LGTM2.

The risk raised on the Mozilla standards positions thread is not specific to these links; the same capability exists with `start_url`. If we change that, we should change this as well.

-mike
LGTM1

To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.

--
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.

Yoav Weiss

unread,
May 28, 2020, 3:13:39 PM5/28/20
to Mike West, blink-dev, Rayan Kanso
LGTM3

LGTM1

To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.

--
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.

Ajay Rahatekar

unread,
Oct 5, 2021, 12:18:30 PMOct 5
to blink-dev, yo...@yoav.ws, blink-dev, Rayan Kanso, mk...@chromium.org
Hi All,

This feature previously shipped for Windows and Android https://chromestatus.com/feature/5706099464339456. Requesting approval to ship on Mac and Linux https://bugs.chromium.org/p/chromium/issues/detail?id=1248101 

-Ajay

Yoav Weiss

unread,
Oct 7, 2021, 3:07:11 AMOct 7
to Ajay Rahatekar, blink-dev, yo...@yoav.ws, Rayan Kanso, mk...@chromium.org
Can you send a new intent for that purpose? Thanks! :)

Reply all
Reply to author
Forward
Message has been deleted
0 new messages