зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1287277 - Silly micro-optimization. r=mak
--HG-- extra : rebase_source : ec8d72d13a97133ae8392c5071980724e280ec24
This commit is contained in:
Родитель
649d497cb1
Коммит
250514830e
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче