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

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

Issue 1911493004: Don't copy the security origin when creating a document (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates 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
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 37f82e49650d48381a2b84499e39c9a40ffedd2f..333672323185e09b12912b1273b5fa9f952da702 100644
--- a/third_party/WebKit/Source/core/dom/DOMImplementation.cpp
+++ b/third_party/WebKit/Source/core/dom/DOMImplementation.cpp
@@ -88,7 +88,7 @@ XMLDocument* DOMImplementation::createDocument(const AtomicString& namespaceURI,
doc = XMLDocument::create(init);
}
- doc->setSecurityOrigin(document().getSecurityOrigin()->isolatedCopy());
+ doc->setSecurityOrigin(document().getSecurityOrigin());
doc->setContextFeatures(document().contextFeatures());
Node* documentElement = nullptr;
@@ -210,7 +210,7 @@ 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;
}

Powered by Google App Engine
This is Rietveld 408576698