Closed Bug 860360 Opened 11 years ago Closed 11 years ago

Browser console Autocomplete popup doesn't get repositioned if it gets smaller

Categories

(DevTools :: Console, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 25

People

(Reporter: Gijs, Assigned: Optimizer)

Details

Attachments

(2 files, 2 obsolete files)

STR:
0. Set the magic prefs (devtools.chrome.enabled, devtools.debugger.chrome-enabled)
1. Open the Browser Console in a separate window
1a. Move it far enough to the bottom of the screen so that the autocomplete popup will have to be above the cursor (this step may be optional?)
1b. Make sure your mouse is nowhere near the cursor in the console window (or it'll select autocomplete items)
2. Type "g" (you get a long autocomplete popup list
3. Type "H" (the list goes a lot shorter)

Expected result: the list anchors to the cursor (below or above the textbox)

Actual result: the top left corner of the autocomplete list stays in the same position, miles away from the inputbox.
(funnily enough, I can't reproduce this problem with the web console? No idea why not)
Is that HiDPI ? If yes, then this bug is most probably a dupe of bug 855849.l

If you undock the web console, then you might see the same issue.
Victor, this is probably related to the latest changes we did for the autocomplete popup. Do we have a bug about the issues? Afaik we discussed these with the team.
We don't have a bug yet on this, but the behavior is identical with bug 855849 (it seems it's happening on non HiDPI as well).

I would be a lot happier if that bug got some attention instead, since this issue started badly affecting the debugger as well, and I'm not comfortable with setTimeouting everything and hoping that it works. As we talked on IRC, neither MozAfterPaint nor a setTimeout made a definitive difference worth considering "a fix".
I am seeing this now in web console on windows 7 too. and Mihai is prolly right in comment 3, but on Windows, this started happening only around 3 weeks back, so not sure ...
Assignee: nobody → scrapmachines
Attached patch Ultimate fix (obsolete) — Splinter Review
Fixes all the issues !

Tested it on Windows 7 and Mac OS X 10.8

Please test it on your Linux. Lets land this before uplift :)
Attachment #784603 - Flags: review?(mihai.sucan)
Status: NEW → ASSIGNED
Attached patch Ultimate fix v2 (obsolete) — Splinter Review
Removed one unrelated change that was present in previous patch.

try push at : https://tbpl.mozilla.org/?tree=Try&rev=5687d45438a6
Attachment #784603 - Attachment is obsolete: true
Attachment #784603 - Flags: review?(mihai.sucan)
Attachment #785374 - Flags: review?(mihai.sucan)
Rebased on top of web console loader and reload marker patches.

new try : https://tbpl.mozilla.org/?tree=Try&rev=22b97be5570e
Attachment #785374 - Attachment is obsolete: true
Attachment #785374 - Flags: review?(mihai.sucan)
Attachment #785377 - Flags: review?(mihai.sucan)
I was not able to reproduce the bug with STR from comment #0. If anyone else has problems here are my steps to reproduce:

1. open the browser console.
2. type |gooo|
3. then backspace once and repeat until you see that the popup is anchored at a wrong location.

Girish, your patch seems to fix the problem on my system (Ubuntu 12.04). Thanks!
Comment on attachment 785377 [details] [diff] [review]
rebased on top of web console loader patches

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

This is looking ugly, but it seems to do the job. Thanks!
Attachment #785377 - Flags: review?(mihai.sucan) → review+
(In reply to Mihai Sucan [:msucan] from comment #10)
> Comment on attachment 785377 [details] [diff] [review]
> rebased on top of web console loader patches
> 
> Review of attachment 785377 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> This is looking ugly, but it seems to do the job. Thanks!

Yeah, I know <sadface>. Damn these XUL panels.
try was green, landed in fx-team : https://hg.mozilla.org/integration/fx-team/rev/ffe8cd748b6b
Whiteboard: [fixed-in-fx-team]
https://hg.mozilla.org/mozilla-central/rev/ffe8cd748b6b
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 25
This does not fix anything. In fact, it makes things much, much worse on OS X.
(In reply to Victor Porof [:vp] from comment #14)
> This does not fix anything. In fact, it makes things much, much worse on OS
> X.

That's... bad. It works better for me (on Linux), see comment 9. Should we backout the patch?
Not sure. It seems to work better on Windows and Linux, so, on average, this patch does good things. Let's keep it. I hate panels.
(In reply to Victor Porof [:vp] from comment #14)
> This does not fix anything. In fact, it makes things much, much worse on OS
> X.

Can you please explain how it got worse? Any STRs ? I've personally tested it on my Mac OS X 10.8 and it completely fixes the incorrect repositioning of the popup.
Regular usage. See bug 857441.
(In reply to Victor Porof [:vp] from comment #18)
> Regular usage. See bug 857441.

That doesn't help. Anyways, I will upload a screencast comparing the two nightlies with and without the patch when I get internet access at my home back.
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: