| moz.build |
|
884 |
| safe-default-configuration.json |
|
26231 |
| Sanitizer.cpp |
static |
75487 |
| Sanitizer.h |
Sanitizes a node in place. This assumes that the node
belongs but an inert document.
@param aNode Node to be sanitized in place
|
5336 |
| SanitizerDefaultConfig.h |
|
9856 |
| SanitizerTypes.cpp |
|
3840 |
| SanitizerTypes.h |
|
7377 |
| 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 "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* kDefaultSVGElements[] = {{
// clang-format off
{ svg_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
}};
constexpr nsStaticAtom* kSVGElementWithAttributes[] = {{
// clang-format off
{ svg_element_with_attributes_body }
// clang-format on
}};
}} // namespace mozilla::dom::sanitizer
#endif // mozilla_dom_SanitizerDefaultConfig_h
|
4854 |