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

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

Issue 2754933004: Set default document urls to 'about:blank'. (Closed)
Patch Set: 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.h
diff --git a/third_party/WebKit/Source/core/dom/Document.h b/third_party/WebKit/Source/core/dom/Document.h
index 43bfce85ce45d0317fea19669ca562fbf15bdc1d..d93cbe119cab4b887a4ccc2ae70b9db03484b3c9 100644
--- a/third_party/WebKit/Source/core/dom/Document.h
+++ b/third_party/WebKit/Source/core/dom/Document.h
@@ -1300,6 +1300,14 @@ class CORE_EXPORT Document : public ContainerNode,
void incrementPasswordCount();
void decrementPasswordCount();
+ // Set the default Document URLs to about:blank.
+ KURL urlForBinding() {
tkent 2017/03/20 23:06:54 Let's declare urlForBinding() around url(), and ad
+ if (!url().isNull()) {
+ return url();
+ }
+ return blankURL();
+ }
+
protected:
Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass);

Powered by Google App Engine
This is Rietveld 408576698