Console input field doesn't scroll when large input is pasted in

RESOLVED FIXED in Firefox 44

Status

defect
RESOLVED FIXED
4 years ago
Last year

People

(Reporter: bgrins, Assigned: bgrins)

Tracking

(Blocks 1 bug)

Trunk
Firefox 44
Dependency tree / graph

Firefox Tracking Flags

(firefox44 fixed)

Details

(Whiteboard: [polish-backlog][difficulty=easy])

Attachments

(1 attachment)

Assignee

Description

4 years ago
STR:

Open console (make the toolbox relatively small)
Paste this in:

    // This is for workers so autocomplete acts the same
    if (!this.window) {
      window = this;
    }
    window.foobarObject = Object.create(null);
    window.foobarObject.foo = 1;
    window.foobarObject.foobar = 2;
    window.foobarObject.foobaz = 3;
    window.foobarObject.omg = 4;
    window.foobarObject.omgfoo = 5;
    window.foobarObject.strfoo = "foobarz";
    window.foobarObject.omgstr = "foobarz" +
      (new Array(20000)).join("abb");
    window.largeObject1 = Object.create(null);
    for (let i = 0; i < 100001; i++) {
      window.largeObject1['a' + i] = i;
    }
    window.largeObject2 = Object.create(null);
    for (let i = 0; i < 3000; i++) {
      window.largeObject2['a' + i] = i;
    }

Expected: You can scroll the input field
Actual: You can't scroll the input field
Assignee

Comment 1

4 years ago
Bug 1217880 - Set max-height on console input so it can overflow and be scrolled;r=vporof
Attachment #8678191 - Flags: review?(vporof)
Assignee

Updated

4 years ago
Assignee: nobody → bgrinstead
Status: NEW → ASSIGNED
Assignee

Comment 2

4 years ago
This can also be easily triggerd by pressing Shift+Enter a bunch of times in the input field
Comment on attachment 8678191 [details]
MozReview Request: Bug 1217880 - Set max-height on console input so it can overflow and be scrolled;r=vporof

https://reviewboard.mozilla.org/r/23123/#review20713
Attachment #8678191 - Flags: review?(vporof) → review+
https://hg.mozilla.org/mozilla-central/rev/f48ed065fe3b
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 44

Updated

Last year
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.