Web Inspector: Frontend Error when selecting Database folder in Resources Sidebar

https://bugs.webkit.org/show_bug.cgi?id=126029

Patch by Joseph Pecoraro <pecoraro@apple.com> on 2013-12-19
Reviewed by Timothy Hatcher.

Treat the DatabaseHostTreeElement tree element like a folder. It pretty much
is a folder, but inherits from StorageTreeElement to share some code there.

* UserInterface/ResourceSidebarPanel.js:
(WebInspector.ResourceSidebarPanel.prototype._treeElementSelected):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160897 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 1ad5dd6c
2013-12-19 Joseph Pecoraro <pecoraro@apple.com>
Web Inspector: Frontend Error when selecting Database folder in Resources Sidebar
https://bugs.webkit.org/show_bug.cgi?id=126029
Reviewed by Timothy Hatcher.
Treat the DatabaseHostTreeElement tree element like a folder. It pretty much
is a folder, but inherits from StorageTreeElement to share some code there.
* UserInterface/ResourceSidebarPanel.js:
(WebInspector.ResourceSidebarPanel.prototype._treeElementSelected):
2013-12-19 Joseph Pecoraro <pecoraro@apple.com>
Web Inspector: Uncaught Exception: NavigationSidebarPanel.js: TypeError: undefined is not a function
......
......@@ -622,7 +622,7 @@ WebInspector.ResourceSidebarPanel.prototype = {
_treeElementSelected: function(treeElement, selectedByUser)
{
if (treeElement instanceof WebInspector.FolderTreeElement)
if (treeElement instanceof WebInspector.FolderTreeElement || treeElement instanceof WebInspector.DatabaseHostTreeElement)
return;
if (treeElement instanceof WebInspector.ResourceTreeElement || treeElement instanceof WebInspector.ScriptTreeElement ||
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment