Skip to content

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

@softvision-raul-bucata

Description

@softvision-raul-bucata

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions