Name Description Size
moz.build 884
safe-default-configuration.json 16208
Sanitizer.cpp static 32778
Sanitizer.h Sanitizes a fragment in place. This assumes that the fragment belongs but an inert document. @param aFragment Fragment to be sanitized in place @return DocumentFragment 4672
SanitizerDefaultConfig.h element 5901
SanitizerTypes.cpp 2543
SanitizerTypes.h 2834
tests
update-safe-default-configuration.py /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #ifndef mozilla_dom_SanitizerDefaultConfig_h #define mozilla_dom_SanitizerDefaultConfig_h // This file is automatically generated by update-safe-default-configuration.py #include "mozilla/dom/SanitizerTypes.h" #include "SanitizerDefaultConfig.h" #include "nsGkAtoms.h" namespace mozilla::dom::sanitizer {{ constexpr nsStaticAtom* kDefaultHTMLElements[] = {{ // clang-format off { xhtml_elements_body } // clang-format on }}; constexpr nsStaticAtom* kDefaultMathMLElements[] = {{ // clang-format off { mathml_elements_body } // clang-format on }}; constexpr nsStaticAtom* kDefaultAttributes[] = {{ // clang-format off { attributes_body } // clang-format on }}; // Data is encoded as: element, attributes..., nullptr constexpr nsStaticAtom* kHTMLElementWithAttributes[] = {{ // clang-format off { xhtml_element_with_attributes_body } // clang-format on }}; constexpr nsStaticAtom* kMathMLElementWithAttributes[] = {{ // clang-format off { mathml_element_with_attributes_body } // clang-format on }}; }} // namespace mozilla::dom::sanitizer #endif // mozilla_dom_SanitizerDefaultConfig_h 4124