Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 55 [CrossOrigin] void blur(); | 55 [CrossOrigin] void blur(); |
| 56 | 56 |
| 57 // other browsing contexts | 57 // other browsing contexts |
| 58 [Replaceable, CrossOrigin] readonly attribute Window frames; | 58 [Replaceable, CrossOrigin] readonly attribute Window frames; |
| 59 [Replaceable, CrossOrigin] readonly attribute unsigned long length; | 59 [Replaceable, CrossOrigin] readonly attribute unsigned long length; |
| 60 [Unforgeable, CrossOrigin] readonly attribute Window? top; | 60 [Unforgeable, CrossOrigin] readonly attribute Window? top; |
| 61 // FIXME: opener should be of type any. | 61 // FIXME: opener should be of type any. |
| 62 [CrossOrigin, Custom=Setter] attribute Window opener; | 62 [CrossOrigin, Custom=Setter] attribute Window opener; |
| 63 [Replaceable, CrossOrigin] readonly attribute Window? parent; | 63 [Replaceable, CrossOrigin] readonly attribute Window? parent; |
| 64 [CheckSecurity=ReturnValue, Custom=Getter] readonly attribute Element? frame Element; | 64 [CheckSecurity=ReturnValue, Custom=Getter] readonly attribute Element? frame Element; |
| 65 // FIXME: open() should have 4 optional arguments with defaults. | 65 // 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.
| |
| 66 [Custom] Window? open(DOMString url, DOMString target, optional DOMString fe atures); | 66 [Custom] Window? open(optional DOMString url = "about:blank", optional DOMSt ring 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
| |
| 67 // FIXME: These getters should not have [NotEnumerable]. | 67 // FIXME: These getters should not have [NotEnumerable]. |
| 68 [NotEnumerable, CrossOrigin] getter Window (unsigned long index); | 68 [NotEnumerable, CrossOrigin] getter Window (unsigned long index); |
| 69 [Custom, NotEnumerable, CrossOrigin] getter object (DOMString name); | 69 [Custom, NotEnumerable, CrossOrigin] getter object (DOMString name); |
| 70 | 70 |
| 71 // the user agent | 71 // the user agent |
| 72 [LogActivity=GetterOnly] readonly attribute Navigator navigator; | 72 [LogActivity=GetterOnly] readonly attribute Navigator navigator; |
| 73 [LogActivity=GetterOnly] readonly attribute ApplicationCache applicationCach e; | 73 [LogActivity=GetterOnly] readonly attribute ApplicationCache applicationCach e; |
| 74 | 74 |
| 75 // user prompts | 75 // user prompts |
| 76 [Measure, CallWith=ScriptState] void alert(); | 76 [Measure, CallWith=ScriptState] void alert(); |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 212 // FIXME: make this typedef accurate once enough of https://crbug.com/240176 | 212 // FIXME: make this typedef accurate once enough of https://crbug.com/240176 |
| 213 // is in place. | 213 // is in place. |
| 214 // FIXME: consider putting this typedef in an .idl file containing spec-wide | 214 // FIXME: consider putting this typedef in an .idl file containing spec-wide |
| 215 // utility type definitions. | 215 // utility type definitions. |
| 216 typedef MessagePort Transferable; | 216 typedef MessagePort Transferable; |
| 217 | 217 |
| 218 Window implements GlobalEventHandlers; | 218 Window implements GlobalEventHandlers; |
| 219 Window implements WindowBase64; | 219 Window implements WindowBase64; |
| 220 Window implements WindowEventHandlers; | 220 Window implements WindowEventHandlers; |
| 221 Window implements WindowTimers; | 221 Window implements WindowTimers; |
| OLD | NEW |