From feb6742b1360551a1f4c0d25cfba85be3e3393a3 Mon Sep 17 00:00:00 2001 From: Sebastian Hengst Date: Mon, 27 Feb 2017 15:26:04 +0100 Subject: [PATCH] Backed out changeset ce9d71b0a088 (bug 1342348) for crashing in xpcshell test parser/xml/test/unit/test_sanitizer.js. r=backout --- dom/base/nsTreeSanitizer.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/dom/base/nsTreeSanitizer.cpp b/dom/base/nsTreeSanitizer.cpp index c275ece3ae74..7219336db0d6 100644 --- a/dom/base/nsTreeSanitizer.cpp +++ b/dom/base/nsTreeSanitizer.cpp @@ -1281,10 +1281,6 @@ nsTreeSanitizer::SanitizeURL(mozilla::dom::Element* aElement, static const char* kWhitespace = "\n\r\t\b"; const nsAString& v = nsContentUtils::TrimCharsInSet(kWhitespace, value); - // Fragment-only url cannot be harmful. - if (v.First() == u'#') { - return false; - } nsIScriptSecurityManager* secMan = nsContentUtils::GetSecurityManager(); uint32_t flags = nsIScriptSecurityManager::DISALLOW_INHERIT_PRINCIPAL;