Can't expand object in Sets with 10 entries or less
Categories
(DevTools :: Console, defect, P1)
Tracking
(firefox-esr68 unaffected, firefox74 wontfix, firefox75 verified, firefox76 verified)
Tracking | Status | |
---|---|---|
firefox-esr68 | --- | unaffected |
firefox74 | --- | wontfix |
firefox75 | --- | verified |
firefox76 | --- | verified |
People
(Reporter: nchevobbe, Assigned: nchevobbe)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file, 1 obsolete file)
47 bytes,
text/x-phabricator-request
|
jcristau
:
approval-mozilla-beta+
|
Details | Review |
Steps to reproduce
- Open the console
- Evaluate
new Set(Array.from({length: 10}, (_, i) => ({item: i})))
- Expand the set, the
<entries>
node and the0
entry
Expected results
The 0
entry is expanded and I can see item: 0
Actual results
The 0
entry isn't expanded
Note that this doesn't impact Sets with more than 10 entries (e.g. new Set(Array.from({length: 11}, (_, i) => ({item: i})))
is fine)
This does not impact Map
.
This is probably because before fetching new properties we check if we already have them in the preview (https://searchfox.org/mozilla-central/rev/5a52cec97c41ae1eda9412dfe6f4099a9af4c7dd/devtools/client/debugger/packages/devtools-reps/src/object-inspector/utils/load-properties.js#182), and that probably triggers some issue
Assignee | ||
Comment 1•4 years ago
|
||
There was an issue for test with less than 10 entries
as we were assuming we already had everything we needed
in the grip preview. This wasn't the case and was making
loading entries object failing.
Since there's not reason we should find actors in the
preview object, and we should have a unified way of
loading objects, whatever their sizes is, this patch remove
this specific behaviour to always load entries.
Jest tests had to be modified or removed, and the mochitest
that is already testing expanding Maps and Sets is enhanced
to make sure this issue is fixed.
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/dae213f4d583 Fix expanding object in Sets of 10 entries or less. r=jlast.
Comment 3•4 years ago
|
||
bugherder |
Assignee | ||
Comment 4•4 years ago
|
||
Comment on attachment 9131829 [details]
Bug 1620782 - Fix expanding object in Sets of 10 entries or less. r=jlast.
Beta/Release Uplift Approval Request
- User impact if declined: users won't be able to expands objects in Sets with less than 10 entries in them.
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: No
- Needs manual test from QE?: Yes
- If yes, steps to reproduce: 1. Open the console
- Evaluate
new Set(Array.from({length: 10}, (_, i) => ({item: i})))
- Expand the set, the
<entries>
node and the0
entry
-> The 0
entry is expanded and I can see item: 0
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): devtools only, remove a specific use case to use the more general one, automated test added.
- String changes made/needed:
Assignee | ||
Updated•4 years ago
|
Comment 5•4 years ago
|
||
When the saveAs option is true, instead of always starting in the default
download directory, remember and reuse the last directory that the user
chose. The content preferences service is used to store the path on a
per-extension basis.
Updated•4 years ago
|
Comment 6•4 years ago
|
||
Is this a new issue, or has it been around for a long time?
Comment 7•4 years ago
|
||
Comment on attachment 9133697 [details]
Bug 1620782 - downloads.download() should remember the last directory used. r=robwu
Revision D67060 was moved to bug 1395207. Setting attachment 9133697 [details] to obsolete.
Assignee | ||
Comment 8•4 years ago
|
||
(In reply to Julien Cristau [:jcristau] from comment #6)
Is this a new issue, or has it been around for a long time?
This was a regression from Bug 1579090
Updated•4 years ago
|
Updated•4 years ago
|
Comment 9•4 years ago
|
||
I have reproduced this issue in Nightly v76.0a1 from 2020-03-14 and verified the fix in Nightly v76.0a1 from 2020-03-17 on Windows 10 and Ubuntu 18.
Comment 10•4 years ago
|
||
Comment on attachment 9131829 [details]
Bug 1620782 - Fix expanding object in Sets of 10 entries or less. r=jlast.
approved for 75.0b6
Updated•4 years ago
|
Comment 11•4 years ago
|
||
bugherder uplift |
Comment 12•4 years ago
|
||
I have also verified this fix in Beta v75.0b6 on Ubuntu 18 and Windows 10.
Description
•