Closed Bug 501137 Opened 15 years ago Closed 15 years ago

<select> widget needs to be careful not to append to existing content

Categories

(Firefox for Android Graveyard :: General, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: timeless, Assigned: mfinkle)

References

()

Details

Attachments

(3 files, 1 obsolete file)

fennec 1.0b2 OS X

steps:
1. load the url
2. click the second select
3. click the first select

actual results:
the contents from the first select are appended to the list shown for the second one

expected results:
dunno
So, you clicked the first select (step #3) while the list picker dialog was being displayed?

I guess we should simulate a modal dialog
I think we should close it as soon as the user go to another place with his mouse/finger (onmousedown). Otherwise this lead to some unexpected behavior as the one described above but also we can do whatever we want in the chrome UI without closing it (go to the right panel, switch tabs, change the current location, open bookmarks, ...)
Attachment #387175 - Flags: review-
Comment on attachment 387175 [details] [diff] [review]
Dismiss the select on mousedown

I think we should just make the picker be modal
This patch makes the selector UI become modal. The user is forced to close the UI via the "done" button. No other interactions with content or chrome are allowed.
Assignee: nobody → mark.finkle
Attachment #387203 - Flags: review?(gavin.sharp)
Comment on attachment 387203 [details] [diff] [review]
patch - make the selector be modal

>diff --git a/chrome/content/browser-ui.js b/chrome/content/browser-ui.js

>+    //let toolbar = document.getElementById("toolbar-main");
>+    //let top = parseInt(toolbar.top) + toolbar.boxObject.height;
>+    //if (top < 0)
>+      //top = 0;

just remove it?
Attachment #387203 - Flags: review?(gavin.sharp) → review+
Attached patch patch 2Splinter Review
Removed the commented code, but realized I needed to move the sizing to BrowserUI.sizeControls
Attachment #387203 - Attachment is obsolete: true
Attachment #387232 - Flags: review?(gavin.sharp)
Comment on attachment 387232 [details] [diff] [review]
patch 2

good call
Attachment #387232 - Flags: review?(gavin.sharp) → review+
pushed: https://hg.mozilla.org/mobile-browser/rev/81033ff6a951
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Verified "fixed" in my OS X build from 8/11/2009. It is pretty ugly though.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: