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

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

Issue 2733093003: DevTools: instrument user callbacks based on generic probes, remove NativeBreakpoint. (Closed)
Patch Set: test fixed 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 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/DOMWindow.h" 5 #include "core/frame/DOMWindow.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include "core/dom/Document.h" 8 #include "core/dom/Document.h"
9 #include "core/dom/ExecutionContext.h" 9 #include "core/dom/ExecutionContext.h"
10 #include "core/dom/SecurityContext.h" 10 #include "core/dom/SecurityContext.h"
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 ConsoleMessage::create( 371 ConsoleMessage::create(
372 JSMessageSource, WarningMessageLevel, 372 JSMessageSource, WarningMessageLevel,
373 "Scripts may close only the windows that were opened by it.")); 373 "Scripts may close only the windows that were opened by it."));
374 } 374 }
375 return; 375 return;
376 } 376 }
377 377
378 if (!frame()->shouldClose()) 378 if (!frame()->shouldClose())
379 return; 379 return;
380 380
381 probe::breakIfNeeded(context, "DOMWindow.close"); 381 probe::breakableLocation(context, "DOMWindow.close");
382 382
383 page->closeSoon(); 383 page->closeSoon();
384 384
385 // So as to make window.closed return the expected result 385 // So as to make window.closed return the expected result
386 // after window.close(), separately record the to-be-closed 386 // after window.close(), separately record the to-be-closed
387 // state of this window. Scripts may access window.closed 387 // state of this window. Scripts may access window.closed
388 // before the deferred close operation has gone ahead. 388 // before the deferred close operation has gone ahead.
389 m_windowIsClosing = true; 389 m_windowIsClosing = true;
390 } 390 }
391 391
(...skipping 30 matching lines...) Expand all
422 } 422 }
423 423
424 DEFINE_TRACE(DOMWindow) { 424 DEFINE_TRACE(DOMWindow) {
425 visitor->trace(m_frame); 425 visitor->trace(m_frame);
426 visitor->trace(m_inputCapabilities); 426 visitor->trace(m_inputCapabilities);
427 visitor->trace(m_location); 427 visitor->trace(m_location);
428 EventTargetWithInlineData::trace(visitor); 428 EventTargetWithInlineData::trace(visitor);
429 } 429 }
430 430
431 } // namespace blink 431 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698