2016-06-22 Brian Burg Web Inspector: don't start auto capturing if the Inspector window is not visible https://bugs.webkit.org/show_bug.cgi?id=159014 Reviewed by Joseph Pecoraro. Followup, add a missing super.closed() call mentioned in review comments. * UserInterface/Views/TimelineTabContentView.js: (WebInspector.TimelineTabContentView.prototype.closed): 2016-06-22 Brian Burg Web Inspector: don't start auto capturing if the Inspector window is not visible https://bugs.webkit.org/show_bug.cgi?id=159014 Reviewed by Joseph Pecoraro. TimelineTabContentView should not tell the timeline manager to enable auto-capturing unless the Web Inspector UI is visible. If it is preloaded but not shown to the user, then auto-capturing may inadvertently disable the debugger, causing it to miss `debugger` statements and not bring the inspector to front. * UserInterface/Controllers/TimelineManager.js: (WebInspector.TimelineManager.prototype.set autoCaptureOnPageLoad): Bail out if nothing changed. Coerce to a boolean since the backend requires a boolean. * UserInterface/Views/TimelineTabContentView.js: (WebInspector.TimelineTabContentView): Listen for UI visibility changes. (WebInspector.TimelineTabContentView.prototype.shown): Enable auto-capturing if the UI is visible. (WebInspector.TimelineTabContentView.prototype.closed): Added. Remove listeners on global objects so this tab doesn't leak. (WebInspector.TimelineTabContentView.prototype._inspectorVisibilityChanged): Update the auto-capturing setting if the UI became visible or not visible. 2016-06-22 Nikita Vasilyev Web Inspector: Simplify CSS rule for ContentBrowser navigation bar items https://bugs.webkit.org/show_bug.cgi?id=159000 Reviewed by Timothy Hatcher. * UserInterface/Views/ContentBrowser.css: (.content-browser > .navigation-bar > .item): Both these values result in 28px, but `100%` is simplier. 2016-06-21 Nikita Vasilyev REGRESSION(r201177): Web Inspector: ContentBrowser navigation bar should fit on a single line https://bugs.webkit.org/show_bug.cgi?id=158700 Reviewed by Joseph Pecoraro. * UserInterface/Views/ContentBrowser.css: (.content-browser > .navigation-bar > .item): Set the height to 28px, as it was before r201177. Make it one pixel shorter than the navigation bar for better vertical alignment. 2016-06-20 Joseph Pecoraro Web Inspector: UncaughtExceptionReporter should handle null event.error https://bugs.webkit.org/show_bug.cgi?id=158971 Reviewed by Brian Burg. * UserInterface/Debug/UncaughtExceptionReporter.js: Since `typeof null === "object"` handle uncaught exceptions where the Error object itself is null. 2016-06-20 Joseph Pecoraro Web Inspector: Snapshot List should show the total size and the total live size https://bugs.webkit.org/show_bug.cgi?id=157904 Reviewed by Brian Burg. Include the live size of a snapshot in the snapshot list. * Localizations/en.lproj/localizedStrings.js: New "Live Size" string. * UserInterface/Workers/HeapSnapshot/HeapSnapshot.js: (HeapSnapshot): (HeapSnapshot.updateCategoriesAndMetadata): (HeapSnapshot.prototype.update): (HeapSnapshot.prototype.serialize): (HeapSnapshotDiff): (HeapSnapshotDiff.prototype.update): (HeapSnapshot.buildCategories): Deleted. (HeapSnapshot.prototype.updateCategories): Deleted. (HeapSnapshotDiff.prototype.updateCategories): Deleted. * UserInterface/Proxies/HeapSnapshotDiffProxy.js: (WebInspector.HeapSnapshotDiffProxy.prototype.updateForCollectionEvent): (WebInspector.HeapSnapshotDiffProxy.prototype.update): (WebInspector.HeapSnapshotDiffProxy.prototype.updateCategories): Deleted. * UserInterface/Proxies/HeapSnapshotProxy.js: (WebInspector.HeapSnapshotProxy): (WebInspector.HeapSnapshotProxy.deserialize): (WebInspector.HeapSnapshotProxy.prototype.get liveSize): (WebInspector.HeapSnapshotProxy.prototype.updateForCollectionEvent): (WebInspector.HeapSnapshotProxy.prototype.update): (WebInspector.HeapSnapshotProxy.prototype.updateCategories): Deleted. Rename "updateCategories" to "update" and update both categories and metadata, like the liveSize. * UserInterface/Views/HeapAllocationsTimelineDataGridNode.js: (WebInspector.HeapAllocationsTimelineDataGridNode): (WebInspector.HeapAllocationsTimelineDataGridNode.prototype.createCellContent): (WebInspector.HeapAllocationsTimelineDataGridNode.prototype._heapSnapshotCollectedNodes): Update live size after collection. * UserInterface/Views/HeapAllocationsTimelineView.js: (WebInspector.HeapAllocationsTimelineView): Include a live size column in the DataGrid. (WebInspector.HeapAllocationsTimelineView.prototype.closed): Cleanup listeners appropriately. 2016-06-20 Joseph Pecoraro Web Inspector: console.profile should use the new Sampling Profiler https://bugs.webkit.org/show_bug.cgi?id=153499 Reviewed by Timothy Hatcher. * UserInterface/Controllers/TimelineManager.js: (WebInspector.TimelineManager.prototype.programmaticCaptureStarted): (WebInspector.TimelineManager.prototype.programmaticCaptureStopped): (WebInspector.TimelineManager.prototype.scriptProfilerProgrammaticCaptureStarted): (WebInspector.TimelineManager.prototype.scriptProfilerProgrammaticCaptureStopped): For programmatic captures, automatically show the Script Timeline, since that is guarenteed to have been started by the backend. Start capturing without creating a new recording. * UserInterface/Models/TimelineRecording.js: (WebInspector.TimelineRecording.prototype.stop): (WebInspector.TimelineRecording.prototype.addScriptInstrumentForProgrammaticCapture): When stopping for programmatic capture we don't need to disable instruments, the backend would have already done this. * UserInterface/Protocol/ScriptProfilerObserver.js: (WebInspector.ScriptProfilerObserver.prototype.programmaticCaptureStarted): (WebInspector.ScriptProfilerObserver.prototype.programmaticCaptureStopped): (WebInspector.ScriptProfilerObserver): * UserInterface/Protocol/TimelineObserver.js: (WebInspector.TimelineObserver.prototype.programmaticCaptureStarted): (WebInspector.TimelineObserver.prototype.programmaticCaptureStopped): (WebInspector.TimelineObserver): Pass through Web and JSContext programmatic capture events. 2016-06-19 Nikita Vasilyev Web Inspector: Remove Sidebar z-index:0 workaround for scrollbars and position:sticky section headers https://bugs.webkit.org/show_bug.cgi?id=158882 Reviewed by Darin Adler. The z-index:0 workaround is no longer needed as it doesn't change anything. * UserInterface/Views/Sidebar.css: (.sidebar > .panel): Deleted. 2016-06-17 Commit Queue Unreviewed, rolling out r202152. https://bugs.webkit.org/show_bug.cgi?id=158897 The new test is very unstable, timing out frequently (Requested by ap on #webkit). Reverted changeset: "Web Inspector: console.profile should use the new Sampling Profiler" https://bugs.webkit.org/show_bug.cgi?id=153499 http://trac.webkit.org/changeset/202152 2016-06-16 Joseph Pecoraro Web Inspector: console.profile should use the new Sampling Profiler https://bugs.webkit.org/show_bug.cgi?id=153499 Reviewed by Timothy Hatcher. * UserInterface/Controllers/TimelineManager.js: (WebInspector.TimelineManager.prototype.programmaticCaptureStarted): (WebInspector.TimelineManager.prototype.programmaticCaptureStopped): (WebInspector.TimelineManager.prototype.scriptProfilerProgrammaticCaptureStarted): (WebInspector.TimelineManager.prototype.scriptProfilerProgrammaticCaptureStopped): For programmatic captures, automatically show the Script Timeline, since that is guarenteed to have been started by the backend. Start capturing without creating a new recording. * UserInterface/Models/TimelineRecording.js: (WebInspector.TimelineRecording.prototype.stop): (WebInspector.TimelineRecording.prototype.addScriptInstrumentForProgrammaticCapture): When stopping for programmatic capture we don't need to disable instruments, the backend would have already done this. * UserInterface/Protocol/ScriptProfilerObserver.js: (WebInspector.ScriptProfilerObserver.prototype.programmaticCaptureStarted): (WebInspector.ScriptProfilerObserver.prototype.programmaticCaptureStopped): (WebInspector.ScriptProfilerObserver): * UserInterface/Protocol/TimelineObserver.js: (WebInspector.TimelineObserver.prototype.programmaticCaptureStarted): (WebInspector.TimelineObserver.prototype.programmaticCaptureStopped): (WebInspector.TimelineObserver): Pass through Web and JSContext programmatic capture events. 2016-06-16 Joseph Pecoraro REGRESSION (r201538): Web Inspector: Border over Allocations Views is too thick https://bugs.webkit.org/show_bug.cgi?id=158846 Reviewed by Timothy Hatcher. * UserInterface/Views/HeapAllocationsTimelineView.css: (.timeline-view.heap-allocations > .content-view-container > .content-view): Deleted. 2016-06-16 Matt Baker Unreviewed build fix. * UserInterface/Views/DataGrid.js: (WebInspector.DataGrid.prototype.createSettings): "showColumn" -> "setColumnVisible". 2016-06-16 Matt Baker Web Inspector: DataGrid should manage its own settings https://bugs.webkit.org/show_bug.cgi?id=158675 Reviewed by Timothy Hatcher. Move grid sorting settings (sort order, column identifier) into DataGrid, removing duplicated code from various views. A new grid method, "createSettings", takes an identifier which is used as a prefix for naming the grid's settings. So that the new behavior is easy to use and hard to misuse, default values for each setting are set to the current value of the associated property. The result is that: grid.sortColumnIdentifier = "columnA"; grid.createSettings("myGrid"); will use "columnA" as the default value the first time the setting is created. * UserInterface/Views/ApplicationCacheFrameContentView.js: (WebInspector.ApplicationCacheFrameContentView.prototype._createDataGrid): * UserInterface/Views/CookieStorageContentView.js: (WebInspector.CookieStorageContentView.prototype._rebuildTable): * UserInterface/Views/DOMStorageContentView.js: (WebInspector.DOMStorageContentView): * UserInterface/Views/DataGrid.js: (WebInspector.DataGrid): (WebInspector.DataGrid.prototype.createSettings): (WebInspector.DataGrid.prototype.get identifier): Deleted. (WebInspector.DataGrid.prototype.set identifier): Deleted. (WebInspector.DataGrid.prototype.set sortOrderSetting): Deleted. (WebInspector.DataGrid.prototype.set sortColumnIdentifierSetting): Deleted. * UserInterface/Views/HeapAllocationsTimelineView.js: (WebInspector.HeapAllocationsTimelineView): * UserInterface/Views/HeapSnapshotContentView.js: (WebInspector.HeapSnapshotContentView): * UserInterface/Views/LayerTreeDetailsSidebarPanel.js: (WebInspector.LayerTreeDetailsSidebarPanel.prototype._buildDataGridSection): * UserInterface/Views/LayoutTimelineView.js: (WebInspector.LayoutTimelineView): * UserInterface/Views/NetworkGridContentView.js: (WebInspector.NetworkGridContentView): * UserInterface/Views/NetworkTimelineView.js: (WebInspector.NetworkTimelineView): * UserInterface/Views/ProfileView.js: (WebInspector.ProfileView): * UserInterface/Views/RenderingFrameTimelineView.js: (WebInspector.RenderingFrameTimelineView): * UserInterface/Views/ScriptDetailsTimelineView.js: (WebInspector.ScriptDetailsTimelineView): 2016-06-15 Joseph Pecoraro Uncaught Exception: TypeError: undefined is not an object (evaluating 'imageElement.classList') https://bugs.webkit.org/show_bug.cgi?id=158808 Reviewed by Brian Burg. * UserInterface/Views/HeapAllocationsTimelineOverviewGraph.js: (WebInspector.HeapAllocationsTimelineOverviewGraph.prototype._updateSnapshotMarkers): If the record is out of the layout bounds of the overview graph, the overview graph may not have created an image element yet, so bail. Later, when the image element is created, it would get the appropriate style if the record is selected. 2016-06-14 Matt Baker Web Inspector: Rename DataGrid.showColumn to setColumnVisible https://bugs.webkit.org/show_bug.cgi?id=158764 Reviewed by Joseph Pecoraro. * UserInterface/Views/DataGrid.js: (WebInspector.DataGrid): Drive-by update to initialize "this._columnChooserEnabled". (WebInspector.DataGrid.prototype.set identifier): (WebInspector.DataGrid.prototype.insertColumn): (WebInspector.DataGrid.prototype._collapseColumnGroupWithCell): Use new method name. (WebInspector.DataGrid.prototype._contextMenuInHeader): Drive-by style update. 2016-06-14 Matt Baker Web Inspector: Storage tab should allow hiding columns in the cookies grid https://bugs.webkit.org/show_bug.cgi?id=158767 Reviewed by Joseph Pecoraro. * UserInterface/Views/CookieStorageContentView.js: (WebInspector.CookieStorageContentView.prototype._rebuildTable): Enable column chooser, exclude Name and Value columns. 2016-06-14 Nikita Vasilyev Web Inspector: Visual Sidebar: Remove "Text -> Content" subsection https://bugs.webkit.org/show_bug.cgi?id=158758 Reviewed by Timothy Hatcher. "content" CSS property only works with pseudo elements ::before and ::after. It doesn't do anything for regular (non pseudo) elements. Remove it to reduce UI clutter. * UserInterface/Views/VisualStyleDetailsPanel.js: (WebInspector.VisualStyleDetailsPanel.prototype.initialLayout): (WebInspector.VisualStyleDetailsPanel.prototype._populateContentSection): Deleted. * UserInterface/Views/VisualStylePropertyEditor.css: (.visual-style-property-container > *:first-child:matches(.visual-style-property-value-container)): Deleted. 2016-06-14 Joseph Pecoraro Web Inspector: Rename Timeline.setAutoCaptureInstruments to Timeline.setInstruments https://bugs.webkit.org/show_bug.cgi?id=158762 Reviewed by Timothy Hatcher. * UserInterface/Controllers/TimelineManager.js: (WebInspector.TimelineManager.prototype._updateAutoCaptureInstruments): (WebInspector.TimelineManager): 2016-06-14 Benjamin Poulain Add the unprefixed version of the pseudo element ::placeholder https://bugs.webkit.org/show_bug.cgi?id=158653 Reviewed by Dean Jackson. * UserInterface/Views/FilterBar.css: (.filter-bar > input[type="search"]::placeholder): (.filter-bar > input[type="search"]::-webkit-input-placeholder): Deleted. * UserInterface/Views/FindBanner.css: (.find-banner.console-find-banner > input[type="search"]::placeholder): (.find-banner.console-find-banner > input[type="search"]::-webkit-input-placeholder): Deleted. * UserInterface/Views/GoToLineDialog.css: (.go-to-line-dialog > div > input::placeholder): (.go-to-line-dialog > div > input::-webkit-input-placeholder): Deleted. * UserInterface/Views/OpenResourceDialog.css: (.open-resource-dialog > .field > input::placeholder): (.open-resource-dialog > .field > input::-webkit-input-placeholder): Deleted. * UserInterface/Views/SearchBar.css: (.search-bar > input[type="search"]::placeholder): (.search-bar > input[type="search"]::-webkit-input-placeholder): Deleted. * UserInterface/Views/VisualStyleCommaSeparatedKeywordEditor.css: 2016-06-14 Nikita Vasilyev Web Inspector: Introduce --navigation-bar-height CSS variable https://bugs.webkit.org/show_bug.cgi?id=158752 Reviewed by Timothy Hatcher. Abstract a commonly repeated height value (29px) into a variable. * UserInterface/Views/CSSStyleDetailsSidebarPanel.css: (.sidebar > .panel.details.css-style > .content.has-filter-bar): * UserInterface/Views/DebuggerSidebarPanel.css: (.sidebar > .panel.navigation.debugger > :matches(.content, .empty-content-placeholder)): * UserInterface/Views/FilterBar.css: (.filter-bar): * UserInterface/Views/NavigationBar.css: (.navigation-bar): * UserInterface/Views/NavigationSidebarPanel.css: (.sidebar > .panel.navigation > .content): (.sidebar > .panel.navigation > .overflow-shadow.top): * UserInterface/Views/NetworkSidebarPanel.css: (.sidebar > .panel.navigation.network > .title-bar): * UserInterface/Views/ResourceSidebarPanel.css: (.sidebar > .panel.navigation.resource > :matches(.content, .empty-content-placeholder)): * UserInterface/Views/SearchSidebarPanel.css: (.sidebar > .panel.navigation.search > :matches(.content, .empty-content-placeholder)): (.sidebar > .panel.navigation.search > .search-bar): * UserInterface/Views/Sidebar.css: (.sidebar.has-navigation-bar > .panel): * UserInterface/Views/StorageSidebarPanel.css: (.sidebar > .panel.navigation.storage > :matches(.content, .empty-content-placeholder)): * UserInterface/Views/TimelineRecordingContentView.css: (.content-view.timeline-recording > .content-browser .recording-progress): * UserInterface/Views/Variables.css: (:root): 2016-06-14 Saam Barati Follow up to: Web Inspector: Call Trees view should have a 'Top Functions'-like mode https://bugs.webkit.org/show_bug.cgi?id=158555 Unreviewed follow up patch. - Move a long if-else sequence to a switch statement. - Fix a copy-paste typo in a Symbol(.) enum. * UserInterface/Models/CallingContextTree.js: (WebInspector.CallingContextTree.prototype.updateTreeWithStackTrace): 2016-06-13 Joseph Pecoraro Web Inspector: Show Exception Stack in UncaughtExceptionReporter view https://bugs.webkit.org/show_bug.cgi?id=158657 Reviewed by Darin Adler. * UserInterface/Debug/UncaughtExceptionReporter.css: (.uncaught-exception-sheet li): Make newlines significant. * UserInterface/Debug/UncaughtExceptionReporter.js: (unblockEventHandlers): (handleError): (handleLinkClick): (formattedEntry): Format the exception and a possible stack with a bit of sanitizing. 2016-06-13 Matt Baker Web Inspector: Filter Records not applying to new records https://bugs.webkit.org/show_bug.cgi?id=158213 Reviewed by Timothy Hatcher. This patch makes the following improvements to timeline grid filtering: - Records are filtered as they are added to the grid. - Timeline view no longer triggers a filter refresh while the current time changes while recording. - Filters are refreshed whenever the current timeline view changes. * UserInterface/Views/DataGrid.js: (WebInspector.DataGrid.prototype.hasFilters): Helper function to check for custom and text filters. (WebInspector.DataGrid.prototype._applyFiltersToNodeAndDispatchEvent): Encapsulate node state change and event dispatch, which was previously done in multiple places. (WebInspector.DataGrid.prototype.insertChild): Filter incoming node if needed. (WebInspector.DataGrid.prototype._updateFilter.createIteratorForNodesToBeFiltered): (WebInspector.DataGrid.prototype._updateFilter): (WebInspector.DataGrid.prototype.yieldableTaskWillProcessItem): Use new convenience functions. (WebInspector.DataGrid.prototype.hasCustomFilters): Deleted. Renamed `hasFilters`. * UserInterface/Views/TimelineRecordingContentView.js: (WebInspector.TimelineRecordingContentView.prototype._currentContentViewDidChange): Refresh grid filters on view change. * UserInterface/Views/TimelineView.js: (WebInspector.TimelineView.prototype.set startTime): (WebInspector.TimelineView.prototype.set endTime): Schedule filter change notification when selection bounds changes. (WebInspector.TimelineView.prototype._timesDidChange): (WebInspector.TimelineView.prototype._scheduleFilterDidChange): (WebInspector.TimelineView): 2016-06-13 Saam Barati Web Inspector: Call Trees view should have a 'Top Functions'-like mode https://bugs.webkit.org/show_bug.cgi?id=158555 Reviewed by Timothy Hatcher. This patch adds a Top Functions view that is similar to Instruments' Top Functions view. I really wanted to add this view because I've been doing a lot of performance debugging and I've exclusively used the Top Functions view and I want the Inspector to also have this view. I like to think of it as a more sophisticated version of the bottom-up view. Top Functions works by treating every frame as a root in the tree. Top functions view then presents a list of "roots". This is the same as all other views, which also present a list of roots, but in this case, every frame is a root. Bottom Up is great for nailing in specific performance problems in exactly one frame. But Bottom Up doesn't give you good context about where a specific frame is in the call tree and how frames are related by having a caller or some path of shared callers. For example, consider this call tree: (program) / \ / \ (many nodes...) / / (parent) / \ / \ (leaf1) (leaf2) Suppose that 'leaf1' is super hot, and 'leaf2' is moderately hot. If we look at this through Bottom Up view, we will see 'leaf1' is super hot, but it will take more scrolling to see that 'leaf2' is moderately hot. Lets say that 'parent' is also moderately hot, but that the majority of its time isn't self time. With Bottom Up view, there is no good way to see that 'leaf1' and 'leaf2' are both nodes under 'parent'. With Top Down, you can find this information, but it requires a ton of drilling down into the tree (i.e, you must expand past the 'many nodes...' I drew above). It's inconvenient to use Top Down here for indentation alone. Bottom up will tell you that 'leaf1' is super hot, and that 'leaf2' and 'parent' are moderately hot, but it doesn't show how they're related in the original tree. It's important to see that 'parent's total time is very high because it itself is moderately hot, and it has a child node that is super hot, and another child that's moderately 'hot'. For the sake of this example, let's pretend that 85% of the program's time is spent inside 'parent'. Seeing this information through 'Top Functions' is easy because this information filters to the top of the list. Specifically, when using 'Top Functions' sorted by Total Time. Because every node is a root, there will be a top-level entry for every frame in the program. Specifically, there will be a top-level node for 'parent' in my above example. Because I've sorted this view by Total Time, I will see '(program)' first. That's because 100% of execution time is under the '(program)' frame. Then, I might see a few other nodes that also run the entire time because '(program)' calls them, and they eventually call into other things that never leave the stack. These will also have time ranges near 100%. But, only a few nodes after that, I'll see 'parent' in the list because it accounts for 85% of execution time. Immediately, I will see that it has some self time, and that it has two child nodes that have self time. This is really helpful. Let's consider another example where it's not easy in Top Down to get the full picture of 'parent': (program) / | \ (... many nodes...) / \ (many nodes...) (many nodes...) / \ parent parent | | leaf1 leaf2 If we viewed this program in Top Down, we don't get a full picture of 'parent' because it has its time distributed in two different subsections of the tree. Specifically, lets say it has 70% of time in the leaf1 path, and 30% of the time in the leaf2 path. We want a way to see these things together. It's impossible to do this in Top Down or Bottom Up. But, in Top Functions view, we get the view that we want to see because we treat 'parent' as a root of the tree. Because we do this, we will create the following sub tree in the Top Functions view: parent / \ leaf1 leaf2 This happens naturally because when 'parent' is a root, we add all its children to its subtree. Constructing this tree is really easy. What we do is take any arbitrary stack trace of length n, and treat is as n separate stack traces. Specifically, we perform the following operation for any stack trace S. S = [A, B, C, D] (A is the entry frame, and D is the top of the stack). We will transform this into a list of stack traces S' like so: S' = [[A, B, C, D], [B, C, D], [C, D], [D]] If we then run the normal top down tree algorithm on this set of stack traces, all nodes get treated as roots, and voila, we get the Top Functions view. * Localizations/en.lproj/localizedStrings.js: * UserInterface/Controllers/TimelineManager.js: * UserInterface/Main.html: * UserInterface/Models/CallingContextTree.js: * UserInterface/Models/TimelineRecording.js: * UserInterface/Views/ScriptProfileTimelineView.js: * UserInterface/Views/TextToggleButtonNavigationItem.css: Added. * UserInterface/Views/TextToggleButtonNavigationItem.js: Added. 2016-06-13 Matt Baker Web Inspector: Add ability to show/hide DataGird columns https://bugs.webkit.org/show_bug.cgi?id=158676 Reviewed by Timothy Hatcher. Make it possible to show/hide grid columns using the grid header context menu. This patch enables the new behavior for most of the timeline grids. * UserInterface/Views/DataGrid.js: (WebInspector.DataGrid): (WebInspector.DataGrid.prototype.get identifier): (WebInspector.DataGrid.prototype.set identifier): An identifier for the grid instance, for managing per-grid settings. Setting the id causes settings to be created, and their values to be applied to the grid. (WebInspector.DataGrid.prototype.get columnChooserEnabled): (WebInspector.DataGrid.prototype.set columnChooserEnabled): Enable showing/hiding columns via the grid header. (WebInspector.DataGrid.prototype.insertColumn): (WebInspector.DataGrid.prototype.showColumn): Set column visibility and hidden column setting, then perform layout. (WebInspector.DataGrid.prototype._collapseColumnGroupWithCell): (WebInspector.DataGrid.prototype._contextMenuInHeader): Create column chooser menu items if necessary. (WebInspector.DataGrid.prototype._showColumn): Deleted. (WebInspector.DataGrid.prototype._hideColumn): Deleted. Replaced by `showColumn`. * UserInterface/Views/LayoutTimelineView.js: (WebInspector.LayoutTimelineView): Always show "type" and "name" columns. * UserInterface/Views/NetworkTimelineView.js: (WebInspector.NetworkTimelineView): * UserInterface/Views/RenderingFrameTimelineView.js: (WebInspector.RenderingFrameTimelineView): * UserInterface/Views/ScriptDetailsTimelineView.js: (WebInspector.ScriptDetailsTimelineView): Always show "name" column. * UserInterface/Views/TimelineDataGrid.js: (WebInspector.TimelineDataGrid): Enable column chooser. 2016-06-10 Joseph Pecoraro Web Inspector: