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)
SeaMonkey
Preferences
Tracking
(Not tracked)
ASSIGNED
People
(Reporter: prometeo.bugs, Assigned: philip.chee)
References
Details
Attachments
(2 files, 2 obsolete files)
7.10 KB,
patch
|
Details | Diff | Splinter Review | |
5.63 KB,
patch
|
iannbugzilla
:
feedback+
|
Details | Diff | Splinter Review |
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
Comment 1•19 years ago
|
||
So, I actually think Mail & Newsgroups Notifications gets this right.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Reporter | ||
Comment 2•19 years ago
|
||
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
Updated•19 years ago
|
Attachment #242625 -
Flags: review?(neil) → review+
Reporter | ||
Updated•19 years ago
|
Attachment #242625 -
Flags: superreview?(jag)
Reporter | ||
Comment 3•19 years ago
|
||
(Includes the fix in the previous patch)
Comment 4•19 years ago
|
||
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?
Reporter | ||
Comment 5•19 years ago
|
||
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.
Reporter | ||
Comment 8•19 years ago
|
||
(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?
Comment 9•17 years ago
|
||
Giacomo, jag,
Are you still working on this ?
Assignee: prefs → nobody
QA Contact: prefs
Version: unspecified → Trunk
![]() |
Assignee | |
Comment 10•11 years ago
|
||
See TB Bug 591317 - Allow to play the system sound for a new message (in order to test it)
![]() |
Assignee | |
Comment 11•11 years ago
|
||
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 | |
Comment 12•9 years ago
|
||
Assignee: nobody → philip.chee
Status: NEW → ASSIGNED
Attachment #8814192 -
Flags: review?(iann_bugzilla)
![]() |
Assignee | |
Updated•9 years ago
|
Attachment #242625 -
Attachment is obsolete: true
Comment 13•9 years ago
|
||
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.
Description
•