Closed Bug 1593552 Opened 6 years ago Closed 6 years ago

Storage inspector fails to remove cookies after opening context menu

Categories

(DevTools :: Storage Inspector, defect, P2)

defect

Tracking

(firefox72 fixed)

RESOLVED FIXED
Firefox 72
Tracking Status
firefox72 --- fixed

People

(Reporter: Oriol, Assigned: Oriol)

References

Details

Attachments

(1 file)

  1. Load https://www.google.com
  2. Open storage inspector, you should see some cookies
  3. RIght-click the 1st one
  4. Close the context menu
  5. Select the 2nd cookie
  6. Press delete key

Expected: the 2nd cookie is removed
Actual: the 1st cookie is removed

  1. Select some cookie
  2. Press delete key

Expected: the selected cookie is removed
Actual: no cookie is removed. TypeError: data is undefined at https://searchfox.org/mozilla-central/rev/35873cfc312a6285f54aa5e4ec2d4ab911157522/devtools/client/storage/ui.js#1495

Reason: when the context menu opens, it sets contextMenuRowId. This is never cleared. When pressing delete, if contextMenuRowId is set, it tries to remove that entry instead of the selected one. This is wrong, contextMenuRowId should only be used when removing via the context menu, otherwise it should remove the selected one.

The priority flag is not set for this bug.
:miker, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(mratcliffe)
Has Regression Range: --- → irrelevant
Has STR: --- → yes
Flags: needinfo?(mratcliffe)
OS: Unspecified → All
Priority: -- → P2
Hardware: Unspecified → All
Blocks: 1522893
Assignee: nobody → oriol-bugzilla
Status: NEW → ASSIGNED

@Oriol Would you like me to land this for you or do you have permission to land things yourself?

Flags: needinfo?(oriol-bugzilla)

I only have commit access level 1 so I used to add checkin-needed, but now it seems it's just for Thunderbird?
So please land it for me.

Flags: needinfo?(oriol-bugzilla)
Pushed by mratcliffe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ebfe42cdd589 Fix delete key not being able to remove cookies in Storage Inspector after opening context menu. r=miker
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 72
QA Whiteboard: [qa-72b-p2]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: