Bug 1139560 - Reject non-standard parses of integers in srcset descriptors. r=jst

This commit is contained in:
John Schoenick 2015-03-04 23:09:00 +01:00
parent 8b2892364d
commit 34818e8625

View File

@ -39,7 +39,8 @@ ParseInteger(const nsAString& aString, int32_t& aInt)
return !(parseResult &
( nsContentUtils::eParseHTMLInteger_Error |
nsContentUtils::eParseHTMLInteger_DidNotConsumeAllInput |
nsContentUtils::eParseHTMLInteger_IsPercent ));
nsContentUtils::eParseHTMLInteger_IsPercent |
nsContentUtils::eParseHTMLInteger_NonStandard ));
}
ResponsiveImageSelector::ResponsiveImageSelector(nsIContent *aContent)