Closed
Bug 1882523
Opened 11 months ago
Closed 8 months ago
When adding a new item, pressing Escape when the autocompletion dropdown is displayed should only dismiss the autocompletion, instead of removing the line completely
Categories
(DevTools :: Inspector: Rules, defect, P3)
DevTools
Inspector: Rules
Tracking
(firefox128 verified, firefox129 verified)
VERIFIED
FIXED
128 Branch
People
(Reporter: julienw, Assigned: nchevobbe)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
STR:
- Open any page.
- Inspect any element.
- In the rules view, click on some existing CSS class or add a new property in the
element { }
part. - Start typing a property.
- When the autocompletion dropdown appears, press Escape.
=> The line is removed completely (KO)
Expected: the line is not removed, only the autocompletion dropdown should be dismissed.
Another "Escape" press should remove the line afterwards.
The same happens for values.
This is the behavior in Chrome, and I find it more intuitive than what happens in Firefox.
(even as somebody who never uses chrome -- so imagine somebody who's used to Chrome Devtools)
Assignee | ||
Comment 1•11 months ago
|
||
We agree that we should align with Chrome's behaviour, which is what we do too in the console too
Severity: -- → S3
Priority: -- → P3
Assignee | ||
Comment 2•8 months ago
|
||
Updated•8 months ago
|
Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/714e02409e7f
[devtools] Close inplace editor autocomplete on Escape. r=devtools-reviewers,ochameau.
Comment 4•8 months ago
|
||
Backed out for causing dt failures on browser_rules_completion-on-empty.js.
[task 2024-06-04T09:04:59.178Z] 09:04:59 INFO - TEST-PASS | devtools/client/inspector/rules/test/browser_rules_completion-on-empty.js | The popup visibility is correct -
[task 2024-06-04T09:04:59.179Z] 09:04:59 INFO - Close the suggest completion popup
[task 2024-06-04T09:04:59.185Z] 09:04:59 INFO - Waiting for event: 'popup-closed' on [object Object].
[task 2024-06-04T09:04:59.185Z] 09:04:59 INFO - Got event: 'popup-closed' on [object Object].
[task 2024-06-04T09:04:59.186Z] 09:04:59 INFO - Buffered messages finished
[task 2024-06-04T09:04:59.186Z] 09:04:59 INFO - TEST-UNEXPECTED-FAIL | devtools/client/inspector/rules/test/browser_rules_completion-on-empty.js | Test timed out -
[task 2024-06-04T09:04:59.187Z] 09:04:59 INFO - GECKO(1061) | Completed ShutdownLeaks collections in process 1061
[task 2024-06-04T09:04:59.188Z] 09:04:59 INFO - TEST-START | Shutdown
[task 2024-06-04T09:04:59.188Z] 09:04:59 INFO - Browser Chrome Test Summary
[task 2024-06-04T09:04:59.189Z] 09:04:59 INFO - Passed: 1308
[task 2024-06-04T09:04:59.189Z] 09:04:59 INFO - Failed: 1
[task 2024-06-04T09:04:59.190Z] 09:04:59 INFO - Todo: 0
[task 2024-06-04T09:04:59.190Z] 09:04:59 INFO - Mode: e10s
[task 2024-06-04T09:04:59.194Z] 09:04:59 INFO - *** End BrowserChrome Test Results ***
Flags: needinfo?(nchevobbe)
Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/2110a7be1f45
[devtools] Close inplace editor autocomplete on Escape. r=devtools-reviewers,ochameau.
Comment 7•8 months ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 months ago
status-firefox128:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 128 Branch
Updated•7 months ago
|
Flags: qe-verify+
Comment 8•7 months ago
|
||
Issue is reproducible on a 2024-06-03 Nightly build on Windows 10.
Verified as fixed on Firefox 128.0b4 and Firefox Nightly 129.0a1 on Windows 10, Ubuntu 22, macOS 14.
You need to log in
before you can comment on or make changes to this bug.
Description
•