Closed
Bug 479935
Opened 17 years ago
Closed 8 years ago
location bar autocomplete dropdrown does not roll up
Categories
(Firefox :: Address Bar, defect)
Tracking
()
RESOLVED
INACTIVE
People
(Reporter: karlt, Assigned: karlt)
Details
Attachments
(3 files)
STR:
1) Type a few letters into the location bar
Type enough letters such that the drop down disappears (shrinks to zero
length) and then grows again slowly.
2) Click on a window of another app, and try to type into that app.
Expected results:
Location bar rolls up so that the other app can receive the keypress events.
Actual results:
The other app receives the mouse click.
The location bar does not roll up.
Characters typed go into the location bar until there are no completions.
The autocomplete dropdown window remains above other windows.
3) Instead of step 2, try to close the main Firefox window by clicking on
the close button in the window manager frame around the Firefox main window.
Expected results:
App window is closed, or at least the dropdown rolls up.
Actual results:
Nothing, no matter how many clicks on the close box.
The only way to roll-up the autocomplete dropdown is to click somewhere on the Firefox main window.
I can reproduce with trunk and Firefox 3.0.6 on x86_64, but haven't managed to reproduce on i686 (which possibly has a different gtk version).
Comment 1•17 years ago
|
||
dietrich and I saw this today on the mac too, so I bet it's not widget toolkit dependent
| Assignee | ||
Comment 2•17 years ago
|
||
What seems to be happening is:
nsWindow::CaptureRollupEvents is called just before when the autocomplete window first drops down, and mouse and keyboard grabs succeed when (shortly after) the window is resized > 0.
On further typing the dropdown is resized to zero height.
X11 can't have zero-sized windows, so the window is hidden.
Unmapped windows can't have pointer grabs (I assume), so the pointer grab
on the window is lost. (The keyboard grab is retained,
I think because this grab is on the parent [main] toplevel window.)
The dropdown is resized to non-zero height.
The window is shown, but there is no pointer grab.
| Assignee | ||
Comment 3•17 years ago
|
||
(In reply to comment #1)
> dietrich and I saw this today on the mac too, so I bet it's not widget toolkit
> dependent
I'm not familiar with other widget sets, so I don't know if they can handle zero sized windows.
I wonder whether it makes sense to CaptureRollupEvents on a zero-sized window?
What would roll up?
I guess the thing is that this is only temporarily zero-sized, but widget can't know that.
Comment 4•17 years ago
|
||
i've already seen a bug about this before, can't find the number atm
| Assignee | ||
Comment 5•17 years ago
|
||
This log has the order of keypress, grab, and window state events as summarized in comment 2.
| Assignee | ||
Comment 6•17 years ago
|
||
The resize is through nsView::ResetWidgetBounds, but the stack doesn't tell us much (AFAIK) as these are just pending updates.
| Assignee | ||
Comment 7•17 years ago
|
||
(In reply to comment #3)
> I wonder whether it makes sense to CaptureRollupEvents on a zero-sized window?
This does make sense to me now, I think.
When the event that causes the window to be created is received, it is nice to initiate rollup capture immediately, but I guess layout of the window (and its sizing) happens asynchronously.
If grabs are delayed until the window is shown (as they are currently), clicking once to open a menu, then again (elsewhere) to cancel/close the menu, may have the canceling click ignored (or interpreted differently) because the grab is applied after the second click is processed.
With GTK (and other X11 toolkits), I think it may be possible to use an invisible (but mapped) window for the grab, which would allow initiating the grab before the drawing window is mapped and retaining the grab after the drawing window is unmapped.
Comment 8•8 years ago
|
||
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INACTIVE
You need to log in
before you can comment on or make changes to this bug.
Description
•