| Summary: | Web Inspector: New JavaScript/Probe breakpoint action disappears when clicking continue checkbox | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Matt Baker <mattbaker> | ||||||||
| Component: | Web Inspector | Assignee: | Matt Baker <mattbaker> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | commit-queue, graouts, joepeck, jonowells, mattbaker, nvasilyev, timothy, webkit-bug-importer | ||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||
| Version: | 528+ (Nightly build) | ||||||||||
| Hardware: | All | ||||||||||
| OS: | All | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Matt Baker
2015-07-07 12:33:40 PDT
Created attachment 256319 [details]
[Patch] Proposed Fix
Comment on attachment 256319 [details] [Patch] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=256319&action=review Good call! This has annoyed me in the past. > Source/WebInspectorUI/UserInterface/Models/Breakpoint.js:530 > + return !action.data.length && (action.type === WebInspector.BreakpointAction.Type.Evaluate || action.type === WebInspector.BreakpointAction.Type.Probe); Maybe action.data.trim().length Comment on attachment 256319 [details] [Patch] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=256319&action=review >> Source/WebInspectorUI/UserInterface/Models/Breakpoint.js:530 >> + return !action.data.length && (action.type === WebInspector.BreakpointAction.Type.Evaluate || action.type === WebInspector.BreakpointAction.Type.Probe); > > Maybe action.data.trim().length Also no need for length. !action.data.trim() is the same, since "" is falsey. Comment on attachment 256319 [details] [Patch] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=256319&action=review >>> Source/WebInspectorUI/UserInterface/Models/Breakpoint.js:530 >>> + return !action.data.length && (action.type === WebInspector.BreakpointAction.Type.Evaluate || action.type === WebInspector.BreakpointAction.Type.Probe); >> >> Maybe action.data.trim().length > > Also no need for length. !action.data.trim() is the same, since "" is falsey. BreakPointActionView trims the CodeMirror value before storing in the action. Created attachment 256460 [details]
[Patch] Proposed Fix
Created attachment 256464 [details]
[Patch] Proposed Fix
Comment on attachment 256464 [details]
[Patch] Proposed Fix
r=me
Comment on attachment 256464 [details] [Patch] Proposed Fix Clearing flags on attachment: 256464 Committed r186589: <http://trac.webkit.org/changeset/186589> All reviewed patches have been landed. Closing bug. |