Backed out changeset ce9d71b0a088 (bug 1342348) for crashing in xpcshell test parser/xml/test/unit/test_sanitizer.js. r=backout

This commit is contained in:
Sebastian Hengst 2017-02-27 15:26:04 +01:00
Родитель c50b0a80e4
Коммит feb6742b13
1 изменённых файлов: 0 добавлений и 4 удалений

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

@ -1281,10 +1281,6 @@ nsTreeSanitizer::SanitizeURL(mozilla::dom::Element* aElement,
static const char* kWhitespace = "\n\r\t\b"; static const char* kWhitespace = "\n\r\t\b";
const nsAString& v = const nsAString& v =
nsContentUtils::TrimCharsInSet(kWhitespace, value); nsContentUtils::TrimCharsInSet(kWhitespace, value);
// Fragment-only url cannot be harmful.
if (v.First() == u'#') {
return false;
}
nsIScriptSecurityManager* secMan = nsContentUtils::GetSecurityManager(); nsIScriptSecurityManager* secMan = nsContentUtils::GetSecurityManager();
uint32_t flags = nsIScriptSecurityManager::DISALLOW_INHERIT_PRINCIPAL; uint32_t flags = nsIScriptSecurityManager::DISALLOW_INHERIT_PRINCIPAL;