Bug 621273 - Internal URLs show up as results after RSS feed preview.

r=sdwilsh a=blocker
This commit is contained in:
Marco Bonardo 2011-01-27 12:18:14 +01:00
Родитель 374abd6a33
Коммит 30aba18ae5
2 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -754,8 +754,8 @@ AsyncAssociateIconToPage::Run()
if (mPage.id == 0) {
nsCOMPtr<mozIStorageStatement> stmt =
mFaviconSvc->mSyncStatements.GetCachedStatement(NS_LITERAL_CSTRING(
"INSERT INTO moz_places (url, rev_host, hidden, favicon_id, guid) "
"VALUES (:page_url, :rev_host, 1, :favicon_id, GENERATE_GUID()) "
"INSERT INTO moz_places (url, rev_host, hidden, favicon_id, frecency, guid) "
"VALUES (:page_url, :rev_host, 1, :favicon_id, 0, GENERATE_GUID()) "
));
NS_ENSURE_STATE(stmt);
mozStorageStatementScoper scoper(stmt);

Просмотреть файл

@ -80,6 +80,8 @@ var tests = [
checkAddSucceeded(this.pageURI, this.favicon.mimetype, this.favicon.data);
do_log_info("Check that the added page is marked as hidden.");
do_check_true(isUrlHidden(this.pageURI));
do_log_info("Check that the added page has 0 frecency.");
do_check_eq(frecencyForUrl(this.pageURI), 0);
}
},