webcompat / webcompat.com

Source code for webcompat.com
https://webcompat.com
358 stars 191 forks source link

Do not allow screenshot upload outside of the "Upload screenshot" area margins #3734

Open softvision-raul-bucata opened 2 years ago

softvision-raul-bucata commented 2 years ago

URL: https://webcompat.com/issues

Environment: Operating system: Windows 10 Firefox version: Nightly 107.0a1 (2022-10-04) (64-bit)

Steps to reproduce:

  1. Go to https://webcompat.com/issues
  2. Complete the form submission until the "Upload Screenshot" area is shown.
  3. Drag and drop the screenshot file outside the "Upload Screenshot" area.
  4. Observe the result.

Expected Behavior: The file can not be uploaded/a forbidden icon is shown.

Actual Behavior: The file is opened in a new tab, with file: URL.

Notes:

  1. Screenrecording provided:

rec

  1. Reproducible on Chrome as well
  2. Upload inside the designated area works as expeted.

Watchers: @softvision-oana-arbuzov @softvision-raul-bucata @ClintNase