Closed Bug 510880 Opened 15 years ago Closed 14 years ago

SelectHelper doesn't work in chrome

Categories

(Firefox for Android Graveyard :: General, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: fabrice.desre, Assigned: fabrice.desre)

References

Details

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1) Gecko/20090624 Firefox/3.5
Build Identifier: fennec 1.0b3

SelectHelper should be usable from content and chrome as an alternative to menulists.

It fails in chrome because it tries to acces wrappedJSObject properties that don't exist there.

Reproducible: Always
Attached patch fixSplinter Review
Attachment #394808 - Flags: review?(mark.finkle)
Comment on attachment 394808 [details] [diff] [review]
fix

let's change to this pattern when checking in:

let control = (this._control.wrappedJSObject ? this._control.wrappedJSObject : this._control);

(same for selectElement check)
Attachment #394808 - Flags: review?(mark.finkle) → review+
Blocks: 489423
Assignee: nobody → fabrice.desre
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Now that support for <xul:menulist> has landed, we can close this one. <h:select> is ugly in chrome anyway.
Attached patch Updated patchSplinter Review
(In reply to comment #3)
> Now that support for <xul:menulist> has landed, we can close this one.
> <h:select> is ugly in chrome anyway.

I would rather support them even if they are ugly :)
Some extensions developers may want to use it for any reasons (I'm thinking here of cross browsers extensions that use html as a common language) and the patch is really cheap.
Attachment #405438 - Flags: review?
I continue to think that because some extensions are "html powered" we should support it.
These bugs do not have a specific reviewer assigned to them and are in 'review?' state. Kindly assign a specific reviewer.
fixed by bug 516122
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: