Bug 289914 - ignore #comment lines in chrome manifests r=shaver a=chofmann
git-svn-id: svn://10.0.0.236/trunk@171977 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
d1dbbbba0f
commit
3b4e79e6cd
@ -1784,6 +1784,9 @@ nsChromeRegistry::ProcessManifestBuffer(char *buf, PRInt32 length,
|
||||
while (nsnull != (token = nsCRT::strtok(newline, kNewlines, &newline))) {
|
||||
++line;
|
||||
|
||||
if (*token == '#') // ignore lines that begin with # as comments
|
||||
continue;
|
||||
|
||||
char *whitespace = token;
|
||||
token = nsCRT::strtok(whitespace, kWhitespace, &whitespace);
|
||||
if (!token) continue;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user