Skip to content
  • commit-queue@webkit.org's avatar
    Web Inspector: Plumb and expose cookie clearing options throughout the... · 7dfe1335
    commit-queue@webkit.org authored
    Web Inspector: Plumb and expose cookie clearing options throughout the Resources Cookies tree and views
    https://bugs.webkit.org/show_bug.cgi?id=87140
    
    Patch by PhistucK <phistuck@chromium.org> on 2013-03-27
    Reviewed by Vsevolod Vlasov.
    
    Added cookie clearing buttons and context menu options
    throughout the tree and views.
    Drive by -
    - Made sure the delete button is only visible
    when a cookie is selected.
    - Fixed a wrong JSDoc comment.
    
    * inspector/front-end/CookieItemsView.js:
    (WebInspector.CookieItemsView):
    (WebInspector.CookieItemsView.prototype.statusBarItems):
    (WebInspector.CookieItemsView.prototype._updateWithCookies):
    (WebInspector.CookieItemsView.prototype.clear):
    Added. Clears the entire cookie view.
    (WebInspector.CookieItemsView.prototype._clearButtonClicked):
    Added. Ditto (when clicking on the button).
    (WebInspector.CookieItemsView.prototype._showDeleteButton):
    Added. Shows the delete button when selecting a cookie row.
    * inspector/CookiesTable.js:
    (WebInspector.CookiesTable):
    (WebInspector.CookiesTable.prototype._clearAndRefresh):
    Added. Clears the cookies of the current table and updates it.
    (WebInspector.CookiesTable.prototype._handleContextMenuEvent):
    Added. Manages the context menu within the table.
    (WebInspector.CookiesTable.prototype.clear):
    Added. Clears the cookies of the current table.
    (WebInspector.CookiesTable.prototype.setCookies):
     Fixed a wrong JSDoc comment structure.
    * inspector/front-end/ResourcesPanel.js:
    (WebInspector.ResourcesPanel.prototype.clearCookies):
    Added. Clears the cookies of the given domain view.
    (WebInspector.CookieTreeElement.prototype.onattach):
    Added. Adds a contextmenu handler.
    (WebInspector.CookieTreeElement.prototype._handleContextMenuEvent):
    Added. Manages the context menu within cookie tree.
    (WebInspector.CookieTreeElement.prototype._clearCookies):
    Added. Clears the cookies of the view of the tree item.
    * inspector/front-end/treeoutline.js:
    (TreeOutline): Fixed a wrong JSDoc comment.
    
    * English.lproj/localizedStrings.js:
    Added strings for the context menu options.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147031 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    7dfe1335