Issue metadata
Sign in to add a comment
|
WebShare API rejects the wrong promise when user cancels
Reported by
chem...@gmail.com,
Sep 22 2017
|
||||||||||||||||||||||||
Issue descriptionSteps to reproduce the problem: 1. Use navigator.share() in an onclick listener, provide it with 'title' and 'url' option. 2. Tap the element that fires the onclick listener 3. In the share dialog, tap one of the targets (copy to clipboard). The promise is resolved. 4. Tap the element again and cancel the share dialog (press back): the promise is *not* resolved or rejected. 4. Tap the element again: the promise is rejected immediately but the share dialog does pop up. See codepen or attached example: https://codepen.io/rejh/pen/bowqgE What is the expected behavior? If promises should be rejected when the user cancels the share, it should reject the promise that invoked the dialog. Currently, the promise is only resolved, never rejected. What went wrong? The promise of a WebShare call is never resolved or rejected but the *next time* the WebShare API is invoked it immediately rejects that promise but *does* show the share dialog. Did this work before? N/A Does this work in other browsers? N/A Chrome version: 61.0.3163.98 Channel: stable OS Version: 8.0 Flash Version: |
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by mgiuca@chromium.org
, Sep 25 2017Owner: mgiuca@chromium.org
Status: Duplicate (was: Unconfirmed)