RequestPolicy/tractest — Issue #44: URIs with single-word hostnames show entire URIs in menu when using strictness of "base domain"
Author: jsamuel
Created: 2011-12-22 02:32:42+00:00
State: open
Labels: extension

If one is using "base domain" strictness, going to a location with a single-word hostname (e.g. "localhost") results in not recognizing a hostname at all.

For example:
http://localhost/phpmyadmin/

results in the following blocked destinations in the menu:

http://localhost/phpmyadmin/favicon.ico
http://localhost/phpmyadmin/pring.css
...

This bug is the result of the refactoring done to modules/DomainUtil.jsm in r274 where I removed the "fall through" of trying to grab a different identifier from the URI if the default level's logic fails.

Original report (same issue noticed by different users):
http://forums.mozillazine.org/viewtopic.php?p=7648765#p7648765