| Index: third_party/WebKit/Source/core/frame/Window.idl
|
| diff --git a/third_party/WebKit/Source/core/frame/Window.idl b/third_party/WebKit/Source/core/frame/Window.idl
|
| index 265cc88a4da44333415a9417802ec6cc61b6fe94..3c3858f065ad214133112603dcf0854fceb75505 100644
|
| --- a/third_party/WebKit/Source/core/frame/Window.idl
|
| +++ b/third_party/WebKit/Source/core/frame/Window.idl
|
| @@ -37,7 +37,7 @@
|
| [Unforgeable, CallWith=ScriptState, CrossOrigin] readonly attribute Window window;
|
| [Replaceable, CallWith=ScriptState, CrossOrigin] readonly attribute Window self;
|
| [Unforgeable, CachedAccessor] readonly attribute Document document;
|
| - attribute DOMString name;
|
| + [Measure] attribute DOMString name;
|
| [PutForwards=href, Unforgeable, CrossOrigin=(Getter,Setter)] readonly attribute Location location;
|
| readonly attribute History history;
|
| [Replaceable, MeasureAs=BarPropLocationbar] readonly attribute BarProp locationbar;
|
| @@ -47,29 +47,29 @@
|
| [Replaceable, MeasureAs=BarPropStatusbar] readonly attribute BarProp statusbar;
|
| [Replaceable, MeasureAs=BarPropToolbar] readonly attribute BarProp toolbar;
|
| attribute DOMString status;
|
| - [CrossOrigin, CallWith=ExecutionContext] void close();
|
| - [CrossOrigin] readonly attribute boolean closed;
|
| - void stop();
|
| - [CrossOrigin, CallWith=ExecutionContext] void focus();
|
| - [CrossOrigin] void blur();
|
| + [Measure, CrossOrigin, CallWith=ExecutionContext] void close();
|
| + [Measure, CrossOrigin] readonly attribute boolean closed;
|
| + [Measure] void stop();
|
| + [Measure, CrossOrigin, CallWith=ExecutionContext] void focus();
|
| + [Measure, CrossOrigin] void blur();
|
|
|
| // other browsing contexts
|
| - [Replaceable, CallWith=ScriptState, CrossOrigin] readonly attribute Window frames;
|
| - [Replaceable, CrossOrigin] readonly attribute unsigned long length;
|
| - [Unforgeable, CrossOrigin] readonly attribute Window? top;
|
| + [Measure, Replaceable, CallWith=ScriptState, CrossOrigin] readonly attribute Window frames;
|
| + [Measure, Replaceable, CrossOrigin] readonly attribute unsigned long length;
|
| + [Measure, Unforgeable, CrossOrigin] readonly attribute Window? top;
|
| // FIXME: opener should be of type any.
|
| - [CrossOrigin, Custom=Setter] attribute Window opener;
|
| - [Replaceable, CrossOrigin] readonly attribute Window? parent;
|
| + [Measure, CrossOrigin, Custom=Setter] attribute Window opener;
|
| + [Measure, Replaceable, CrossOrigin] readonly attribute Window? parent;
|
| [CheckSecurity=ReturnValue, Custom=Getter] readonly attribute Element? frameElement;
|
| // FIXME: open() should have 4 optional arguments with defaults.
|
| - [Custom] Window? open(DOMString url, DOMString target, optional DOMString features);
|
| + [Measure, Custom] Window? open(DOMString url, DOMString target, optional DOMString features);
|
| // FIXME: These getters should not have [NotEnumerable].
|
| - [NotEnumerable, CrossOrigin] getter Window (unsigned long index);
|
| - [Custom, NotEnumerable, CrossOrigin] getter object (DOMString name);
|
| + [Measure, NotEnumerable, CrossOrigin] getter Window (unsigned long index);
|
| + [Measure, Custom, NotEnumerable, CrossOrigin] getter object (DOMString name);
|
|
|
| // the user agent
|
| [LogActivity=GetterOnly] readonly attribute Navigator navigator;
|
| - [LogActivity=GetterOnly] readonly attribute ApplicationCache applicationCache;
|
| + [Measure, LogActivity=GetterOnly] readonly attribute ApplicationCache applicationCache;
|
|
|
| // user prompts
|
| [Measure, CallWith=ScriptState] void alert();
|
| @@ -82,20 +82,20 @@
|
| void cancelAnimationFrame(long handle);
|
|
|
| [Measure] long requestIdleCallback(IdleRequestCallback callback, optional IdleRequestOptions options);
|
| - void cancelIdleCallback(long handle);
|
| + [Measure] void cancelIdleCallback(long handle);
|
|
|
| - [CrossOrigin, Custom, RaisesException] void postMessage(any message, DOMString targetOrigin, optional sequence<Transferable> transfer);
|
| + [Measure, CrossOrigin, Custom, RaisesException] void postMessage(any message, DOMString targetOrigin, optional sequence<Transferable> transfer);
|
|
|
| // Custom elements
|
| // https://w3c.github.io/webcomponents/spec/custom/#custom-elements-api
|
| - [RuntimeEnabled=CustomElementsV1, CallWith=ScriptState] readonly attribute CustomElementRegistry customElements;
|
| + [Measure, RuntimeEnabled=CustomElementsV1, CallWith=ScriptState] readonly attribute CustomElementRegistry customElements;
|
|
|
| // HTML obsolete features
|
| // https://html.spec.whatwg.org/#Window-partial
|
| [MeasureAs=WindowCaptureEvents] void captureEvents();
|
| [MeasureAs=WindowReleaseEvents] void releaseEvents();
|
|
|
| - [Replaceable, SameObject] readonly attribute External external;
|
| + [Measure, Replaceable, SameObject] readonly attribute External external;
|
|
|
| // CSS Object Model (CSSOM)
|
| // https://dev.w3.org/csswg/cssom/#extensions-to-the-window-interface
|
| @@ -142,7 +142,7 @@
|
|
|
| // Selection API
|
| // https://w3c.github.io/selection-api/#extensions-to-window-interface
|
| - Selection? getSelection();
|
| + [Measure] Selection? getSelection();
|
|
|
| // Console API
|
| // https://console.spec.whatwg.org/#console-interface
|
| @@ -180,20 +180,20 @@
|
| [MeasureAs=PrefixedMutationObserverConstructor] attribute MutationObserverConstructor WebKitMutationObserver;
|
|
|
| // Event handler attributes
|
| - attribute EventHandler onanimationend;
|
| - attribute EventHandler onanimationiteration;
|
| - attribute EventHandler onanimationstart;
|
| - [RuntimeEnabled=OrientationEvent] attribute EventHandler onorientationchange;
|
| - attribute EventHandler onsearch;
|
| - attribute EventHandler ontransitionend;
|
| - attribute EventHandler onwebkitanimationend;
|
| - attribute EventHandler onwebkitanimationiteration;
|
| - attribute EventHandler onwebkitanimationstart;
|
| - attribute EventHandler onwebkittransitionend;
|
| - attribute EventHandler onwheel;
|
| + [Measure] attribute EventHandler onanimationend;
|
| + [Measure] attribute EventHandler onanimationiteration;
|
| + [Measure] attribute EventHandler onanimationstart;
|
| + [Measure, RuntimeEnabled=OrientationEvent] attribute EventHandler onorientationchange;
|
| + [Measure] attribute EventHandler onsearch;
|
| + [Measure] attribute EventHandler ontransitionend;
|
| + [Measure] attribute EventHandler onwebkitanimationend;
|
| + [Measure] attribute EventHandler onwebkitanimationiteration;
|
| + [Measure] attribute EventHandler onwebkitanimationstart;
|
| + [Measure] attribute EventHandler onwebkittransitionend;
|
| + [Measure] attribute EventHandler onwheel;
|
|
|
| // https://w3c.github.io/webappsec/specs/powerfulfeatures/#monkey-patching-global-object
|
| - readonly attribute boolean isSecureContext;
|
| + [Measure] readonly attribute boolean isSecureContext;
|
| };
|
|
|
| // https://html.spec.whatwg.org/#transferable-objects
|
|
|