diff --git a/toolkit/components/places/nsNavHistory.cpp b/toolkit/components/places/nsNavHistory.cpp index f50c0ad90fb..82fd274d3f2 100644 --- a/toolkit/components/places/nsNavHistory.cpp +++ b/toolkit/components/places/nsNavHistory.cpp @@ -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; } diff --git a/toolkit/components/places/tests/unit/test_async_history_api.js b/toolkit/components/places/tests/unit/test_async_history_api.js index 5a2f2dfd214..f3eb9d12868 100644 --- a/toolkit/components/places/tests/unit/test_async_history_api.js +++ b/toolkit/components/places/tests/unit/test_async_history_api.js @@ -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) {