Closed Bug 1943293 Opened 15 days ago Closed 9 days ago

[WebCompat Reporter] The URL field is not validated in Report Broken site form

Categories

(Fenix :: General, defect)

Firefox 136
All
Android
defect

Tracking

(firefox136 verified)

VERIFIED FIXED
136 Branch
Tracking Status
firefox136 --- verified

People

(Reporter: vtamas, Assigned: npoon)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxdroid][group4])

Attachments

(3 files)

Attached video InvalidURL.mp4

Steps to reproduce

  1. Open a webpage and tap on 3 dots menu -> Report broken site...
  2. Delete the pre-populated Url.
  3. Type in the URL field an invalid address, that doesn't respect the required format.

Expected behavior

"Send" button is disabled and an error message is displayed warning the user that the entered search string URL is invalid.

Actual behavior

No error is displayed and the form is successfully submitted.

Device information

  • Firefox version: Firefox Nightly 136 (2025-01-22)
  • Android device model: Samsung S24 Ultra (Android 14), Xiaomi 12T (Android 12)
Whiteboard: [fxdroid][group4]

I'm going to confirm this behaviour because in the figma, we only get the scenario where the URL field is empty

Update: Based on discussions with product and the WebCompat team, we should do URL validation as well in the form

Blocks: 1879606
No longer blocks: 1917267
Assignee: nobody → npoon
Status: NEW → ASSIGNED
Summary: [WebCompat Reporter] The URL filed is not validated in Report Broken site form → [WebCompat Reporter] The URL field is not validated in Report Broken site form
Pushed by npoon@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c2f72fbc4476 [WebCompat Reporter] Validate URL on the Report Broken Site form r=android-reviewers,007
Status: ASSIGNED → RESOLVED
Closed: 9 days ago
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch
Flags: qe-verify+
Attached image URLValidation.JPEG

Tested this issue on Firefox Nightly 136 (2025-01-29) using a Samsung Galaxy S24 Ultra (Android 14) and noticed that the URL validation checks only the protocol. Shouldn't the URL be validated also in terms of hostname?

Flags: needinfo?(npoon)

Hi Vasilica,
Thanks for verifying. I took a look at the desktop reporter's behaviour and it seems that the validation there also doesn't check for protocol. I also saw that we used to have a more stringent URL check method but it seems that it was removed for performance reasons so this is the biggest reason as to why I didn't also check for protocol

Flags: needinfo?(npoon)

(In reply to Nicholas Poon [:Nick] from comment #6)

Hi Vasilica,
Thanks for verifying. I took a look at the desktop reporter's behaviour and it seems that the validation there also doesn't check for protocol. I also saw that we used to have a more stringent URL check method but it seems that it was removed for performance reasons so this is the biggest reason as to why I didn't also check for protocol

Thanks Nicholas for confirming this behavior! Based on your response I can mark this as Verified.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: