RESOLVED FIXED 210837
Web Inspector: Storage: unable to filter cookies
https://bugs.webkit.org/show_bug.cgi?id=210837
Summary Web Inspector: Storage: unable to filter cookies
Devin Rousso
Reported 2020-04-21 18:27:09 PDT
# STEPS TO REPRODUCE: 1. inspect any page with cookies 2. press ⌘F to show a filter bar => nothing happens :(
Attachments
Patch (16.39 KB, patch)
2020-04-21 18:37 PDT, Devin Rousso
no flags
[Image] After Patch is applied (Storage Tab) (516.51 KB, image/png)
2020-04-22 09:15 PDT, Devin Rousso
no flags
[Image] After Patch is applied (Network Tab) (494.46 KB, image/png)
2020-04-22 09:15 PDT, Devin Rousso
no flags
Patch (16.61 KB, patch)
2020-04-22 09:22 PDT, Devin Rousso
no flags
Patch (16.95 KB, patch)
2020-04-22 09:53 PDT, Devin Rousso
no flags
Devin Rousso
Comment 1 2020-04-21 18:37:48 PDT
Joseph Pecoraro
Comment 2 2020-04-21 20:33:59 PDT
Comment on attachment 397156 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=397156&action=review > Source/WebInspectorUI/ChangeLog:44 > + Drive-by: instead of having the "No Filter Results" view only cover the "Name" column, it > + should cover the entire table so as to be as noticable as possible (not to mention > + the table will be empty anyways, so it's not like anything is being hidden). > + Drive-by: ensure that the "No Filter Results" view doesn't cover the statistics. Could you include screenshots?
Devin Rousso
Comment 3 2020-04-22 09:15:31 PDT
Created attachment 397200 [details] [Image] After Patch is applied (Storage Tab)
Devin Rousso
Comment 4 2020-04-22 09:15:55 PDT
Created attachment 397201 [details] [Image] After Patch is applied (Network Tab)
Devin Rousso
Comment 5 2020-04-22 09:22:59 PDT
Created attachment 397203 [details] Patch make the text size of the "No Filter Results" match that of other tabs
Blaze Burg
Comment 6 2020-04-22 09:37:10 PDT
Comment on attachment 397203 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=397203&action=review r=me > Source/WebInspectorUI/UserInterface/Views/CookieStorageContentView.css:-2 > - * Copyright (C) 2013 Apple Inc. All rights reserved. Nit: 2013-2020 ? > Source/WebInspectorUI/UserInterface/Views/CookieStorageContentView.css:26 > +.content-view.cookie-storage > .message-text-view { Nice. I love how all these variables already exist! > Source/WebInspectorUI/UserInterface/Views/CookieStorageContentView.js:439 > + this._cookies = this._getCookiesForHost(payload.cookies.map(WI.Cookie.fromPayload), this.representedObject.host); v nice > Source/WebInspectorUI/UserInterface/Views/CookieStorageContentView.js:472 > + if (this._filteredCookies.length || !filterText) { Nit: I'd put this DOM manipulation into a separate function since everything up until now is maintaining this._filteredCookies. this._updatePlaceholderForSearchResults or something? > Source/WebInspectorUI/UserInterface/Views/NetworkTableContentView.js:-1623 > - this._emptyFilterResultsMessageElement.style.width = width + "px"; Weird.
Devin Rousso
Comment 7 2020-04-22 09:52:46 PDT
Comment on attachment 397203 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=397203&action=review >> Source/WebInspectorUI/UserInterface/Views/CookieStorageContentView.css:-2 >> - * Copyright (C) 2013 Apple Inc. All rights reserved. > > Nit: 2013-2020 ? Heh, sure :) Still not 100% sure of all the "rules" for updating copyrights :P >> Source/WebInspectorUI/UserInterface/Views/CookieStorageContentView.js:472 >> + if (this._filteredCookies.length || !filterText) { > > Nit: I'd put this DOM manipulation into a separate function since everything up until now is maintaining this._filteredCookies. this._updatePlaceholderForSearchResults or something? good idea
Devin Rousso
Comment 8 2020-04-22 09:53:59 PDT
EWS
Comment 9 2020-04-22 11:33:36 PDT
Committed r260523: <https://trac.webkit.org/changeset/260523> All reviewed patches have been landed. Closing bug and clearing flags on attachment 397212 [details].
Radar WebKit Bug Importer
Comment 10 2020-04-22 11:34:17 PDT
Note You need to log in before you can comment on or make changes to this bug.