Closed Bug 979513 Opened 6 years ago Closed 2 years ago

It is possible to save a bookmark with an invalid URL

Categories

(Firefox OS Graveyard :: Gaia::Browser, defect)

x86_64
Linux
defect
Not set

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: benfrancis, Unassigned)

Details

Bug 960813 made a change where the "save" button when editing bookmarks is disabled if the URL of the bookmark is invalid. Unfortunately this isn't quite perfect because the helper function being used accepts URLs without a scheme like http:// set (as this is the requirement elsewhere).

If you enter a URL without a scheme you will see that the URL is invalid by a red highlight (using built in validation of url input fields), but you will still be able to save the bookmark.

If you then load the bookmark the URL will not load.

Note that on Firefox for Android we allow bookmarks to be saved without a scheme, we just append the scheme when we load the URL. Desktop Firefox tries to encode a non-URL string as a URL when you blur the URL input field.
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.