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

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

Issue 1754713006: CORS-RFC1918: Introduce the 'addressSpace' IDL attributes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: philip 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/Document.idl
diff --git a/third_party/WebKit/Source/core/dom/Document.idl b/third_party/WebKit/Source/core/dom/Document.idl
index ceec172c6788fd93245eaf66472d458b5d728cab..0f309aadd9b3d9735858ecd95f28bf3961a02e47 100644
--- a/third_party/WebKit/Source/core/dom/Document.idl
+++ b/third_party/WebKit/Source/core/dom/Document.idl
@@ -26,6 +26,9 @@ enum DocumentReadyState { "loading", "interactive", "complete" };
// http://www.w3.org/TR/page-visibility/#VisibilityState
enum VisibilityState { "hidden", "visible", "prerender", "unloaded" };
+// https://mikewest.github.io/cors-rfc1918/#feature-detect
+enum AddressSpace { "local", "private", "public" };
+
// https://dom.spec.whatwg.org/#interface-document
// FIXME: Document should have a constructor. crbug.com/238234
@@ -194,6 +197,10 @@ interface Document : Node {
readonly attribute boolean hidden;
readonly attribute VisibilityState visibilityState;
+ // CORS and RFC1918
+ // https://mikewest.github.io/cors-rfc1918/#feature-detect
+ [RuntimeEnabled=CorsRFC1918, ImplementedAs=addressSpaceForBindings] readonly attribute AddressSpace addressSpace;
+
// Non-standard APIs
[MeasureAs=DocumentCaretRangeFromPoint] Range caretRangeFromPoint([Default=Undefined] optional long x, [Default=Undefined] optional long y);

Powered by Google App Engine
This is Rietveld 408576698