зеркало из https://github.com/mozilla/gecko-dev.git
Bug 621273 - Internal URLs show up as results after RSS feed preview.
r=sdwilsh a=blocker
This commit is contained in:
Родитель
374abd6a33
Коммит
30aba18ae5
|
@ -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);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче