Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(572)

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2744413002: Set view source without creating a unique origin in XMLDocumentParser (Closed)
Patch Set: Add test Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index e184fe385333a69833f7ddf0a12bd685793567e7..2beed4f7d6aaf09a25ef544ea9ccccd328e74312 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -2387,6 +2387,10 @@ void Document::setIsViewSource(bool isViewSource) {
didUpdateSecurityOrigin();
}
+void Document::setIsViewSourceWithoutUniqueOrigin() {
+ m_isViewSource = true;
+}
+
void Document::scheduleUseShadowTreeUpdate(SVGUseElement& element) {
m_useElementsNeedingUpdate.insert(&element);
scheduleLayoutTreeUpdateIfNeeded();
@@ -5623,7 +5627,6 @@ bool Document::canExecuteScripts(ReasonForCallingCanExecuteScripts reason) {
}
if (isViewSource()) {
- DCHECK(getSecurityOrigin()->isUnique());
return true;
}

Powered by Google App Engine
This is Rietveld 408576698