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

Unified Diff: third_party/WebKit/Source/core/dom/DocumentInit.h

Issue 1676793003: Revert of Don't set the origin twice when navigating for javascript: URLs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/DocumentInit.h
diff --git a/third_party/WebKit/Source/core/dom/DocumentInit.h b/third_party/WebKit/Source/core/dom/DocumentInit.h
index 9ff2340463ef5472b259544c4234eb7517197e5a..4b3437bfd73a258ff7e61da35dc0370be4b7e702 100644
--- a/third_party/WebKit/Source/core/dom/DocumentInit.h
+++ b/third_party/WebKit/Source/core/dom/DocumentInit.h
@@ -66,7 +66,6 @@
bool isHostedInReservedIPRange() const;
SecurityContext::InsecureRequestsPolicy insecureRequestsPolicy() const;
SecurityContext::InsecureNavigationsSet* insecureNavigationsToUpgrade() const;
- bool shouldInheritSecurityOriginFromOwner() const { return m_shouldInheritSecurityOriginFromOwner; }
Document* parent() const { return m_parent.get(); }
Document* owner() const { return m_owner.get(); }
@@ -76,7 +75,6 @@
DocumentInit& withRegistrationContext(CustomElementRegistrationContext*);
DocumentInit& withNewRegistrationContext();
- DocumentInit& withoutInheritingSecurityOrigin();
PassRefPtrWillBeRawPtr<CustomElementRegistrationContext> registrationContext(Document*) const;
WeakPtrWillBeRawPtr<Document> contextDocument() const;
@@ -103,16 +101,6 @@
// the network load. See also SecurityContext::isSecureTransitionTo.
// FIXME: This is for DocumentWriter creation, not for one of Document.
bool m_shouldReuseDefaultView;
-
- // http://www.whatwg.org/specs/web-apps/current-work/#origin-0
- //
- // If a Document has the address "about:blank"
- // The origin of the Document is the origin it was assigned when its browsing context was created.
- //
- // Note: We generalize this to all "blank" URLs and invalid URLs because we
- // treat all of these URLs as about:blank.
- //
- bool m_shouldInheritSecurityOriginFromOwner;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/dom/DocumentInit.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698