Closed
Bug 1304701
Opened 8 years ago
Closed 8 years ago
Vertical layout is not initialized correctly in newly opened devtools
Categories
(DevTools :: Inspector, defect, P1)
DevTools
Inspector
Tracking
(firefox49 unaffected, firefox50 unaffected, firefox51 unaffected, firefox52 verified)
Tracking | Status | |
---|---|---|
firefox49 | --- | unaffected |
firefox50 | --- | unaffected |
firefox51 | --- | unaffected |
firefox52 | --- | verified |
People
(Reporter: jdescottes, Assigned: jdescottes)
References
Details
(Keywords: regression, Whiteboard: [devtools-html])
Attachments
(2 files, 1 obsolete file)
Regressions from Bug 1260552
STRs:
- open inspector
- resize the window so that inspector switches to vertical layout
- close devtools
- open devtools
ER: Inspector should use vertical layout
AR: Inspector is in horizontal layout, but switches to vertical layout as soon as the window is resized.
Comment 1•8 years ago
|
||
Thanks for the report!
Honza
Assignee | ||
Comment 2•8 years ago
|
||
Comment on attachment 8793762 [details] [diff] [review]
bug1304701.patch
Review of attachment 8793762 [details] [diff] [review]:
-----------------------------------------------------------------
So I was working on a patch already and probably should have said so :)
I added a test here as well.
Instead of doing an additional setState, I prefer to initialize the splitter with all the correct props from the beginning.
Attachment #8793762 -
Flags: review?(jdescottes)
Comment hidden (mozreview-request) |
Updated•8 years ago
|
Blocks: devtools-html-phase2
Iteration: --- → 52.1 - Oct 3
Flags: qe-verify?
Priority: -- → P1
Whiteboard: [devtools-html] [triage] → [devtools-html]
Comment hidden (mozreview-request) |
Updated•8 years ago
|
status-firefox51:
--- → unaffected
Keywords: regression
Updated•8 years ago
|
Assignee: odvarko → jdescottes
Comment hidden (mozreview-request) |
Comment 6•8 years ago
|
||
mozreview-review |
Comment on attachment 8793767 [details]
Bug 1304701 - initialize splitter in horizontal mode if inspector starts in portrait mode;
https://reviewboard.mozilla.org/r/80432/#review79120
Nice, R+ and one question.
Honza
::: devtools/client/inspector/test/browser_inspector_portrait_mode.js:20
(Diff revision 3)
> + let originalWidth = hostWindow.outerWidth;
> + let originalHeight = hostWindow.outerHeight;
> +
> + info("Resize toolbox window to force inspector to landscape mode");
> + hostWindow.resizeTo(800, 500);
> +
How come you don't have to wait for class mutation in this case?
Attachment #8793767 -
Flags: review?(odvarko) → review+
Assignee | ||
Comment 7•8 years ago
|
||
(In reply to Jan Honza Odvarko [:Honza] from comment #6)
> Comment on attachment 8793767 [details]
> Bug 1304701 - initialize splitter in horizontal mode if inspector starts in
> portrait mode;
>
> https://reviewboard.mozilla.org/r/80432/#review79120
>
> Nice, R+ and one question.
>
> Honza
>
> ::: devtools/client/inspector/test/browser_inspector_portrait_mode.js:20
> (Diff revision 3)
> > + let originalWidth = hostWindow.outerWidth;
> > + let originalHeight = hostWindow.outerHeight;
> > +
> > + info("Resize toolbox window to force inspector to landscape mode");
> > + hostWindow.resizeTo(800, 500);
> > +
>
> How come you don't have to wait for class mutation in this case?
That's a good point. I don't need wait for a mutation because the inspector is already in landscape mode.
To be bullet-proof I should check the current layout, and resize only if the inspector in not in landscape mode. I'll update the test to do that.
Assignee | ||
Comment 8•8 years ago
|
||
Updated•8 years ago
|
status-firefox49:
--- → unaffected
status-firefox50:
--- → unaffected
Comment hidden (mozreview-request) |
Assignee | ||
Comment 10•8 years ago
|
||
Updated try as per comment #7. Try : https://treeherder.mozilla.org/#/jobs?repo=try&revision=a8d8825c302f
Assignee | ||
Updated•8 years ago
|
Attachment #8793762 -
Attachment is obsolete: true
Comment 11•8 years ago
|
||
Pushed by jdescottes@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/771ccd7f6025
initialize splitter in horizontal mode if inspector starts in portrait mode;r=Honza
Updated•8 years ago
|
Flags: qe-verify? → qe-verify+
QA Contact: cristian.comorasu
Comment 12•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 52
Comment 13•8 years ago
|
||
I reproduced this bug using Fx 52.0a1, build ID:20160922030437, on Windows 10 x64 and Mac OS X 10.10.5.
I can confirm this issue is fixed, I verified using Fx 52.0a1 build ID:20160927030200, on Windows 10 x64, Ubuntu 14.04 LTS and Mac OS X 10.12.
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•