Closed Bug 1283730 Opened 8 years ago Closed 8 years ago

Don't disable "Expand All" context menu, if current node has a child node collapsed

Categories

(DevTools :: Inspector, defect, P1)

defect

Tracking

(firefox49 unaffected, firefox50 verified)

VERIFIED FIXED
Firefox 50
Iteration:
50.3 - Jul 18
Tracking Status
firefox49 --- unaffected
firefox50 --- verified

People

(Reporter: magicp.jp, Assigned: moby)

References

Details

(Whiteboard: [devtools-html])

Attachments

(2 files, 1 obsolete file)

User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0
Build ID: 20160630030207

Steps to reproduce:

1. Start Nightly
2. Go to any sites (e.g.  about:home)
3. Open DevTools > Inspector
4. Select any nodes (e.g. <body>) and right clicking
5. Confirm "Expand All" is enabled or disabled


Actual results:

"Expand All" context menu is disabled, even if current node has a child node collapsed.

Regression range:
https://hg.mozilla.org/integration/fx-team/pushloghtml?fromchange=9545df18ca9eaa35915df14e23543c02363ff83e&tochange=618a8336136754762b1002f9838fa574ffc60937


Expected results:

"Expand All" context menu should be enabled.
Blocks: 1266478
Has Regression Range: --- → yes
Has STR: --- → yes
Component: Untriaged → Developer Tools: Inspector
OS: Unspecified → All
Hardware: Unspecified → All
Whiteboard: [devtools-html] [triage]
Flags: qe-verify+
Priority: -- → P1
QA Contact: alexandra.lucinet
Whiteboard: [devtools-html] [triage] → [devtools-html]
Assignee: nobody → mvonbriesen
Attached patch inspector-menu-fix.patch (obsolete) — Splinter Review
Attachment #8769342 - Flags: review?(bgrinstead)
Comment on attachment 8769342 [details] [diff] [review]
inspector-menu-fix.patch

Review of attachment 8769342 [details] [diff] [review]:
-----------------------------------------------------------------

Good catch, please also update this test: https://dxr.mozilla.org/mozilla-central/source/devtools/client/inspector/test/browser_inspector_expand-collapse.js#31
Attachment #8769342 - Flags: review?(bgrinstead)
add test case
Attachment #8769342 - Attachment is obsolete: true
Attachment #8769353 - Flags: review?(bgrinstead)
Comment on attachment 8769353 [details] [diff] [review]
inspector-menu-fix.patch

Review of attachment 8769353 [details] [diff] [review]:
-----------------------------------------------------------------

r=me with a green try push
Attachment #8769353 - Flags: review?(bgrinstead) → review+
Status: NEW → ASSIGNED
Iteration: --- → 50.3 - Jul 18
Keywords: checkin-needed
Pushed by cbook@mozilla.com:
https://hg.mozilla.org/integration/fx-team/rev/1c50c021b152
Do not disable 'expand all' option in inspector context menu if a node is selected; r=bgrins
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/1c50c021b152
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 50
Reproduced with 50.0a1 from 2016-07-06 under Windows 10 64-bit.
Verified fixed with latest Nightly 50.0a1 (from 2016-07-13), across platforms [1]. 

Although, why isn't 'Expand all' context menu option disabled when all the nodes are already expanded? For instance, 'Collapse' is disable when no nodes are expanded. 

[1] Ubuntu 16.04 64-bit, Windows 10 64-bit and Mac OS X 10.11.1
Status: RESOLVED → VERIFIED
QA Whiteboard: [qe-dthtml]
Flags: qe-verify+ → needinfo?(mvonbriesen)
This patch was just to preserve the pre-regression behavior. The expand all behavior could still be improved, like you said. Could you please file a new bug for that?
Flags: needinfo?(mvonbriesen)
(In reply to Maximillian von Briesen [:moby] from comment #9)
>Could you please file a new bug for that?
Sure thing! Logged bug 1286812.
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: