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

Issue 401523004: Break on window close when the inspector is open (Closed)

Created:
6 years, 5 months ago by venuatu
Modified:
6 years, 4 months ago
CC:
blink-reviews, caseq+blink_chromium.org, loislo+blink_chromium.org, eustas+blink_chromium.org, malch+blink_chromium.org, yurys+blink_chromium.org, lushnikov+blink_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, paulirish+reviews_chromium.org, apavlov+blink_chromium.org, Inactive, devtools-reviews_chromium.org, arv+blink, sergeyv+blink_chromium.org, aandrey+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Break on window close when the inspector is open BUG=171447 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=179121

Patch Set 1 #

Patch Set 2 : a working test #

Total comments: 2

Patch Set 3 : add window breakpoint category, add stacktrace to output #

Total comments: 5

Patch Set 4 : InspectorDOMDebuggerAgent: nullptr -> 0 #

Patch Set 5 : add some comments, drop unused args, only catch one stack frame #

Total comments: 1

Patch Set 6 : use InspectorTest.startDebuggerTest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -0 lines) Patch
A LayoutTests/inspector-enabled/sources/debugger/script-window-close-breakpoint.html View 1 2 3 4 5 1 chunk +63 lines, -0 lines 0 comments Download
A LayoutTests/inspector-enabled/sources/debugger/script-window-close-breakpoint-expected.txt View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M Source/core/frame/LocalDOMWindow.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/inspector/InspectorDOMDebuggerAgent.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/inspector/InspectorDOMDebuggerAgent.cpp View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M Source/core/inspector/InspectorInstrumentation.idl View 1 chunk +3 lines, -0 lines 0 comments Download
M Source/devtools/front_end/sources/BreakpointsSidebarPane.js View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
venuatu
6 years, 5 months ago (2014-07-22 04:05:47 UTC) #1
pfeldman
Overall this looks good. https://codereview.chromium.org/401523004/diff/20001/LayoutTests/inspector-enabled/sources/debugger/script-window-close-breakpoint.html File LayoutTests/inspector-enabled/sources/debugger/script-window-close-breakpoint.html (right): https://codereview.chromium.org/401523004/diff/20001/LayoutTests/inspector-enabled/sources/debugger/script-window-close-breakpoint.html#newcode46 LayoutTests/inspector-enabled/sources/debugger/script-window-close-breakpoint.html:46: log("Paused in breakpoint"); You should ...
6 years, 5 months ago (2014-07-22 08:57:40 UTC) #2
venuatu
On 2014/07/22 08:57:40, pfeldman wrote: > Overall this looks good. > > https://codereview.chromium.org/401523004/diff/20001/LayoutTests/inspector-enabled/sources/debugger/script-window-close-breakpoint.html > File ...
6 years, 5 months ago (2014-07-24 13:42:03 UTC) #3
pfeldman
lgtm
6 years, 4 months ago (2014-07-28 11:58:17 UTC) #4
aandrey
https://codereview.chromium.org/401523004/diff/40001/Source/core/inspector/InspectorDOMDebuggerAgent.cpp File Source/core/inspector/InspectorDOMDebuggerAgent.cpp (right): https://codereview.chromium.org/401523004/diff/40001/Source/core/inspector/InspectorDOMDebuggerAgent.cpp#newcode487 Source/core/inspector/InspectorDOMDebuggerAgent.cpp:487: pauseOnNativeEventIfNeeded(preparePauseOnNativeEventData(windowCloseEventName, nullptr), true); nullptr -> 0
6 years, 4 months ago (2014-07-28 14:08:35 UTC) #5
aandrey
https://codereview.chromium.org/401523004/diff/40001/LayoutTests/inspector-enabled/sources/debugger/script-window-close-breakpoint-expected.txt File LayoutTests/inspector-enabled/sources/debugger/script-window-close-breakpoint-expected.txt (right): https://codereview.chromium.org/401523004/diff/40001/LayoutTests/inspector-enabled/sources/debugger/script-window-close-breakpoint-expected.txt#newcode8 LayoutTests/inspector-enabled/sources/debugger/script-window-close-breakpoint-expected.txt:8: FAIL: main window was destroyed FAIL ?! https://codereview.chromium.org/401523004/diff/40001/LayoutTests/inspector-enabled/sources/debugger/script-window-close-breakpoint.html File ...
6 years, 4 months ago (2014-07-28 14:14:43 UTC) #6
venuatu
On 2014/07/28 14:14:43, aandrey wrote: > https://codereview.chromium.org/401523004/diff/40001/LayoutTests/inspector-enabled/sources/debugger/script-window-close-breakpoint-expected.txt#newcode8 > LayoutTests/inspector-enabled/sources/debugger/script-window-close-breakpoint-expected.txt:8: > FAIL: main window was destroyed ...
6 years, 4 months ago (2014-07-28 14:28:55 UTC) #7
venuatu
I have uploaded changelists for those issues
6 years, 4 months ago (2014-07-28 14:58:42 UTC) #8
aandrey
https://codereview.chromium.org/401523004/diff/80001/LayoutTests/inspector-enabled/sources/debugger/script-window-close-breakpoint.html File LayoutTests/inspector-enabled/sources/debugger/script-window-close-breakpoint.html (right): https://codereview.chromium.org/401523004/diff/80001/LayoutTests/inspector-enabled/sources/debugger/script-window-close-breakpoint.html#newcode52 LayoutTests/inspector-enabled/sources/debugger/script-window-close-breakpoint.html:52: // After this point execution will resume and the ...
6 years, 4 months ago (2014-07-28 15:19:40 UTC) #9
venuatu
On 2014/07/28 15:19:40, aandrey wrote: > https://codereview.chromium.org/401523004/diff/80001/LayoutTests/inspector-enabled/sources/debugger/script-window-close-breakpoint.html > File > LayoutTests/inspector-enabled/sources/debugger/script-window-close-breakpoint.html > (right): > > ...
6 years, 4 months ago (2014-07-29 00:49:59 UTC) #10
aandrey
lgtm
6 years, 4 months ago (2014-07-29 09:32:35 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/venuatu@gmail.com/401523004/100001
6 years, 4 months ago (2014-07-29 09:33:47 UTC) #12
commit-bot: I haz the power
6 years, 4 months ago (2014-07-29 10:43:46 UTC) #13
Message was sent while issue was closed.
Change committed as 179121

Powered by Google App Engine
This is Rietveld 408576698