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

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

Issue 1907253003: Don't copy the security origin when creating a document (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 years, 8 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/security/create-document-unique-origin-expected.txt ('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/DOMImplementation.cpp
diff --git a/third_party/WebKit/Source/core/dom/DOMImplementation.cpp b/third_party/WebKit/Source/core/dom/DOMImplementation.cpp
index cd82533489e4fca2f77587bbc5ebe4d819e27721..a2b606037efbe4107243eed3dfb529a88d523aaf 100644
--- a/third_party/WebKit/Source/core/dom/DOMImplementation.cpp
+++ b/third_party/WebKit/Source/core/dom/DOMImplementation.cpp
@@ -88,7 +88,7 @@ RawPtr<XMLDocument> DOMImplementation::createDocument(const AtomicString& namesp
doc = XMLDocument::create(init);
}
- doc->setSecurityOrigin(document().getSecurityOrigin()->isolatedCopy());
+ doc->setSecurityOrigin(document().getSecurityOrigin());
doc->setContextFeatures(document().contextFeatures());
RawPtr<Node> documentElement = nullptr;
@@ -210,7 +210,7 @@ RawPtr<HTMLDocument> DOMImplementation::createHTMLDocument(const String& title)
headElement->appendChild(titleElement);
titleElement->appendChild(d->createTextNode(title), ASSERT_NO_EXCEPTION);
}
- d->setSecurityOrigin(document().getSecurityOrigin()->isolatedCopy());
+ d->setSecurityOrigin(document().getSecurityOrigin());
d->setContextFeatures(document().contextFeatures());
return d.release();
}
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/security/create-document-unique-origin-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698