Bug 1287277 - Silly micro-optimization. r=mak

--HG--
extra : rebase_source : ec8d72d13a97133ae8392c5071980724e280ec24
This commit is contained in:
Simon Lindholm 2016-07-14 14:10:20 +02:00
Родитель 649d497cb1
Коммит 250514830e
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -357,9 +357,9 @@ namespace places {
// We only want to filter javascript: URLs if we are not supposed to search
// for them, and the search does not start with "javascript:".
if (matchBehavior != mozIPlacesAutoComplete::MATCH_ANYWHERE_UNMODIFIED &&
StringBeginsWith(url, NS_LITERAL_CSTRING("javascript:")) &&
!HAS_BEHAVIOR(JAVASCRIPT) &&
!StringBeginsWith(searchString, NS_LITERAL_CSTRING("javascript:")) &&
StringBeginsWith(url, NS_LITERAL_CSTRING("javascript:"))) {
!StringBeginsWith(searchString, NS_LITERAL_CSTRING("javascript:"))) {
NS_ADDREF(*_result = new IntegerVariant(0));
return NS_OK;
}