Describe the bug
"Copy failure details" from an issue dialog on a non-secure webpage, such as http://www.washington.edu/accesscomputing/AU/before.html, does not work due to Chrome disabling clipboard access for security reasons (see Additional context). The error message says "Failed to copy failure details. Please try again."
To Reproduce
Steps to reproduce the behavior:
- Go to http://www.washington.edu/accesscomputing/AU/before.html
- Open extension popup
- Run FastPass
- Open an issue dialog by clicking on any ! in the highlighted issue boxes on the target page
- Select "Copy failure details"
- See toast with message "Failed to copy failure details. Please try again."
CodePen repro example
Expected behavior
Have the toast error message be more descriptive of why the copying is failing, or print an error in the console that points out the issue.
Screenshots
Context (please complete the following information)
Are you willing to submit a PR?
yes
Did you search for similar existing issues?
yes
Additional context
According to https://stackoverflow.com/questions/51805395/navigator-clipboard-is-undefined/51823007#51823007, Chrome disables the clipboard for any page that does not have a secure origin (HTTPS or localhost) for security reasons.
Describe the bug
"Copy failure details" from an issue dialog on a non-secure webpage, such as http://www.washington.edu/accesscomputing/AU/before.html, does not work due to Chrome disabling clipboard access for security reasons (see Additional context). The error message says "Failed to copy failure details. Please try again."
To Reproduce
Steps to reproduce the behavior:
CodePen repro example
Expected behavior
Have the toast error message be more descriptive of why the copying is failing, or print an error in the console that points out the issue.
Screenshots
Context (please complete the following information)
Are you willing to submit a PR?
yes
Did you search for similar existing issues?
yes
Additional context
According to https://stackoverflow.com/questions/51805395/navigator-clipboard-is-undefined/51823007#51823007, Chrome disables the clipboard for any page that does not have a secure origin (HTTPS or localhost) for security reasons.