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

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: Remove unique security origin 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
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/xmlviewer/no-unique-origin.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 274b2f7904688d44e6f5fd16b0643e8d4db265ce..ae8bdd385c753a3e3c42e84182bea871091da7f4 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -2391,9 +2391,6 @@ void Document::setIsViewSource(bool isViewSource) {
m_isViewSource = isViewSource;
if (!m_isViewSource)
return;
-
- setSecurityOrigin(SecurityOrigin::createUnique());
- didUpdateSecurityOrigin();
}
void Document::scheduleUseShadowTreeUpdate(SVGUseElement& element) {
@@ -5633,11 +5630,6 @@ bool Document::canExecuteScripts(ReasonForCallingCanExecuteScripts reason) {
return false;
}
- if (isViewSource()) {
- DCHECK(getSecurityOrigin()->isUnique());
- return true;
- }
-
DCHECK(frame())
<< "you are querying canExecuteScripts on a non contextDocument.";
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/xmlviewer/no-unique-origin.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698