{"issue":{"title":"URIs with single-word hostnames show entire URIs in menu when using strictness of \"base domain\"","user":{"id":1240282,"login":"jsamuel","url":"https://api.github.com/users/jsamuel","avatar_url":"https://secure.gravatar.com/avatar/bc1d195cedb959a3946572b08ce9e7c7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"bc1d195cedb959a3946572b08ce9e7c7"},"milestone":null,"created_at":"2011-12-22T05:44:59Z","labels":[{"name":"extension","url":"https://api.github.com/repos/RequestPolicy/requestpolicy/labels/extension","color":"ededed"}],"state":"closed","updated_at":"2011-12-22T05:45:01Z","id":2634198,"html_url":"https://github.com/RequestPolicy/requestpolicy/issues/44","closed_at":"2011-12-22T05:45:01Z","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"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.\r\n\r\nFor example:\r\nhttp://localhost/phpmyadmin/\r\n\r\nresults in the following blocked destinations in the menu:\r\n\r\nhttp://localhost/phpmyadmin/favicon.ico\r\nhttp://localhost/phpmyadmin/pring.css\r\n...\r\n\r\nThis 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.\r\n\r\nOriginal report (same issue noticed by different users):\r\nhttp://forums.mozillazine.org/viewtopic.php?p=7648765#p7648765","number":44,"url":"https://api.github.com/repos/RequestPolicy/requestpolicy/issues/44","comments":1,"assignee":null},"action":"opened"}