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

Side by Side Diff: third_party/WebKit/Source/core/dom/Document.idl

Issue 1611523002: Require the entry document to have the same origin as the open()d document (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2006, 2007 Samuel Weinig <sam@webkit.org> 3 * Copyright (C) 2006, 2007 Samuel Weinig <sam@webkit.org>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 [SameObject] readonly attribute HTMLCollection links; 106 [SameObject] readonly attribute HTMLCollection links;
107 [SameObject] readonly attribute HTMLCollection forms; 107 [SameObject] readonly attribute HTMLCollection forms;
108 [SameObject] readonly attribute HTMLCollection scripts; 108 [SameObject] readonly attribute HTMLCollection scripts;
109 [PerWorldBindings] NodeList getElementsByName(DOMString elementName); 109 [PerWorldBindings] NodeList getElementsByName(DOMString elementName);
110 readonly attribute HTMLScriptElement? currentScript; 110 readonly attribute HTMLScriptElement? currentScript;
111 111
112 // dynamic markup insertion 112 // dynamic markup insertion
113 // FIXME: There are two open() methods in the spec. 113 // FIXME: There are two open() methods in the spec.
114 [Custom, CustomElementCallbacks, RaisesException] void open(); 114 [Custom, CustomElementCallbacks, RaisesException] void open();
115 [RaisesException] void close(); 115 [RaisesException] void close();
116 [CallWith=ActiveWindow, CustomElementCallbacks, RaisesException] void write( DOMString... text); 116 [CallWith=FirstWindow, CustomElementCallbacks, RaisesException] void write(D OMString... text);
jochen (gone - plz use gerrit) 2016/01/29 08:01:37 write() uses the window to call open() internally,
philipj_slow 2016/01/29 08:39:18 FirstWindow isn't documented in https://www.chromi
jochen (gone - plz use gerrit) 2016/01/29 09:40:24 done. I didn't document ActiveWindow, as I'll del
117 [CallWith=ActiveWindow, CustomElementCallbacks, RaisesException] void writel n(DOMString... text); 117 [CallWith=FirstWindow, CustomElementCallbacks, RaisesException] void writeln (DOMString... text);
118 118
119 // user interaction 119 // user interaction
120 [ImplementedAs=domWindow] readonly attribute Window? defaultView; 120 [ImplementedAs=domWindow] readonly attribute Window? defaultView;
121 readonly attribute Element? activeElement; 121 readonly attribute Element? activeElement;
122 boolean hasFocus(); 122 boolean hasFocus();
123 [CustomElementCallbacks, MeasureAs=DocumentDesignMode] attribute DOMString d esignMode; 123 [CustomElementCallbacks, MeasureAs=DocumentDesignMode] attribute DOMString d esignMode;
124 [CustomElementCallbacks, RaisesException] boolean execCommand(DOMString comm andId, optional boolean showUI = false, optional DOMString value = ""); 124 [CustomElementCallbacks, RaisesException] boolean execCommand(DOMString comm andId, optional boolean showUI = false, optional DOMString value = "");
125 [RaisesException] boolean queryCommandEnabled(DOMString commandId); 125 [RaisesException] boolean queryCommandEnabled(DOMString commandId);
126 [RaisesException] boolean queryCommandIndeterm(DOMString commandId); 126 [RaisesException] boolean queryCommandIndeterm(DOMString commandId);
127 [RaisesException] boolean queryCommandState(DOMString commandId); 127 [RaisesException] boolean queryCommandState(DOMString commandId);
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 attribute EventHandler onsearch; 214 attribute EventHandler onsearch;
215 [RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] attribute EventHa ndler onsecuritypolicyviolation; 215 [RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] attribute EventHa ndler onsecuritypolicyviolation;
216 attribute EventHandler onselectionchange; 216 attribute EventHandler onselectionchange;
217 attribute EventHandler onselectstart; 217 attribute EventHandler onselectstart;
218 attribute EventHandler onwheel; 218 attribute EventHandler onwheel;
219 }; 219 };
220 220
221 Document implements GlobalEventHandlers; 221 Document implements GlobalEventHandlers;
222 Document implements ParentNode; 222 Document implements ParentNode;
223 Document implements NonElementParentNode; 223 Document implements NonElementParentNode;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698