Closed Bug 1380499 Opened 7 years ago Closed 7 years ago

Horizontal scrollbar appears in console, again

Categories

(DevTools :: Console, defect, P1)

defect

Tracking

(firefox-esr52 unaffected, firefox54 unaffected, firefox55 unaffected, firefox56 verified)

VERIFIED FIXED
Firefox 56
Iteration:
56.3 - Jul 24
Tracking Status
firefox-esr52 --- unaffected
firefox54 --- unaffected
firefox55 --- unaffected
firefox56 --- verified

People

(Reporter: Oriol, Assigned: bgrins)

References

Details

(Keywords: regression, Whiteboard: [console-html])

Attachments

(1 file)

Open web console and fill it vertically e.g. by pressing spacebar and enter multiple times.

When the content overflows vertically and a vertical scrollbar appears, an unexpected horizontal scrollbar appears too.

This is basically like bug 1248301, but this time resizing the browser does not remove the scrollbar. A test is needed so that it won't happen a third time.
Whiteboard: [console-html] [triage]
Flags: qe-verify+
Priority: -- → P2
QA Contact: iulia.cristescu
Whiteboard: [console-html] [triage] → [console-html]
Looks like this is due to:

.webconsole-output-wrapper .message {
    width: 100vw;
}
(In reply to Brian Grinstead [:bgrins] from comment #1)
> Looks like this is due to:
> 
> .webconsole-output-wrapper .message {
>     width: 100vw;
> }

Can we remove this property?  I can't remember which issue it was working around but OI seems to generally work without it
Flags: needinfo?(nchevobbe)
Note: On OSX you need to pass the "Show scrollbars" parameters to "always" in System Preferences to see the bug

> Can we remove this property?  I can't remember which issue it was working around but OI seems to generally work without it
I think we can, I tested various things and it seems okay without it. I guess it's a left-over from some styling I made when integrating the OI.
Flags: needinfo?(nchevobbe)
I'll take this, but have to wait on Bug 1326937, which moves the CSS back into webconsole.css
Assignee: nobody → bgrinstead
Status: NEW → ASSIGNED
Iteration: --- → 56.3 - Jul 24
Priority: P2 → P1
Attaching via splinter because the dependencies are still on autoland. This has the CSS fix we discussed, and I've expanded the webconsole_init test to assert for the number of messages and added a regression check for the overflow. Didn't think this required a separate test file, but let me know if you think it does.
Attachment #8888842 - Flags: review?(nchevobbe)
Comment on attachment 8888842 [details] [diff] [review]
console-css.patch

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

This looks simple and nice to me.
The test is passing with honza's patches applied, and it fails if I add back the rule you removed, so I guess we're covered.
r+ !
Attachment #8888842 - Flags: review?(nchevobbe) → review+
Keywords: checkin-needed
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/a072c721ee16
Prevent horizontal scrollbar from appearing in the console after vertical overflow. r=nchevobbe
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/a072c721ee16
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 56
Reproduced the initial issue on 56.0a1 (2017-07-12). I can confirm the bug is verified fixed on latest Nightly 56.0a1 (2017-07-24), using Windows 10 x64, Ubuntu 16.04 x64 and Mac OS X 10.11.6.
Status: RESOLVED → VERIFIED
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: