Feature P3
Status Update
Comments
mg...@chromium.org <mg...@chromium.org>
ph...@chromium.org <ph...@chromium.org> #2
[Empty comment from Monorail migration]
na...@google.com <na...@google.com> #3
[Empty comment from Monorail migration]
jo...@microsoft.com <jo...@microsoft.com> #4
per email with mgiuca, marking this blockedon the work Microsoft is doing on Windows.
ra...@gmail.com <ra...@gmail.com> #5
just a question: what'll Chrome be doing on Linux where there is no platform/native sharing? I imagine that it'll use whatever ChromeOS (will?) use.
ra...@gmail.com <ra...@gmail.com> #6
actually I just remembered that ChromeOS now has Android :/ What does that mean for Chromium OS?
mg...@chromium.org <mg...@chromium.org> #7
Chrome OS will eventually get a share system between web and Android. On Chromium OS, with Android disabled, I assume the system would still work but only web apps would show up.
On Linux, I don't think Web Share would work at all, since there is no native share system. Arguably, there should just be a way to share from web-to-web, but that would require a specific UI just for Linux (since all the other platforms will use the native system share sheet).
On Linux, I don't think Web Share would work at all, since there is no native share system. Arguably, there should just be a way to share from web-to-web, but that would require a specific UI just for Linux (since all the other platforms will use the native system share sheet).
ra...@gmail.com <ra...@gmail.com> #8
" but only web apps would show up." So would Chrome be providing that UI because Android isn't available in Chromium OS? If so, then the same could be done on Linux.
mg...@chromium.org <mg...@chromium.org> #9
I think the plan is that the Chromium OS codebase would be providing the share system (it wouldn't use the Android share system). So yes, it wouldn't have a dependency on Android, but it would be highly coupled with Chromium OS, and wouldn't be part of the normal Chrome browser on Linux.
+dominickn who would own this on CrOS.
+dominickn who would own this on CrOS.
do...@chromium.org <do...@chromium.org> #10
mgiuca's description is correct.
ra...@gmail.com <ra...@gmail.com> #11
Thank you for the clarification.
js...@chromium.org <js...@chromium.org> #12
[Empty comment from Monorail migration]
mh...@microsoft.com <mh...@microsoft.com> #13
[Empty comment from Monorail migration]
bu...@chops-service-accounts.iam.gserviceaccount.com <bu...@chops-service-accounts.iam.gserviceaccount.com> #14
The following revision refers to this bug:
https://chromium.googlesource.com/chromium/src/+/c34a2bbb86a27b2a95205a92a66c34502d302a95
commit c34a2bbb86a27b2a95205a92a66c34502d302a95
Author: Hoch Hochkeppel <mhochk@microsoft.com>
Date: Fri Dec 11 04:18:35 2020
Web Share: Enable by default on Chrome OS and Windows
Enabling the Web Share APIs (navigator.Share) functionality on Windows
and Chrome OS.
Intent to Ship:
https://groups.google.com/a/chromium.org/g/blink-dev/c/fJ8n9kTbna4/m/i8mMlc0jAgAJ
Bug: 770595
Change-Id: I2dea1ab64be53b36d53901f2f46d95483555d4df
Reviewed-on:https://chromium-review.googlesource.com/c/chromium/src/+/2583104
Commit-Queue: Eric Willigers <ericwilligers@chromium.org>
Reviewed-by: Eric Willigers <ericwilligers@chromium.org>
Cr-Commit-Position: refs/heads/master@{#835993}
[modify]https://crrev.com/c34a2bbb86a27b2a95205a92a66c34502d302a95/chrome/common/chrome_features.cc
commit c34a2bbb86a27b2a95205a92a66c34502d302a95
Author: Hoch Hochkeppel <mhochk@microsoft.com>
Date: Fri Dec 11 04:18:35 2020
Web Share: Enable by default on Chrome OS and Windows
Enabling the Web Share APIs (navigator.Share) functionality on Windows
and Chrome OS.
Intent to Ship:
Bug: 770595
Change-Id: I2dea1ab64be53b36d53901f2f46d95483555d4df
Reviewed-on:
Commit-Queue: Eric Willigers <ericwilligers@chromium.org>
Reviewed-by: Eric Willigers <ericwilligers@chromium.org>
Cr-Commit-Position: refs/heads/master@{#835993}
[modify]
js...@chromium.org <js...@chromium.org> #15
Shipped M-89 for Windows and Chrome OS, per above.
macOS is still pending perhttps://crbug.com/chromium/1144920
[Monorail components: Blink>WebShare]
macOS is still pending per
[Monorail components: Blink>WebShare]
mg...@chromium.org <mg...@chromium.org> #16
It looks from https://crbug.com/chromium/1144920 like this still isn't shipped on Mac.
I'll assign this to jsbell since ChromeOS has been completed long ago and it's no longer relevant to my team.
I'll assign this to jsbell since ChromeOS has been completed long ago and it's no longer relevant to my team.
js...@chromium.org <js...@chromium.org> #17
finnur@, can we get this on your backlog?
is...@google.com <is...@google.com> #18
This issue was migrated from crbug.com/chromium/770595?no_tracker_redirect=1
[Auto-CCs applied]
[Monorail blocked-on:crbug.com/chromium/1035527 , crbug.com/chromium/1144920 , crbug.com/chromium/738273 ]
[Monorail mergedwith:crbug.com/chromium/840287 ]
[Monorail components added to Component Tags custom field.]
[Auto-CCs applied]
[Monorail blocked-on:
[Monorail mergedwith:
[Monorail components added to Component Tags custom field.]
mg...@gmail.com <mg...@gmail.com> #19
Hi! Now that this has been implemented on macOS (see https://crbug.com/chromium/1144920 ), is there any more progress expected. In particular, is there an expectation to also implement it for Linux?
ep...@gmail.com <ep...@gmail.com> #20
As a workaround, I have a userscript that sends web share data to the clipboard / downloads. Surely the browser could provide at least that much on Linux?
(function() {
'use strict';
if (!navigator.canShare && !navigator.share) {
navigator.canShare = (data) => true;
navigator.share = (data) => {
const {title, url, text, files} = data;
const body = [title, url, text].filter((element) => element).join('\n');
let promise = body ? navigator.clipboard.writeText(body).catch((error) => {
console.log(error);
alert(body);
}) : new Promise(undefined);
if (files) for (const file of files) {
promise = promise.then(() => {
new Promise((resolve, reject) => {
setTimeout(() => {
try {
const url = URL.createObjectURL(file);
const a = document.createElement('a');
a.href = url;
a.download = file.name;
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
URL.revokeObjectURL(url);
resolve();
} catch (error) {
reject(error);
}
}, 500);
})
});
}
return promise;
};
};
})();
Description
This covers:
- navigator.share API (Web Share)
- share_target manifest attribute (Web Share Target)
- "Share" menu item to share to a Web share target (
Status: The first two are already implemented behind the --enable-experimental-web-platform-features flag (in stable channel). See
The share target picker needs UX treatment.