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

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: moar webexposed 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..cd50d1926d8cdf34a95ace02ee1237d618631d06 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
@@ -203,6 +206,9 @@ interface Document : Node {
[MeasureAs=PrefixedPageVisibility, ImplementedAs=visibilityState] readonly attribute DOMString webkitVisibilityState;
[MeasureAs=PrefixedPageVisibility, ImplementedAs=hidden] readonly attribute boolean webkitHidden;
+ // https://mikewest.github.io/cors-rfc1918/#feature-detect
philipj_slow 2016/03/04 04:35:08 Can you move this up to after Page Visibility and
Mike West 2016/03/04 08:58:21 Done and done.
+ [RuntimeEnabled=CorsRFC1918, ImplementedAs=addressSpaceAsString] readonly attribute AddressSpace addressSpace;
+
// Event handler attributes
attribute EventHandler onbeforecopy;
attribute EventHandler onbeforecut;

Powered by Google App Engine
This is Rietveld 408576698