Closed Bug 342556 Opened 19 years ago Closed 19 years ago

New Preferences: Options dialog should be modal on Windows

Categories

(Calendar :: Preferences, defect)

x86
Windows 2000
defect
Not set
minor

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: ssitter, Assigned: mattwillis)

Details

Attachments

(1 file)

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.
(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
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)
Status: NEW → ASSIGNED
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+
patch (using getPrefSafe) checked in on MOZILLA_1_8_BRANCH and trunk -> FIXED
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
Whiteboard: [litmus testcase wanted]
Whiteboard: [litmus testcase wanted]
Component: Sunbird Only → Preferences
QA Contact: sunbird → preferences
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: