New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 645007 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner:
Long OOO (go/where-is-mgiuca)
Closed: Oct 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 1
Type: Feature

Blocked on:
issue 587306



Sign in to add a comment

WebShare: When used from incognito, should warn the user that we are leaving incognito

Project Member Reported by mgiuca@chromium.org, Sep 8 2016

Issue description

Version: 55
OS: Android

What steps will reproduce the problem?
(1) Turn on flag enable-experimental-web-platform-features.
(2) Go into incognito.
(3) Visit https://mgiuca.github.io/web-share/demos/share.html.
(4) Click Share.

What is the expected output?
A confirmation dialog to the effect of "Do you want to allow this site to share data? This will be seen to other apps outside of incognito mode. [No] [Yes]"

What do you see instead?
It just sends the data without asking.

Note: Similar dialog is found when clicking a link that is handled by an Android app, e.g., a Google Maps link.
 

Comment 1 by mgiuca@chromium.org, Sep 20 2016

Blockedon: 587306
Status: Started (was: Assigned)
Added some discussion about the wording of this dialogue to  https://crbug.com/587306#c23 . I will reuse the same dialog as when you launch an intent from an incognito window, with the wording changed for clarity. The proposed wording is:

"Leave incognito mode?

You are about to send data to an external application.

[Cancel] [Continue]"

See attached screenshot.

CL (missing tests): https://codereview.chromium.org/2354833002
incognito-webshare.png
143 KB View Download
Project Member

Comment 2 by bugdroid1@chromium.org, Sep 23 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/7db85418178d9d4f01a7901da7450e40e08414ec

commit 7db85418178d9d4f01a7901da7450e40e08414ec
Author: mgiuca <mgiuca@chromium.org>
Date: Fri Sep 23 03:19:28 2016

Web Share: Show a warning prompt when share is used from incognito.

This is the same dialog as shown when external links are opened from
incognito, informing the user that they are leaving incognito mode and
potentially sharing data with an external application.

BUG= 645007 

Review-Url: https://codereview.chromium.org/2354833002
Cr-Commit-Position: refs/heads/master@{#420564}

[modify] https://crrev.com/7db85418178d9d4f01a7901da7450e40e08414ec/chrome/android/java/src/org/chromium/chrome/browser/externalnav/ExternalNavigationDelegateImpl.java
[modify] https://crrev.com/7db85418178d9d4f01a7901da7450e40e08414ec/chrome/android/java/src/org/chromium/chrome/browser/webshare/ShareServiceImpl.java

Comment 3 by mgiuca@chromium.org, Sep 23 2016

Status: Fixed (was: Started)
Status: Verified (was: Fixed)
Works as per expected behavior. Confirmation dialog to when shring through incognito. 
Issue is verified on Latest M55 Build on trunk.
Status: Started (was: Verified)
This went through UX review and it was decided that we don't need it (the intent picker shown by the Android system is sufficient notice to the user, with the Share menu picker being used as precedent).

Reverting this change.
Raised by tedchoc@ on code review: yes, we will still see a chooser even if there is only one possible target.

I simulated this by turning on CATEGORY_BROWSABLE in the source code; then I only have one app (Intent Intercept) that can handle the intent. You can see this one-app picker here.
share-one-app.png
181 KB View Download
Project Member

Comment 7 by bugdroid1@chromium.org, Oct 6 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/e27d189dc63ecb32c2645828557389de11e7a466

commit e27d189dc63ecb32c2645828557389de11e7a466
Author: mgiuca <mgiuca@chromium.org>
Date: Thu Oct 06 23:41:46 2016

Web Share: Disable warning when web share is used from incognito.

This was deemed unnecessary in UX review. When navigator.share is used
from incognito, you still see the intent picker which is considered
sufficient warning for users.

The bulk of the code to support this (https://crrev.com/420564) remains
and will be removed in a future CL.

BUG= 645007 

Review-Url: https://codereview.chromium.org/2389393004
Cr-Commit-Position: refs/heads/master@{#423740}

[modify] https://crrev.com/e27d189dc63ecb32c2645828557389de11e7a466/chrome/android/java/src/org/chromium/chrome/browser/webshare/ShareServiceImpl.java

Status: WontFix (was: Started)
Now that this has been landed and reverted, marking as WontFix (the original issue).
Project Member

Comment 9 by bugdroid1@chromium.org, Oct 11 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/850d38c2fcc1a887aa0f38319eb1b8f7f03ca169

commit 850d38c2fcc1a887aa0f38319eb1b8f7f03ca169
Author: mgiuca <mgiuca@chromium.org>
Date: Tue Oct 11 01:15:15 2016

Web Share: Remove dead code for showing a warning prompt in incognito.

This reverts commit 7db85418178d9d4f01a7901da7450e40e08414ec
(https://crrev.com/420564). The feature has previously been disabled, so
this change should not affect behaviour.

BUG= 645007 

Review-Url: https://codereview.chromium.org/2395963002
Cr-Commit-Position: refs/heads/master@{#424323}

[modify] https://crrev.com/850d38c2fcc1a887aa0f38319eb1b8f7f03ca169/chrome/android/java/src/org/chromium/chrome/browser/externalnav/ExternalNavigationDelegateImpl.java
[modify] https://crrev.com/850d38c2fcc1a887aa0f38319eb1b8f7f03ca169/chrome/android/java/src/org/chromium/chrome/browser/webshare/ShareServiceImpl.java

Project Member

Comment 10 by bugdroid1@chromium.org, Oct 27 2016

Labels: merge-merged-2840
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/e27d189dc63ecb32c2645828557389de11e7a466

commit e27d189dc63ecb32c2645828557389de11e7a466
Author: mgiuca <mgiuca@chromium.org>
Date: Thu Oct 06 23:41:46 2016

Web Share: Disable warning when web share is used from incognito.

This was deemed unnecessary in UX review. When navigator.share is used
from incognito, you still see the intent picker which is considered
sufficient warning for users.

The bulk of the code to support this (https://crrev.com/420564) remains
and will be removed in a future CL.

BUG= 645007 

Review-Url: https://codereview.chromium.org/2389393004
Cr-Commit-Position: refs/heads/master@{#423740}

[modify] https://crrev.com/e27d189dc63ecb32c2645828557389de11e7a466/chrome/android/java/src/org/chromium/chrome/browser/webshare/ShareServiceImpl.java

Comment 11 by dimu@google.com, Nov 4 2016

Labels: -merge-merged-2840
[Automated comment] removing mislabelled merge-merged-2840

Sign in to add a comment