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

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

Issue 2768373005: 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 83ac39074f9b1e2d498b3f827d279ed4c99de0c0..a96d14e8b2663a4cc816efcef9e84012ca6c020c 100644
--- a/third_party/WebKit/Source/core/dom/Document.h
+++ b/third_party/WebKit/Source/core/dom/Document.h
@@ -593,9 +593,14 @@ class CORE_EXPORT Document : public ContainerNode,
bool wellFormed() const { return m_wellFormed; }
+ // Return the document URL, or an empty URL if it's unavailable.
+ // This is not an implementation of web-exposed Document.prototype.URL.
const KURL& url() const { return m_url; }
void setURL(const KURL&);
+ // Bind the url to document.url, if unavailable bind to about:blank.
+ KURL urlForBinding();
+
// To understand how these concepts relate to one another, please see the
// comments surrounding their declaration.
const KURL& baseURL() const { return m_baseURL; }

Powered by Google App Engine
This is Rietveld 408576698