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

Side by Side Diff: third_party/WebKit/Source/core/frame/RemoteDOMWindow.cpp

Issue 1940253002: Disallow certain blocking DOM calls during microtask execution. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 4 years, 7 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/frame/RemoteDOMWindow.h" 5 #include "core/frame/RemoteDOMWindow.h"
6 6
7 #include "bindings/core/v8/SerializedScriptValue.h" 7 #include "bindings/core/v8/SerializedScriptValue.h"
8 #include "core/css/CSSRuleList.h" 8 #include "core/css/CSSRuleList.h"
9 #include "core/css/CSSStyleDeclaration.h" 9 #include "core/css/CSSStyleDeclaration.h"
10 #include "core/css/MediaQueryList.h" 10 #include "core/css/MediaQueryList.h"
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 { 201 {
202 ASSERT_NOT_REACHED(); 202 ASSERT_NOT_REACHED();
203 return 0; 203 return 0;
204 } 204 }
205 205
206 void RemoteDOMWindow::blur() 206 void RemoteDOMWindow::blur()
207 { 207 {
208 // FIXME: Implement. 208 // FIXME: Implement.
209 } 209 }
210 210
211 void RemoteDOMWindow::print() 211 void RemoteDOMWindow::print(ScriptState*)
212 { 212 {
213 ASSERT_NOT_REACHED(); 213 ASSERT_NOT_REACHED();
214 } 214 }
215 215
216 void RemoteDOMWindow::stop() 216 void RemoteDOMWindow::stop()
217 { 217 {
218 // FIXME: Implement. 218 // FIXME: Implement.
219 } 219 }
220 220
221 void RemoteDOMWindow::alert(const String& message) 221 void RemoteDOMWindow::alert(ScriptState*, const String& message)
222 { 222 {
223 ASSERT_NOT_REACHED(); 223 ASSERT_NOT_REACHED();
224 } 224 }
225 225
226 bool RemoteDOMWindow::confirm(const String& message) 226 bool RemoteDOMWindow::confirm(ScriptState*, const String& message)
227 { 227 {
228 ASSERT_NOT_REACHED(); 228 ASSERT_NOT_REACHED();
229 return false; 229 return false;
230 } 230 }
231 231
232 String RemoteDOMWindow::prompt(const String& message, const String& defaultValue ) 232 String RemoteDOMWindow::prompt(ScriptState*, const String& message, const String & defaultValue)
233 { 233 {
234 ASSERT_NOT_REACHED(); 234 ASSERT_NOT_REACHED();
235 return String(); 235 return String();
236 } 236 }
237 237
238 bool RemoteDOMWindow::find(const String&, bool caseSensitive, bool backwards, bo ol wrap, bool wholeWord, bool searchInFrames, bool showDialog) const 238 bool RemoteDOMWindow::find(const String&, bool caseSensitive, bool backwards, bo ol wrap, bool wholeWord, bool searchInFrames, bool showDialog) const
239 { 239 {
240 ASSERT_NOT_REACHED(); 240 ASSERT_NOT_REACHED();
241 return false; 241 return false;
242 } 242 }
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 : m_frame(&frame) 337 : m_frame(&frame)
338 { 338 {
339 } 339 }
340 340
341 void RemoteDOMWindow::frameDetached() 341 void RemoteDOMWindow::frameDetached()
342 { 342 {
343 m_frame = nullptr; 343 m_frame = nullptr;
344 } 344 }
345 345
346 } // namespace blink 346 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698