{"issue":{"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:49:48Z","title":"'Allow' fails for some redirects in firefox trunk","updated_at":"2011-12-22T05:50:01Z","labels":[{"name":"extension","url":"https://api.github.com/repos/RequestPolicy/requestpolicy/labels/extension","color":"ededed"}],"state":"open","id":2634278,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"html_url":"https://github.com/RequestPolicy/requestpolicy/issues/107","closed_at":null,"number":107,"body":"Using RP with Firefox built from mozilla-central (and so probably the nightlies, as well) results in problems allowing some redirects using the redirect notification's 'Allow' button.\r\n\r\nHere's an example using http://ur1.ca/o\r\n\r\n{{{\r\n[RequestPolicy] [DEBUG] [INTERNAL] Checking for blocked content from page <http://ur1.ca/o>\r\n[RequestPolicy] [DEBUG] [INTERNAL] Main document <http://ur1.ca/o> has rejected requests.\r\n[RequestPolicy] [INFO] [INTERNAL] User allowed redirection from <http://ur1.ca/o> to <http://opendefinition.org/osd>\r\n[RequestPolicy] [DEBUG] [CONTENT] shouldLoad() cache expired for result of -3 for request to <http://opendefinition.org/osd> from <http://ur1.ca/o>.\r\n[RequestPolicy] [WARNING] [CONTENT] ** BLOCKED ** reason: hosts don't match. type: 6, destination: http://opendefinition.org/osd, origin: http://ur1.ca/o, context: [object XULElement @ 0x7fcc1f6dda90 (native @ 0x7fcc1be8f480)], mime: , null\r\n[RequestPolicy] [DEBUG] [INTERNAL] Checking for blocked content from page <http://ur1.ca/o>\r\n[RequestPolicy] [DEBUG] [INTERNAL] Main document <http://ur1.ca/o> has rejected requests.\r\nJavaScript error: , line 0: uncaught exception: [Exception... \"Component returned failure code: 0x805e0006 [nsIDOMLocation.href]\"  nsresult: \"0x805e0006 (<unknown>)\"  location: \"JS frame :: chrome://requestpolicy/content/overlay.js :: anonymous :: line 369\"  data: no]\r\n}}}\r\n\r\nThanks to Aleksej for reporting this.","url":"https://api.github.com/repos/RequestPolicy/requestpolicy/issues/107","comments":7,"assignee":null},"comment":{"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"},"created_at":"2011-12-22T05:50:00Z","updated_at":"2011-12-22T05:50:00Z","id":3245518,"body":"[justin] I think the other failed requests might be similar to the fragment issue: I can repeat this for yelp restauraunt links where the user-allowed redirection has a destination of:\r\n\r\nhttp://www.foo.com\r\n\r\nbut the request, when going through shouldLoad(), has a destination of:\r\n\r\nhttp://www.foo.com/\r\n\r\nnote the slash on the end. So, I just need to remove the fragment and canonicalize the url to the form that will be passed to shouldLoad().","url":"https://api.github.com/repos/RequestPolicy/requestpolicy/issues/comments/3245518"},"action":"created"}