summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/dom/document.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/dom/document.h')
-rw-r--r--chromium/third_party/blink/renderer/core/dom/document.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/chromium/third_party/blink/renderer/core/dom/document.h b/chromium/third_party/blink/renderer/core/dom/document.h
index 312715d83f2..4f07178eaeb 100644
--- a/chromium/third_party/blink/renderer/core/dom/document.h
+++ b/chromium/third_party/blink/renderer/core/dom/document.h
@@ -1583,6 +1583,13 @@ class CORE_EXPORT Document : public ContainerNode,
// applied to this document.
void BindContentSecurityPolicy();
+ // We setup a dummy document to sanitize clipboard markup before pasting.
+ // Sets and indicates whether this is the dummy document.
+ void SetIsForMarkupSanitization(bool is_for_sanitization) {
+ is_for_markup_sanitization_ = is_for_sanitization;
+ }
+ bool IsForMarkupSanitization() const { return is_for_markup_sanitization_; }
+
bool HasPendingJavaScriptUrlsForTest() {
return !pending_javascript_urls_.IsEmpty();
}
@@ -2101,6 +2108,8 @@ class CORE_EXPORT Document : public ContainerNode,
// TODO(altimin): We should be able to remove it after we complete
// frame:document lifetime refactoring.
std::unique_ptr<FrameOrWorkerScheduler> detached_scheduler_;
+
+ bool is_for_markup_sanitization_ = false;
};
extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Document>;