Bug 794386 - do not store blob: URIs in global history, r=gavin.sharp

This commit is contained in:
Andrea Marchesini 2012-10-08 12:59:22 -07:00
parent 234c143d3a
commit ef8da16819
2 changed files with 3 additions and 1 deletions

View File

@ -1257,7 +1257,8 @@ nsNavHistory::CanAddURI(nsIURI* aURI, bool* canAdd)
scheme.EqualsLiteral("resource") ||
scheme.EqualsLiteral("data") ||
scheme.EqualsLiteral("wyciwyg") ||
scheme.EqualsLiteral("javascript")) {
scheme.EqualsLiteral("javascript") ||
scheme.EqualsLiteral("blob")) {
*canAdd = false;
return NS_OK;
}

View File

@ -408,6 +408,7 @@ function test_non_addable_uri_errors()
"data:,Hello%2C%20World!",
"wyciwyg:/0/http://mozilla.org",
"javascript:alert('hello wolrd!');",
"blob:foo",
];
let places = [];
URLS.forEach(function(url) {