зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
c50b0a80e4
Коммит
feb6742b13
|
@ -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;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче