Closed Bug 243807 Opened 21 years ago Closed 21 years ago

profile manager hangs other dialogs' action

Categories

(SeaMonkey :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: nian.liu, Assigned: nian.liu)

Details

Attachments

(3 files, 2 obsolete files)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1) Gecko/20040302 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1) Gecko/20040302 open profile manager, open password manager or other manager. any operation on password/other manager can't be triggered. it's also in moz1.7/trunk, and on solaris Reproducible: Always Steps to Reproduce: 1.from "tools" menu to open profile manager 2.from "tools" menu to open password manager Actual Results: operation on password manager can't be triggered Expected Results: operation on password manager should be triggered
Assignee: general → neo.liu
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attached patch patch for 243807 (obsolete) — Splinter Review
openWindow should be without "modal"
Attachment #149260 - Flags: review?(neil.parkwaycc.co.uk)
Comment on attachment 149260 [details] [diff] [review] patch for 243807 This code was probably translated from the C++ profile startup code, which does need it to be modal...
Attachment #149260 - Flags: review?(neil.parkwaycc.co.uk) → review+
Comment on attachment 149260 [details] [diff] [review] patch for 243807 Mind you, it would be nice if you registered a window type for the profile selection window so that you could raise an existing window.
Comment on attachment 149260 [details] [diff] [review] patch for 243807 Oh, and you could probably use window.open instead of ww.openWindow too...
Attached patch patch for 243807 (obsolete) — Splinter Review
add register mechanism to keep from creating more than one instance
Attachment #149260 - Attachment is obsolete: true
Comment on attachment 149391 [details] [diff] [review] patch for 243807 neil, new attach with register mechanism. pls. help me review it. and if there are any other way to register, pls. point them out. btw, if that's ok, could you please help me recommend a guy for sr?
Attachment #149391 - Flags: review?(neil.parkwaycc.co.uk)
Comment on attachment 149391 [details] [diff] [review] patch for 243807 >+ var enumerator = wm.getEnumerator("mozilla:profileSelection"); >+ while (enumerator.hasMoreElements()) { >+ var viewer = enumerator.getNext(); >+ if (viewer.arguments[0] == viewerType) { >+ viewer.focus(); >+ return; >+ } >+ } What's viewerType? It doesn't appear to be defined. I can't actually tell what that test is for, otherwise I would suggest using wm.getMostRecentWindow instead. >+ window.openDialog( "chrome://communicator/content/profile/profileSelection.xul", > null, I missed this last time, but null is an invalid value here (it gets converted to "null"). Ideally openDialog should ignore the value when using "chrome" as a flag, but in the mean time please use "" or "_blank". >- "centerscreen,chrome,modal,titlebar", >+ "centerscreen,chrome,titlebar", > params);
Attached patch patch for 243807Splinter Review
sorry, need strong coffee
Attachment #149391 - Attachment is obsolete: true
Comment on attachment 149461 [details] [diff] [review] patch for 243807 thanks again
Attachment #149461 - Flags: review?(neil.parkwaycc.co.uk)
Comment on attachment 149461 [details] [diff] [review] patch for 243807 >+ if( promgrWin ){ >+ promgrWin.focus(); >+ }else{ Nit: Ugly inline spacing, it should look like this: if (promgrWin) { promgrWin.focus(); } else { No need for a new patch, just get this changed before check in.
Attachment #149461 - Flags: review?(neil.parkwaycc.co.uk) → review+
code style modification
Attachment #149461 - Flags: superreview?(jst)
Comment on attachment 149658 [details] [diff] [review] patch for 243807 after review + if(promgrWin) { I believe Neil wanted a space after the 'if' as well. sr=jst, and you've tested that this doesn't break the profile manager on startup (mozilla -P), right?
Attachment #149658 - Flags: superreview+
yes, it's a different scenario and won't exec this code.
code style modification, more...
Fixed! Checking in xpfe/communicator/resources/content/tasksOverlay.js; /cvsroot/mozilla/xpfe/communicator/resources/content/tasksOverlay.js,v <-- tasksOverlay.js new revision: 1.56; previous revision: 1.55 done Checking in profile/resources/content/profileSelection.xul; /cvsroot/mozilla/profile/resources/content/profileSelection.xul,v <-- profileSelection.xul new revision: 1.54; previous revision: 1.53 done
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Attachment #149391 - Flags: review?(neil.parkwaycc.co.uk)
Attachment #149461 - Flags: superreview?(jst)
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: