Closed Bug 259126 Opened 20 years ago Closed 20 years ago

sites/exceptions list allows invalid hostnames

Categories

(Firefox :: Settings UI, defect)

x86
Windows XP
defect
Not set
minor

Tracking

()

RESOLVED FIXED

People

(Reporter: richard.keppler, Assigned: mconnor)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040803 Firefox/0.9.3
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040803 Firefox/0.9.3

In the cookie exceptions dialog, if you enter nothing in to the site you want to
allow or block cookies from, you can allow the blank item

Reproducible: Always
Steps to Reproduce:
1. Cookies -> exceptions - press spacebar to enable block/allow buttons.
2. Press Allow. Now an empty line (one space character) is allowed.
3. Remove the allowed item (select it/ press remove)


Actual Results:  
Text box is now null - no characters in it - but block/allow buttons are active.

Expected Results:  
Block/allow buttons should be inactive (unable to use them) unless characters
are present in text box.
-> me

steal my own code from Seamonkey to disable the buttons until there's not a
blank space.
Assignee: firefox → mconnor
Status: UNCONFIRMED → NEW
Ever confirmed: true
I guess e.g. "a" shouldn't be allowed either.
Summary: Cookies -> Exceptions, can allow blank item → sites/exceptions list allows invalid urls like " "
"a" is legitimate, but there's no domains that end in "a"

"uk" would block all UK domains, for example.
I wouldn't necessarily try to check for that much validity. Don't discount 
internal corporate use where domains can have any name.
Status: NEW → ASSIGNED
Summary: sites/exceptions list allows invalid urls like " " → sites/exceptions list allows invalid hostnames
I actually made it a tad more robust, short of getting into some serious regexp
hackery this should be pretty good.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
sorry for bugspam, long-overdue mass reassign of ancient QA contact bugs,
filter on "beltznerLovesGoats" to get rid of this mass change
QA Contact: mconnor → preferences
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: