[Project_owners] Extension Options window has no Close button
matthew at mjwilson.demon.co.uk
Sat Mar 18 12:37:47 EST 2006
> Matthew Wilson wrote:
>> In Firefox 1.5, my wmlbrowser extension has an options window
>> loosely modelled on the main Firefox options window. It works fine in
>> Windows, but I've heard that it has no Close button on the Mac.
>> Consequently the window never closes until the whole application is
>> I don't have access to a Mac to try this out. Does anyone have any
>> ideas how this might happen? Is 'dlgbuttons="apply,cancel,help"'
>> inappropriate for a Mac?
> It is, but what is an "apply" button? Shouldn't that be "accept"?
OK, looks like it should be.
>>> Dialogs don't have a Close button on Mac. You have to use window.open() instead of window.openDialog().
>> But there *is* a cancel button in dialog.xml:
> ...but the accept and cancel buttons on the Options dialog will be hidden when "browser.preferences.instantApply" is set to true, which is the default value for Macs.
So which buttons are seen on a Mac, if accept and cancel are hidden?
All I'm trying to do with my "dlgbuttons" declaration is to add a "Help"
More information about the Project_owners