Open Bug 1613356 Opened 4 months ago Updated 4 months ago

Can't explore data for storage empty with empty key


(DevTools :: Storage Inspector, task, P3)



(Not tracked)


(Reporter: nchevobbe, Unassigned)


Steps to reproduce

  1. Open the console
  2. Evaluate localStorage.setItem("", "{a: 20}");localStorage.setItem("key", "{a: 20}");
  3. Open the storage inspector and select the local storage entry
  4. Click on the line with the empty string key

Expected results

The sidebar with the parse value is displayed

Actual results

Clicking does not do anything

You can see the expected behavior by clicking on the "key" item

Quickly looking at this, it looks like the issue is coming from the ui's updateObjectSidebar method. Using the debugger I observed that this.table.selectedRow is undefined, which causes updateObjectSide to return early and not display the sidebar.

Digging further it looks like the TableWidget's selectedRow setter is expecting the selected row ID to be an object, but it's an empty string here. So the selectedRow is set to null.

I'm not familar with how TableWidget works. But perhaps finding where and how the Storage panel's table items are being set and consumed by the TableWidget might be the place to start.

You need to log in before you can comment on or make changes to this bug.