Open Bug 357097 Opened 19 years ago Updated 9 years ago

"Play a sound" textboxes are not editable, and don't disable Preview button when nothing has been selected

Categories

(SeaMonkey :: Preferences, defect)

defect
Not set
normal

Tracking

(Not tracked)

ASSIGNED

People

(Reporter: prometeo.bugs, Assigned: philip.chee)

References

Details

Attachments

(2 files, 2 obsolete files)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; it; rv:1.8.0.7) Gecko/20060913 Fedora/1.5.0.7-1.fc5 Firefox/1.5.0.7 pango-text Build Identifier: When you activate the "Play a sound" option in both prefs->navigator->downloads and prefs->mailnews->notifications, both Browse and Preview buttons become active, even if the textbox for the sound file is empty. This is obviously wrong, and is a different behaviour from prefs->privacy & security->popup windows similar panel option. Moreover, the textboxes in both pref panels (downloads and notifications) are not editable. Again this is different from the popup windows behaviour. Reproducible: Always
So, I actually think Mail & Newsgroups Notifications gets this right.
Status: UNCONFIRMED → NEW
Ever confirmed: true
I know Neil is going to kill me for this... :) Yeah, notifications prefs is ok, and both have "textbox readonly", so the fields are not editable... Do we want to make also window popups similar textbox readonly for consistency?
Attachment #242625 - Flags: review?(neil)
Summary: "Play a sound" textboxes are not editable, and don't activate Preview button only when something has been selected/entered → "Play a sound" textboxes are not editable, and don't disable Preview button when nothing has been selected
Attachment #242625 - Flags: review?(neil) → review+
Attachment #242625 - Flags: superreview?(jag)
(Includes the fix in the previous patch)
Comment on attachment 242900 [details] [diff] [review] Tentative fix for making all of the textboxes behave the same, using filters in the filepicker >+ filepicker.appendFilter("Sounds","*.wav; *.wave"); Nit: space after comma (both times) >+ accesskey="&playSound.accesskey;" This patch can't be reviewed without the dtd changes. >+ prefstring="privacy.popups.sound_url" preftype="string"/> Why the preftype?
Actually this includes the patch for bug 357096.
Attachment #242900 - Attachment is obsolete: true
It may be worth looking at bug 266192 (which I'd forgotten about).
Comment on attachment 242929 [details] [diff] [review] Updated to fix comments >Index: mailnews/base/prefs/resources/content/pref-notifications.js >=================================================================== >+ fp.appendFilter("Sounds", "*.wav; *.wave"); > fp.appendFilters(nsIFilePicker.filterAll); > You are hardcoding "Sounds" into JS, you need to put it into a string bundle or similar, see bug 266192 for one way to do it.
(In reply to comment #6) > It may be worth looking at bug 266192 (which I'd forgotten about). > I've attached a patch there that does what Neil asked in his review comments, but doesn't work as well... Any comment on how to fix that would be great, so I can understand fully how to "port" the same fix to pref-popup as well. BTW, does pref-popup need pref locking as well?
Giacomo, jag, Are you still working on this ?
Assignee: prefs → nobody
QA Contact: prefs
Version: unspecified → Trunk
See TB Bug 591317 - Allow to play the system sound for a new message (in order to test it)
Depends on: 665603
OS: Linux → All
Hardware: x86 → All
See Also: → 591317
Comment on attachment 242625 [details] [diff] [review] Fix behaviour for downloads pref panel This patch is severely bit rotted and needs to be re-written
Attachment #242625 - Flags: superreview?(jag-mozilla)
Assignee: nobody → philip.chee
Status: NEW → ASSIGNED
Attachment #8814192 - Flags: review?(iann_bugzilla)
Attachment #242625 - Attachment is obsolete: true
Comment on attachment 8814192 [details] [diff] [review] Disable Play button if sound URL is empty What about mailnews notifications? f+ for what you have done so far
Attachment #8814192 - Flags: review?(iann_bugzilla) → feedback+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: