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

Side by Side Diff: third_party/WebKit/Source/core/frame/Window.idl

Issue 2832923003: v8binding: Don't allow author script to define indexed accessor prop. (Closed)
Patch Set: Added the test expectation. Created 3 years, 5 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/frame/DOMWindow.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // FIXME: open() should have 4 optional arguments with defaults.
66 [Custom, RaisesException] Window? open(DOMString url, DOMString target, opti onal DOMString features); 66 [Custom, RaisesException] Window? open(DOMString url, DOMString target, opti onal DOMString features);
67 67
68 // indexed properties 68 // indexed properties
69 // https://html.spec.whatwg.org/C/browsers.html#windowproxy-getownproperty 69 // https://html.spec.whatwg.org/C/browsers.html#windowproxy-getownproperty
70 [NotEnumerable, CrossOrigin] getter Window (unsigned long index); 70 [NotEnumerable, CrossOrigin] getter Window (unsigned long index);
71 // https://html.spec.whatwg.org/C/browsers.html#windowproxy-defineownpropert y
72 setter void (unsigned long index, any value);
73 71
74 // named properties 72 // named properties
75 [Custom, NotEnumerable, CrossOrigin] getter object (DOMString name); 73 [Custom, NotEnumerable, CrossOrigin] getter object (DOMString name);
76 74
77 // the user agent 75 // the user agent
78 [LogActivity=GetterOnly] readonly attribute Navigator navigator; 76 [LogActivity=GetterOnly] readonly attribute Navigator navigator;
79 [LogActivity=GetterOnly] readonly attribute ApplicationCache applicationCach e; 77 [LogActivity=GetterOnly] readonly attribute ApplicationCache applicationCach e;
80 78
81 // user prompts 79 // user prompts
82 [Measure, CallWith=ScriptState] void alert(); 80 [Measure, CallWith=ScriptState] void alert();
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 // FIXME: make this typedef accurate once enough of https://crbug.com/240176 218 // FIXME: make this typedef accurate once enough of https://crbug.com/240176
221 // is in place. 219 // is in place.
222 // FIXME: consider putting this typedef in an .idl file containing spec-wide 220 // FIXME: consider putting this typedef in an .idl file containing spec-wide
223 // utility type definitions. 221 // utility type definitions.
224 typedef MessagePort Transferable; 222 typedef MessagePort Transferable;
225 223
226 Window implements GlobalEventHandlers; 224 Window implements GlobalEventHandlers;
227 Window implements WindowBase64; 225 Window implements WindowBase64;
228 Window implements WindowEventHandlers; 226 Window implements WindowEventHandlers;
229 Window implements WindowTimers; 227 Window implements WindowTimers;
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/DOMWindow.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698