Closed
Bug 1687915
Opened 5 years ago
Closed 5 years ago
Display a warning message when the --selector argument passed to :screenshot does not match any node
Categories
(DevTools :: Console, defect, P3)
DevTools
Console
Tracking
(firefox87 fixed)
RESOLVED
FIXED
87 Branch
Tracking | Status | |
---|---|---|
firefox87 | --- | fixed |
People
(Reporter: nchevobbe, Assigned: nchevobbe)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
Steps to reproduce
- Open the console on this page
- Evaluate
:screenshot --selector #this-element-does-not-exist
Expected results
A warning message is displayed to tell me there's no matching element the selector
Actual results
Nothing is displayed at all, which can be confusing for the user
Updated•5 years ago
|
Severity: -- → S3
Priority: -- → P3
Assignee | ||
Updated•5 years ago
|
Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•5 years ago
|
||
When the selector doesn't return any node, we log a warning on the page.
A test case is added in browser_jsterm_screenshot_command_selector.js to ensure
this works as expected.
Depends on D102597
Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/56767936e906
[devtools] Display a warning message when the --selector argument passed to :screenshot does not match any node. r=ladybenko.
Comment 3•5 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
status-firefox87:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•