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

Unified Diff: third_party/WebKit/Source/core/frame/Window.idl

Issue 2755773002: Make Window#open arguments optional to match the spec
Patch Set: Update window.open function length for layout tests" 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
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/js/function-length-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c86c8b21790ac6626c5f682a9df2207544a54917..bc3cacdffe45b6217cc4805b4d7fb70d812a72e9 100644
--- a/third_party/WebKit/Source/core/frame/Window.idl
+++ b/third_party/WebKit/Source/core/frame/Window.idl
@@ -62,8 +62,8 @@
[CrossOrigin, Custom=Setter] attribute Window opener;
[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);
+ // TODO(lunalu): Replace Window by WindowProxy.
foolip 2017/03/21 08:09:34 There's already a generic WindowProxy FIXME furthe
lunalu1 2017/03/21 19:49:45 My bad. I will just remove this TODO then.
+ [Custom] Window? open(optional DOMString url = "about:blank", optional DOMString target = "_blank", [TreatNullAs=EmptyString] optional DOMString features = "");
foolip 2017/03/21 08:09:34 Because of the [Custom] extended attribute, this w
lunalu1 2017/03/21 19:49:45 There isn't a test for window.open.length. But I a
foolip 2017/03/22 05:31:20 It is a bit silly, yes, and something I think idlh
lunalu1 2017/03/24 19:37:31 Very interesting found: Chrome currently already b
lunalu1 2017/03/24 19:37:31 I tried to test for window.open().name. It doesn't
foolip 2017/03/30 05:04:50 This is complicated a bit by https://html.spec.wha
// FIXME: These getters should not have [NotEnumerable].
[NotEnumerable, CrossOrigin] getter Window (unsigned long index);
[Custom, NotEnumerable, CrossOrigin] getter object (DOMString name);
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/js/function-length-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698