+2018-01-04 Joseph Pecoraro <pecoraro@apple.com>
+
+ Web Inspector: ⌘G / ⇧⌘G text search does not working after closing find banner
+ https://bugs.webkit.org/show_bug.cgi?id=181280
+ <rdar://problem/36291175>
+
+ Reviewed by Matt Baker.
+
+ * UserInterface/Views/ContentBrowser.js:
+ (WI.ContentBrowser.prototype._findBannerDidHide):
+ When the find banner is hidden trigger a new ContentView method,
+ searchHidden instead of the destructive searchCleared. This allows
+ most content views (text editors, DOM tree, Network Headers view)
+ to keep their populated search results.
+
+ * UserInterface/Views/ContentView.js:
+ (WI.ContentView.prototype.searchHidden):
+ * UserInterface/Views/LogContentView.js:
+ (WI.LogContentView.prototype.searchHidden):
+ By default searchHidden does nothing. The Console's LogContentView
+ treats the find banner differently and clears its search results.
+
+ * UserInterface/Views/TextEditor.js:
+ (WI.TextEditor.prototype.searchCleared):
+ Modernize some code while working in this area.
+
+ * UserInterface/Views/Main.css:
+ (.bouncy-highlight):
+ Ensure black text on yellow background in the bouncy highlight. In the
+ DOM Tree it could have been white if the find banner was closed.
+
2018-01-03 Ting-Wei Lan <lantw44@gmail.com>
Replace hard-coded paths in shebangs with #!/usr/bin/env
box-shadow: inset hsl(50, 91%, 76%) 0 -1px 0, hsl(52, 56%, 60%) 0 1px 1px, hsla(0, 0%, 0%, 0.33) 0 1px 2px 1px;
background-color: hsl(54, 93%, 70%);
+ color: black !important;
padding: 2px 4px;
margin-top: -2px;
searchCleared()
{
- function clearResults() {
- for (var i = 0; i < this._searchResults.length; ++i)
- this._searchResults[i].clear();
- }
-
- this._codeMirror.operation(clearResults.bind(this));
+ this._codeMirror.operation(() => {
+ for (let searchResult of this._searchResults)
+ searchResult.clear();
+ });
this._searchQuery = null;
this._searchResults = [];