Changeset 225280 in webkit
- Timestamp:
- Nov 29, 2017 11:07:11 AM (6 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r225261 r225280 1 2017-11-29 Joseph Pecoraro <pecoraro@apple.com> 2 3 Web Inspector: Console Tab navigation bar sometimes does not include filter bar, clear console sometimes does not work 4 https://bugs.webkit.org/show_bug.cgi?id=180124 5 <rdar://problem/35740353> 6 7 Reviewed by Brian Burg. 8 9 * UserInterface/Views/LogContentView.js: 10 (WI.LogContentView.prototype.closed): 11 Avoid removing event listeners if this LogContentView singleton is ever closed. 12 The singleton will always be alive so we don't want to remove the event listeners 13 without a way to add them back. 14 15 * UserInterface/Base/Main.js: 16 (WI.showSplitConsole): 17 * UserInterface/Views/ConsoleTabContentView.js: 18 (WI.ConsoleTabContentView.prototype.shown): 19 When showing the ConsoleTab immediately collapse the split console so that any 20 following code that checks WI.isShowingSplitConsole will get the expected value. 21 It is also now possible to share a ContentView across ContentBrowsers via 22 tombstones, so remove the old code that would frequently close the LogContentView. 23 1 24 2017-11-28 Devin Rousso <webkit@devinrousso.com> 2 25 -
trunk/Source/WebInspectorUI/UserInterface/Base/Main.js
r225244 r225280 887 887 return; 888 888 889 // Be sure to close the view in the tab content browser before showing it in the890 // split content browser. We can only show a content view in one browser at a time.891 if (this.consoleContentView.parentContainer)892 this.consoleContentView.parentContainer.closeContentView(this.consoleContentView);893 889 this.consoleDrawer.showContentView(this.consoleContentView); 894 890 }; -
trunk/Source/WebInspectorUI/UserInterface/Views/ConsoleTabContentView.js
r220119 r225280 53 53 super.shown(); 54 54 55 WI.consoleContentView.prompt.focus(); 56 57 if (this.contentBrowser.currentContentView === WI.consoleContentView) 58 return; 59 60 // Be sure to close the view in the split content browser before showing it in the 61 // tab content browser. We can only show a content view in one browser at a time. 62 if (WI.consoleContentView.parentContainer) 63 WI.consoleContentView.parentContainer.closeContentView(WI.consoleContentView); 55 WI.hideSplitConsole(); 64 56 65 57 this.contentBrowser.showContentView(WI.consoleContentView); 58 WI.consoleContentView.dispatchEventToListeners(WI.ContentView.Event.NavigationItemsDidChange); 59 60 WI.consoleContentView.prompt.focus(); 66 61 67 62 console.assert(this.contentBrowser.currentContentView === WI.consoleContentView); -
trunk/Source/WebInspectorUI/UserInterface/Views/LogContentView.js
r225257 r225280 171 171 closed() 172 172 { 173 WI.logManager.removeEventListener(null, null, this); 174 WI.Frame.removeEventListener(null, null, this); 173 // While it may be possible to get here, this is a singleton ContentView instance 174 // that is often re-inserted back into different ContentBrowsers, so we shouldn't 175 // remove the event listeners. The singleton will never go away anyways. 176 console.assert(this === WI.consoleContentView); 175 177 176 178 super.closed();
Note: See TracChangeset
for help on using the changeset viewer.