Storage inspector fails to remove cookies after opening context menu
Categories
(DevTools :: Storage Inspector, defect, P2)
Tracking
(firefox72 fixed)
Tracking | Status | |
---|---|---|
firefox72 | --- | fixed |
People
(Reporter: Oriol, Assigned: Oriol)
References
Details
Attachments
(1 file)
- Load https://www.google.com
- Open storage inspector, you should see some cookies
- RIght-click the 1st one
- Close the context menu
- Select the 2nd cookie
- Press delete key
Expected: the 2nd cookie is removed
Actual: the 1st cookie is removed
- Select some cookie
- 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.
Comment 1•6 years ago
|
||
The priority flag is not set for this bug.
:miker, could you have a look please?
For more information, please visit auto_nag documentation.
Assignee | ||
Comment 2•6 years ago
|
||
@Oriol Would you like me to land this for you or do you have permission to land things yourself?
Assignee | ||
Comment 4•6 years ago
|
||
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.
![]() |
||
Comment 6•6 years ago
|
||
bugherder |
Updated•6 years ago
|
Description
•