Closed
Bug 342556
Opened 19 years ago
Closed 19 years ago
New Preferences: Options dialog should be modal on Windows
Categories
(Calendar :: Preferences, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: ssitter, Assigned: mattwillis)
Details
Attachments
(1 file)
|
1.63 KB,
patch
|
jminta
:
first-review+
|
Details | Diff | Splinter Review |
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/20060623 Sunbird/0.3a2+
New Preferences: Options dialog should be modal on Windows
Steps to reproduce:
1. Open Sunbirds preference dialog
2. Select Sunbirds main window
Actual Results:
It is possible to select Sunbirds main window and it is possible to work in the main window while the preference dialog is still open.
Expected Results:
It is not possible to select the main window. The preference dialog must be closed using 'Ok' or 'Cancel' first.
I think the current behavior is OK for Linux systems. (Don't know about Mac OS X). But the default behavior on Windows is different. Firefox and Thunderbird already work that way, Sunbird should do the same.
| Assignee | ||
Comment 1•19 years ago
|
||
(In reply to comment #0)
> I think the current behavior is OK for Linux systems. (Don't know about Mac OS
> X). But the default behavior on Windows is different. Firefox and Thunderbird
> already work that way, Sunbird should do the same.
Mac OS X is not modal for Ff, Tb or Sb.
Patch forthcoming.
Assignee: nobody → mattwillis
| Assignee | ||
Comment 2•19 years ago
|
||
I moved stuff inside the "else" so we don't get the prefs service, etc. etc. if the prefwindow is already open.
Attachment #226829 -
Flags: first-review?(jminta)
| Assignee | ||
Updated•19 years ago
|
Status: NEW → ASSIGNED
Comment 3•19 years ago
|
||
Comment on attachment 226829 [details] [diff] [review]
rev0 - makes pref win modal depending on instantApply pref
+ // The prefwindow should only be modal on non-instant-apply platforms
+ var prefs = Components.classes["@mozilla.org/preferences-service;1"]
+ .getService(Components.interfaces.nsIPrefService)
+ .getBranch(null);
+
+ var instantApply = prefs.getBoolPref("browser.preferences.instantApply");
A good solution is to use nsIPrefBranch directly, instead of nsIPrefService. A better solution is to wait until I land my get-pref helpers and use them. r=jminta with that.
Attachment #226829 -
Flags: first-review?(jminta) → first-review+
| Assignee | ||
Comment 4•19 years ago
|
||
patch (using getPrefSafe) checked in on MOZILLA_1_8_BRANCH and trunk
-> FIXED
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
| Reporter | ||
Updated•19 years ago
|
Status: RESOLVED → VERIFIED
Updated•19 years ago
|
Whiteboard: [litmus testcase wanted]
Updated•19 years ago
|
Whiteboard: [litmus testcase wanted]
Updated•18 years ago
|
Component: Sunbird Only → Preferences
QA Contact: sunbird → preferences
You need to log in
before you can comment on or make changes to this bug.
Description
•